Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for ConstNil (0.21 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/ssa/sccp.go

    			}
    			t.addUses(val)
    		}
    	}()
    
    	switch val.Op {
    	// they are constant values, aren't they?
    	case OpConst64, OpConst32, OpConst16, OpConst8,
    		OpConstBool, OpConst32F, OpConst64F: //TODO: support ConstNil ConstString etc
    		t.latticeCells[val] = lattice{constant, val}
    	// lattice value of copy(x) actually means lattice value of (x)
    	case OpCopy:
    		t.latticeCells[val] = t.getLatticeCell(val.Args[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top