Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ConstNil (0.43 sec)

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

    (ConstSlice) && config.PtrSize == 4 =>
      (SliceMake
        (ConstNil <v.Type.Elem().PtrTo()>)
        (Const32 <typ.Int> [0])
        (Const32 <typ.Int> [0]))
    (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>))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/ssa.go

    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)
    }
    func (s *state) constBool(c bool) *ssa.Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/func.go

    	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)
    }
    func (f *Func) ConstEmptyString(t *types.Type) *Value {
    	v := f.constVal(OpConstString, t, constEmptyStringMagic, 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)
  4. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// auxint fields.
    	{name: "ConstBool", aux: "Bool"},     // auxint is 0 for false and 1 for true
    	{name: "ConstString", aux: "String"}, // value is aux.(string)
    	{name: "ConstNil", typ: "BytePtr"},   // nil pointer
    	{name: "Const8", aux: "Int8"},        // auxint is sign-extended 8 bits
    	{name: "Const16", aux: "Int16"},      // auxint is sign-extended 16 bits
    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/_gen/PPC64.rules

    (Trunc64to32 <t> x) && t.IsSigned() => (MOVWreg x)
    (Trunc64to32 x) => (MOVWZreg x)
    
    // Lowering constants
    (Const(64|32|16|8) [val]) => (MOVDconst [int64(val)])
    (Const(32|64)F ...) => (FMOV(S|D)const ...)
    (ConstNil) => (MOVDconst [0])
    (ConstBool [t]) => (MOVDconst [b2i(t)])
    
    // Carrying addition.
    (Select0 (Add64carry x y c)) =>            (Select0 <typ.UInt64> (ADDE x y (Select1 <typ.UInt64> (ADDCconst c [-1]))))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewritegeneric.go

    		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)
    		v.AddArg2(v0, v1)
    		return true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    // constants
    (Const(64|32|16|8) [val]) => (MOVDconst [int64(val)])
    (Const(32|64)F    [val]) => (FMOV(S|D)const [float64(val)])
    (ConstNil) => (MOVDconst [0])
    (ConstBool [t]) => (MOVDconst [b2i(t)])
    
    (Slicemask <t> x) => (SRAconst (NEG <t> x) [63])
    
    // truncations
    // Because we ignore high parts of registers, truncates are just copies.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewritePPC64.go

    	for {
    		t := auxIntToBool(v.AuxInt)
    		v.reset(OpPPC64MOVDconst)
    		v.AuxInt = int64ToAuxInt(b2i(t))
    		return true
    	}
    }
    func rewriteValuePPC64_OpConstNil(v *Value) bool {
    	// match: (ConstNil)
    	// result: (MOVDconst [0])
    	for {
    		v.reset(OpPPC64MOVDconst)
    		v.AuxInt = int64ToAuxInt(0)
    		return true
    	}
    }
    func rewriteValuePPC64_OpCopysign(v *Value) bool {
    	v_1 := v.Args[1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewriteARM64.go

    	for {
    		t := auxIntToBool(v.AuxInt)
    		v.reset(OpARM64MOVDconst)
    		v.AuxInt = int64ToAuxInt(b2i(t))
    		return true
    	}
    }
    func rewriteValueARM64_OpConstNil(v *Value) bool {
    	// match: (ConstNil)
    	// result: (MOVDconst [0])
    	for {
    		v.reset(OpARM64MOVDconst)
    		v.AuxInt = int64ToAuxInt(0)
    		return true
    	}
    }
    func rewriteValueARM64_OpCtz16(v *Value) bool {
    	v_0 := v.Args[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/opGen.go

    		auxType: auxBool,
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "ConstString",
    		auxType: auxString,
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "ConstNil",
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "Const8",
    		auxType: auxInt8,
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "Const16",
    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