Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewLocal (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top