Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ConstInterface (0.24 sec)

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

    	return f.constVal(OpConst64F, t, int64(math.Float64bits(c)), true)
    }
    
    func (f *Func) ConstSlice(t *types.Type) *Value {
    	return f.constVal(OpConstSlice, t, constSliceMagic, false)
    }
    func (f *Func) ConstInterface(t *types.Type) *Value {
    	return f.constVal(OpConstInterface, t, constInterfaceMagic, false)
    }
    func (f *Func) ConstNil(t *types.Type) *Value {
    	return f.constVal(OpConstNil, t, constNilMagic, false)
    }
    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/_gen/genericOps.go

    	{name: "Const32F", aux: "Float32"}, // value is math.Float64frombits(uint64(auxint)) and is exactly representable as float 32
    	{name: "Const64F", aux: "Float64"}, // value is math.Float64frombits(uint64(auxint))
    	{name: "ConstInterface"},           // nil interface
    	{name: "ConstSlice"},               // nil slice
    
    	// Constant-like things
    	{name: "InitMem", zeroWidth: true},                               // memory input to the function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssagen/ssa.go

    }
    
    // const* routines add a new const value to the entry block.
    func (s *state) constSlice(t *types.Type) *ssa.Value {
    	return s.f.ConstSlice(t)
    }
    func (s *state) constInterface(t *types.Type) *ssa.Value {
    	return s.f.ConstInterface(t)
    }
    func (s *state) constNil(t *types.Type) *ssa.Value { return s.f.ConstNil(t) }
    func (s *state) constEmptyString(t *types.Type) *ssa.Value {
    	return s.f.ConstEmptyString(t)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/generic.rules

    (ConstSlice) && config.PtrSize == 8 =>
      (SliceMake
        (ConstNil <v.Type.Elem().PtrTo()>)
        (Const64 <typ.Int> [0])
        (Const64 <typ.Int> [0]))
    
    // interface ops
    (ConstInterface) =>
      (IMake
        (ConstNil <typ.Uintptr>)
        (ConstNil <typ.BytePtr>))
    
    (NilCheck ptr:(GetG mem) mem) => ptr
    
    (If (Not cond) yes no) => (If cond no yes)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewritegeneric.go

    			v.AddArg(x)
    			return true
    		}
    		break
    	}
    	return false
    }
    func rewriteValuegeneric_OpConstInterface(v *Value) bool {
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (ConstInterface)
    	// result: (IMake (ConstNil <typ.Uintptr>) (ConstNil <typ.BytePtr>))
    	for {
    		v.reset(OpIMake)
    		v0 := b.NewValue0(v.Pos, OpConstNil, typ.Uintptr)
    		v1 := b.NewValue0(v.Pos, OpConstNil, typ.BytePtr)
    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

    		auxType: auxFloat32,
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "Const64F",
    		auxType: auxFloat64,
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "ConstInterface",
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "ConstSlice",
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:      "InitMem",
    		argLen:    0,
    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