Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for constBool (0.5 sec)

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

    (EqB (ConstBool [false]) x) => (Not x)
    (EqB (ConstBool [true]) x) => x
    
    (Neq(64|32|16|8) x x) => (ConstBool [false])
    (NeqB (ConstBool [c]) (ConstBool [d])) => (ConstBool [c != d])
    (NeqB (ConstBool [false]) x) => x
    (NeqB (ConstBool [true]) x) => (Not x)
    (NeqB (Not x) (Not y)) => (NeqB x y)
    
    (Eq64 (Const64 <t> [c]) (Add64 (Const64 <t> [d]) x)) => (Eq64 (Const64 <t> [c-d]) 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)
  2. src/cmd/compile/internal/ssa/rewritegeneric.go

    				return true
    			}
    		}
    		break
    	}
    	return false
    }
    func rewriteValuegeneric_OpEqB(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (EqB (ConstBool [c]) (ConstBool [d]))
    	// result: (ConstBool [c == d])
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			if v_0.Op != OpConstBool {
    				continue
    			}
    			c := auxIntToBool(v_0.AuxInt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/func.go

    const (
    	constSliceMagic       = 1122334455
    	constInterfaceMagic   = 2233445566
    	constNilMagic         = 3344556677
    	constEmptyStringMagic = 4455667788
    )
    
    // ConstBool returns an int constant representing its argument.
    func (f *Func) ConstBool(t *types.Type, c bool) *Value {
    	i := int64(0)
    	if c {
    		i = 1
    	}
    	return f.constVal(OpConstBool, t, i, true)
    }
    func (f *Func) ConstInt8(t *types.Type, c int8) *Value {
    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

    	// arg0=ptr/int arg1=mem, output=int/ptr
    	{name: "Convert", argLength: 2, zeroWidth: true, resultInArg0: true},
    
    	// constants. Constant values are stored in the aux or
    	// 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
    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/ssagen/ssa.go

    }
    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 {
    	return s.f.ConstBool(types.Types[types.TBOOL], c)
    }
    func (s *state) constInt8(t *types.Type, c int8) *ssa.Value {
    	return s.f.ConstInt8(t, c)
    }
    func (s *state) constInt16(t *types.Type, c int16) *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)
  6. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (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)
  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.
    (Trunc16to8  ...) => (Copy ...)
    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 {
    		val := auxIntToInt8(v.AuxInt)
    		v.reset(OpPPC64MOVDconst)
    		v.AuxInt = int64ToAuxInt(int64(val))
    		return true
    	}
    }
    func rewriteValuePPC64_OpConstBool(v *Value) bool {
    	// match: (ConstBool [t])
    	// result: (MOVDconst [b2i(t)])
    	for {
    		t := auxIntToBool(v.AuxInt)
    		v.reset(OpPPC64MOVDconst)
    		v.AuxInt = int64ToAuxInt(b2i(t))
    		return true
    	}
    }
    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 {
    		val := auxIntToInt8(v.AuxInt)
    		v.reset(OpARM64MOVDconst)
    		v.AuxInt = int64ToAuxInt(int64(val))
    		return true
    	}
    }
    func rewriteValueARM64_OpConstBool(v *Value) bool {
    	// match: (ConstBool [t])
    	// result: (MOVDconst [b2i(t)])
    	for {
    		t := auxIntToBool(v.AuxInt)
    		v.reset(OpARM64MOVDconst)
    		v.AuxInt = int64ToAuxInt(b2i(t))
    		return true
    	}
    }
    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

    		generic: true,
    	},
    	{
    		name:         "Convert",
    		argLen:       2,
    		resultInArg0: true,
    		zeroWidth:    true,
    		generic:      true,
    	},
    	{
    		name:    "ConstBool",
    		auxType: auxBool,
    		argLen:  0,
    		generic: true,
    	},
    	{
    		name:    "ConstString",
    		auxType: auxString,
    		argLen:  0,
    		generic: true,
    	},
    	{
    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