Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for OpArg (0.06 sec)

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

    func TestShortCircuit(t *testing.T) {
    	c := testConfig(t)
    
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("arg1", OpArg, c.config.Types.Int64, 0, nil),
    			Valu("arg2", OpArg, c.config.Types.Int64, 0, nil),
    			Valu("arg3", OpArg, c.config.Types.Int64, 0, nil),
    			Goto("b1")),
    		Bloc("b1",
    			Valu("cmp1", OpLess64, c.config.Types.Bool, 0, nil, "arg1", "arg2"),
    			If("cmp1", "b2", "b3")),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 23:01:51 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/fuse_test.go

    	//      z0   z1
    	//       \   /
    	//       exit
    	fun = c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("c1", OpArg, c.config.Types.Bool, 0, nil),
    			If("c1", "b0", "z0")),
    		Bloc("b0",
    			Valu("c2", OpArg, c.config.Types.Bool, 0, nil),
    			If("c2", "z1", "z0")),
    		Bloc("z0",
    			Goto("exit")),
    		Bloc("z1",
    			Goto("exit")),
    		Bloc("exit",
    			Exit("mem"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/regalloc_test.go

    func TestSpillWithLoop(t *testing.T) {
    	c := testConfig(t)
    	f := c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("ptr", OpArg, c.config.Types.Int64.PtrTo(), 0, c.Temp(c.config.Types.Int64)),
    			Valu("cond", OpArg, c.config.Types.Bool, 0, c.Temp(c.config.Types.Bool)),
    			Valu("ld", OpAMD64MOVQload, c.config.Types.Int64, 0, nil, "ptr", "mem"), // this value needs a spill
    			Goto("loop"),
    		),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/cse_test.go

    			Valu("r7", OpAdd64, c.config.Types.Int64, 0, nil, "arg3", "arg1"),
    			Valu("r1", OpAdd64, c.config.Types.Int64, 0, nil, "arg1", "arg2"),
    			Valu("arg1", OpArg, c.config.Types.Int64, 0, arg1Aux),
    			Valu("arg2", OpArg, c.config.Types.Int64, 0, arg2Aux),
    			Valu("arg3", OpArg, c.config.Types.Int64, 0, arg3Aux),
    			Valu("r9", OpAdd64, c.config.Types.Int64, 0, nil, "r7", "r8"),
    			Valu("r4", OpAdd64, c.config.Types.Int64, 0, nil, "r1", "r2"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/lower.go

    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    			if !opcodeTable[v.Op].generic {
    				continue // lowered
    			}
    			switch v.Op {
    			case OpSP, OpSPanchored, OpSB, OpInitMem, OpArg, OpArgIntReg, OpArgFloatReg, OpPhi, OpVarDef, OpVarLive, OpKeepAlive, OpSelect0, OpSelect1, OpSelectN, OpConvert, OpInlMark, OpWBend:
    				continue // ok not to lower
    			case OpMakeResult:
    				if b.Controls[0] == v {
    					continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 16 00:16:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/expand_calls.go

    		return k
    	}
    	panic("Haven't implemented this case yet, do I need to?")
    }
    
    // prAssignForArg returns the ABIParamAssignment for v, assumed to be an OpArg.
    func (x *expandState) prAssignForArg(v *Value) *abi.ABIParamAssignment {
    	if v.Op != OpArg {
    		panic(fmt.Errorf("Wanted OpArg, instead saw %s", v.LongString()))
    	}
    	return ParamAssignmentForArgName(x.f, v.Aux.(*ir.Name))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/stackalloc.go

    					if f.pass.debug > stackDebug {
    						fmt.Printf("stackalloc register arg %s skipping name %s\n", v, name)
    					}
    					continue
    				}
    			} else if name.N.Class == ir.PPARAM && v.Op != OpArg {
    				// PPARAM's only bind to OpArg
    				if f.pass.debug > stackDebug {
    					fmt.Printf("stackalloc PPARAM name %s skipping non-Arg %s\n", name, v)
    				}
    				continue
    			}
    
    			if names[v.ID] == empty {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/softfloat.go

    	if !f.Config.SoftFloat {
    		return
    	}
    	newInt64 := false
    
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    			if v.Type.IsFloat() {
    				f.unCache(v)
    				switch v.Op {
    				case OpPhi, OpLoad, OpArg:
    					if v.Type.Size() == 4 {
    						v.Type = f.Config.Types.UInt32
    					} else {
    						v.Type = f.Config.Types.UInt64
    					}
    				case OpConst32F:
    					v.Op = OpConst32
    					v.Type = f.Config.Types.UInt32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 16:14:24 UTC 2021
    - 2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/debug.go

    		return v
    	}
    
    	// Make a pass through the entry block looking for
    	// OpArg{Int,Float}Reg ops. Record the slots they use in a table
    	// ("sc"). We use a type-insensitive lookup for the slot table,
    	// since the type we get from the ABI analyzer won't always match
    	// what the compiler uses when creating OpArg{Int,Float}Reg ops.
    	for _, v := range f.Entry.Values {
    		if v.Op == OpArgIntReg || v.Op == OpArgFloatReg {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewritedec64.go

    			break
    		}
    		v.reset(OpInt64Make)
    		v0 := b.NewValue0(v.Pos, OpArg, typ.Int32)
    		v0.AuxInt = int32ToAuxInt(off + 4)
    		v0.Aux = symToAux(n)
    		v1 := b.NewValue0(v.Pos, OpArg, typ.UInt32)
    		v1.AuxInt = int32ToAuxInt(off)
    		v1.Aux = symToAux(n)
    		v.AddArg2(v0, v1)
    		return true
    	}
    	// match: (Arg {n} [off])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 65.3K bytes
    - Viewed (0)
Back to top