Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for StructMake1 (0.17 sec)

  1. src/cmd/compile/internal/ssa/_gen/dec.rules

        data
        (Store {typ.Uintptr} dst itab mem))
    
    // Helpers for expand calls
    // Some of these are copied from generic.rules
    
    (IMake _typ (StructMake1 val)) => (IMake _typ val)
    (StructSelect [0] (IData x)) => (IData x)
    
    (StructSelect (StructMake1 x)) => x
    (StructSelect [0] (StructMake2 x _)) => x
    (StructSelect [1] (StructMake2 _ x)) => x
    (StructSelect [0] (StructMake3 x _ _)) => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewritedec.go

    		v1.AddArg(ptr)
    		v0.AddArg2(v1, mem)
    		return true
    	}
    	return false
    }
    func rewriteValuedec_OpIMake(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (IMake _typ (StructMake1 val))
    	// result: (IMake _typ val)
    	for {
    		_typ := v_0
    		if v_1.Op != OpStructMake1 {
    			break
    		}
    		val := v_1.Args[0]
    		v.reset(OpIMake)
    		v.AddArg2(_typ, val)
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/generic.rules

    (PtrIndex <t> ptr idx) && config.PtrSize == 8 => (AddPtr ptr (Mul64 <typ.Int> idx (Const64 <typ.Int> [t.Elem().Size()])))
    
    // struct operations
    (StructSelect (StructMake1 x)) => x
    (StructSelect [0] (StructMake2 x _)) => x
    (StructSelect [1] (StructMake2 _ x)) => x
    (StructSelect [0] (StructMake3 x _ _)) => x
    (StructSelect [1] (StructMake3 _ x _)) => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "IData", argLength: 1},                // arg0=interface, returns data field
    
    	// Structs
    	{name: "StructMake0"},                              // Returns struct with 0 fields.
    	{name: "StructMake1", argLength: 1},                // arg0=field0.  Returns struct.
    	{name: "StructMake2", argLength: 2},                // arg0,arg1=field0,field1.  Returns struct.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewritegeneric.go

    		v.AuxInt = float64ToAuxInt(math.Floor(c))
    		return true
    	}
    	return false
    }
    func rewriteValuegeneric_OpIMake(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (IMake _typ (StructMake1 val))
    	// result: (IMake _typ val)
    	for {
    		_typ := v_0
    		if v_1.Op != OpStructMake1 {
    			break
    		}
    		val := v_1.Args[0]
    		v.reset(OpIMake)
    		v.AddArg2(_typ, val)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/opGen.go

    	},
    	{
    		name:    "IData",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "StructMake0",
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "StructMake1",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "StructMake2",
    		argLen:  2,
    		generic: true,
    	},
    	{
    		name:    "StructMake3",
    		argLen:  3,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 1M bytes
    - Viewed (0)
Back to top