Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for constNil (0.27 sec)

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

    func rewireSuccessor(block *Block, constVal *Value) bool {
    	switch block.Kind {
    	case BlockIf:
    		block.removeEdge(int(constVal.AuxInt))
    		block.Kind = BlockPlain
    		block.Likely = BranchUnknown
    		block.ResetControls()
    		return true
    	case BlockJumpTable:
    		// Remove everything but the known taken branch.
    		idx := int(constVal.AuxInt)
    		if idx < 0 || idx >= len(block.Succs) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/Wasm.rules

    (Zero [s] destptr mem) =>
    	(LoweredZero [s] destptr mem)
    
    // Lowering constants
    (Const64 ...) => (I64Const ...)
    (Const(32|16|8) [c]) => (I64Const [int64(c)])
    (Const(64|32)F ...) => (F(64|32)Const ...)
    (ConstNil) => (I64Const [0])
    (ConstBool [c]) => (I64Const [b2i(c)])
    
    // Lowering calls
    (StaticCall ...) => (LoweredStaticCall ...)
    (ClosureCall ...) => (LoweredClosureCall ...)
    (InterCall ...) => (LoweredInterCall ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/func.go

    }
    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)
    	v.Aux = StringToAux("")
    	return v
    }
    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/LOONG64.rules

    (NeqB ...) => (XOR ...)
    (Not x) => (XORconst [1] x)
    
    // constants
    (Const(64|32|16|8) [val]) => (MOVVconst [int64(val)])
    (Const(32|64)F [val]) => (MOV(F|D)const [float64(val)])
    (ConstNil) => (MOVVconst [0])
    (ConstBool [t]) => (MOVVconst [int64(b2i(t))])
    
    (Slicemask <t> x) => (SRAVconst (NEGV <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: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (Const(64|32|16|8) [val]) => (MOVDconst [int64(val)])
    (Const32F [val]) => (FMVSX (MOVDconst [int64(math.Float32bits(val))]))
    (Const64F [val]) => (FMVDX (MOVDconst [int64(math.Float64bits(val))]))
    (ConstNil) => (MOVDconst [0])
    (ConstBool [val]) => (MOVDconst [int64(b2i(val))])
    
    (Addr {sym} base) => (MOVaddr {sym} [0] base)
    (LocalAddr <t> {sym} base mem) && t.Elem().HasPointers() => (MOVaddr {sym} (SPanchored base mem))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/MIPS.rules

    (EqB x y) => (XORconst [1] (XOR <typ.Bool> x y))
    (NeqB ...) => (XOR ...)
    (Not x) => (XORconst [1] x)
    
    // constants
    (Const(32|16|8) [val]) => (MOVWconst [int32(val)])
    (Const(32|64)F ...) => (MOV(F|D)const ...)
    (ConstNil) => (MOVWconst [0])
    (ConstBool [t]) => (MOVWconst [b2i32(t)])
    
    // truncations
    // Because we ignore high parts of registers, truncates are just copies.
    (Trunc16to8 ...)  => (Copy ...)
    (Trunc32to8 ...)  => (Copy ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 35.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/MIPS64.rules

    (NeqB ...) => (XOR ...)
    (Not x) => (XORconst [1] x)
    
    // constants
    (Const(64|32|16|8) [val]) => (MOVVconst [int64(val)])
    (Const(32|64)F [val]) => (MOV(F|D)const [float64(val)])
    (ConstNil) => (MOVVconst [0])
    (ConstBool [t]) => (MOVVconst [int64(b2i(t))])
    
    (Slicemask <t> x) => (SRAVconst (NEGV <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: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/compile/internal/ssa/loopbce.go

    						return false
    					}
    					if inclusive && v != limit.AuxInt || !inclusive && v+1 != limit.AuxInt {
    						// We know a better limit than the programmer did. Use our limit instead.
    						limit = f.constVal(limit.Op, limit.Type, v, true)
    						inclusive = true
    					}
    					return true
    				}
    				if step == 1 && !inclusive {
    					// Can't overflow because maxint is never a possible value.
    					return true
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 17:37:47 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  10. src/cmd/doc/doc_test.go

    		[]string{
    			`package pkg .*import`,
    			`Package comment`,
    			`CONSTANTS`,
    			`Comment before ConstOne`,
    			`ConstOne = 1`,
    			`ConstTwo = 2 // Comment on line with ConstTwo`,
    			`ConstFive`,
    			`ConstSix`,
    			`Const block where first entry is unexported`,
    			`ConstLeft2, constRight2 uint64`,
    			`constLeft3, ConstRight3`,
    			`ConstLeft4, ConstRight4`,
    			`Duplicate = iota`,
    			`const CaseMatch = 1`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:16:55 UTC 2023
    - 31.2K bytes
    - Viewed (0)
Back to top