- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewLocal (0.09 sec)
-
src/cmd/compile/internal/ssa/func.go
if !f.Config.UseFMA { return false } if base.FmaHash == nil { return true } return base.FmaHash.MatchPos(v.Pos, nil) } // NewLocal returns a new anonymous local variable of the given type. func (f *Func) NewLocal(pos src.XPos, typ *types.Type) *ir.Name { nn := typecheck.TempAt(pos, f.fe.Func(), typ) // Note: adds new auto to fn.Dcl list nn.SetNonMergeable(true) return nn }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 25.8K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/stackalloc.go
if !used[i] { s.nReuse++ break } } // If there is no unused stack slot, allocate a new one. if i == len(locs) { s.nAuto++ locs = append(locs, LocalSlot{N: f.NewLocal(v.Pos, v.Type), Type: v.Type, Off: 0}) locations[typeKey] = locs } // Use the stack variable at that index for v. loc := locs[i] if f.pass.debug > stackDebug {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 21:29:41 UTC 2024 - 12.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
// stack with a special name, so the debugger can look for it and // find the parent frame. sym := &types.Sym{Name: ".closureptr", Pkg: types.LocalPkg} cloSlot := s.curfn.NewLocal(src.NoXPos, sym, s.f.Config.Types.BytePtr) cloSlot.SetUsed(true) cloSlot.SetEsc(ir.EscNever) cloSlot.SetAddrtaken(true) s.f.CloSlot = cloSlot
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)