Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for NewValue0 (0.26 sec)

  1. src/cmd/compile/internal/ssa/rewritedec.go

    			break
    		}
    		v.reset(OpSliceMake)
    		v0 := b.NewValue0(v.Pos, OpLoad, t.Elem().PtrTo())
    		v0.AddArg2(ptr, mem)
    		v1 := b.NewValue0(v.Pos, OpLoad, typ.Int)
    		v2 := b.NewValue0(v.Pos, OpOffPtr, typ.IntPtr)
    		v2.AuxInt = int64ToAuxInt(config.PtrSize)
    		v2.AddArg(ptr)
    		v1.AddArg2(v2, mem)
    		v3 := b.NewValue0(v.Pos, OpLoad, typ.Int)
    		v4 := b.NewValue0(v.Pos, OpOffPtr, typ.IntPtr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/decompose.go

    }
    
    func decomposeSlicePhi(v *Value) {
    	types := &v.Block.Func.Config.Types
    	ptrType := v.Type.Elem().PtrTo()
    	lenType := types.Int
    
    	ptr := v.Block.NewValue0(v.Pos, OpPhi, ptrType)
    	len := v.Block.NewValue0(v.Pos, OpPhi, lenType)
    	cap := v.Block.NewValue0(v.Pos, OpPhi, lenType)
    	for _, a := range v.Args {
    		ptr.AddArg(a.Block.NewValue1(v.Pos, OpSlicePtr, ptrType, a))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewriteAMD64splitload.go

    	for {
    		vo := auxIntToValAndOff(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		mem := v_1
    		if !(vo.Val() == 0) {
    			break
    		}
    		v.reset(OpAMD64TESTB)
    		x := b.NewValue0(v.Pos, OpAMD64MOVBload, typ.UInt8)
    		x.AuxInt = int32ToAuxInt(vo.Off())
    		x.Aux = symToAux(sym)
    		x.AddArg2(ptr, mem)
    		v.AddArg2(x, x)
    		return true
    	}
    	// match: (CMPBconstload {sym} [vo] ptr mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 21.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewriteARM64latelower.go

    	// cond: !isARM64addcon(c)
    	// result: (ADDSflags x (MOVDconst [c]))
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		x := v_0
    		if !(!isARM64addcon(c)) {
    			break
    		}
    		v.reset(OpARM64ADDSflags)
    		v0 := b.NewValue0(v.Pos, OpARM64MOVDconst, typ.UInt64)
    		v0.AuxInt = int64ToAuxInt(c)
    		v.AddArg2(x, v0)
    		return true
    	}
    	return false
    }
    func rewriteValueARM64latelower_OpARM64ADDconst(v *Value) bool {
    	v_0 := v.Args[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewritePPC64latelower.go

    	for {
    		if auxIntToInt32(v.AuxInt) != 2 {
    			break
    		}
    		cmp := v_0
    		if !(buildcfg.GOPPC64 <= 9) {
    			break
    		}
    		v.reset(OpPPC64ISELZ)
    		v.AuxInt = int32ToAuxInt(2)
    		v0 := b.NewValue0(v.Pos, OpPPC64MOVDconst, typ.Int64)
    		v0.AuxInt = int64ToAuxInt(1)
    		v.AddArg2(v0, cmp)
    		return true
    	}
    	// match: (SETBC [0] cmp)
    	// cond: buildcfg.GOPPC64 <= 9
    	// result: (ISELZ [0] (MOVDconst [1]) cmp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/loopreschedchecks.go

    		tofixBackedges = append(tofixBackedges, edgeMem{e, nil})
    	}
    
    	// It's possible that there is no memory state (no global/pointer loads/stores or calls)
    	if lastMems[f.Entry.ID] == nil {
    		lastMems[f.Entry.ID] = f.Entry.NewValue0(f.Entry.Pos, OpInitMem, types.TypeMem)
    	}
    
    	memDefsAtBlockEnds := f.Cache.allocValueSlice(f.NumBlocks()) // For each block, the mem def seen at its bottom. Could be from earlier block.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:10 UTC 2023
    - 16K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/func.go

    	}
    	// Clear everything but ID (which we reuse).
    	id := b.ID
    	*b = Block{}
    	b.ID = id
    	b.succstorage[0].b = f.freeBlocks
    	f.freeBlocks = b
    }
    
    // NewValue0 returns a new value in the block with no arguments and zero aux values.
    func (b *Block) NewValue0(pos src.XPos, op Op, t *types.Type) *Value {
    	v := b.Func.newValue(op, t, b, pos)
    	v.AuxInt = 0
    	v.Args = v.argstorage[:0]
    	return v
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/value.go

    	}
    }
    
    // If/when midstack inlining is enabled (-l=4), the compiler gets both larger and slower.
    // Not-inlining this method is a help (*Value.reset and *Block.NewValue0 are similar).
    //
    //go:noinline
    func (v *Value) AddArg(w *Value) {
    	if v.Args == nil {
    		v.resetArgs() // use argstorage
    	}
    	v.Args = append(v.Args, w)
    	w.Uses++
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/expand_calls.go

    	if at == types.TypeMem {
    		a.copyOf(m0)
    		return a
    	}
    
    	makeOf := func(a *Value, op Op, args []*Value) *Value {
    		if a == nil {
    			a = b.NewValue0(pos, op, at)
    			a.AddArgs(args...)
    		} else {
    			a.resetArgs()
    			a.Aux, a.AuxInt = nil, 0
    			a.Pos, a.Op, a.Type = pos, op, at
    			a.AddArgs(args...)
    		}
    		return a
    	}
    
    	if at.Size() == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		}
    		if resname == "" {
    			v = fmt.Sprintf("v%d", rr.Alloc)
    		} else {
    			v = resname
    		}
    		rr.Alloc++
    		rr.add(declf(rr.Loc, v, "b.NewValue0(%s, Op%s%s, %s)", pos, oparch, op.name, typ))
    		if move && top {
    			// Rewrite original into a copy
    			rr.add(stmtf("v.copyOf(%s)", v))
    		}
    	}
    
    	if auxint != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
Back to top