- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for NewLocal (0.13 sec)
-
src/cmd/compile/internal/typecheck/dcl.go
base.FatalfAt(pos, "misuse of method type: %v", typ) } types.CalcSize(typ) sym := &types.Sym{ Name: autotmpname(len(curfn.Dcl)), Pkg: types.LocalPkg, } name := curfn.NewLocal(pos, sym, typ) name.SetEsc(ir.EscNever) name.SetUsed(true) name.SetAutoTemp(true) return name } var ( autotmpnamesmu sync.Mutex autotmpnames []string )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:15:50 UTC 2023 - 3.1K bytes - Viewed (0) -
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/ssa/writebarrier.go
if isVolatile(val) { for _, c := range volatiles { if val == c.src { continue copyLoop // already copied } } t := val.Type.Elem() tmp := f.NewLocal(w.Pos, t) mem = b.NewValue1A(w.Pos, OpVarDef, types.TypeMem, tmp, mem) tmpaddr := b.NewValue2A(w.Pos, OpLocalAddr, t.PtrTo(), tmp, sp, mem) siz := t.Size()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:09:14 UTC 2023 - 23.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/regalloc.go
// The type of the slot is immaterial - it will not be live across // any safepoint. Just use a type big enough to hold any register. t := LocalSlot{N: e.s.f.NewLocal(c.Pos, types.Int64), Type: types.Int64} // TODO: reuse these slots. They'll need to be erased first. e.set(t, vid, x, false, c.Pos) if e.s.f.pass.debug > regDebug {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:49:56 UTC 2023 - 87.2K 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)