Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for isInBounds (0.42 sec)

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

    // Fold IsInBounds when the range of the index cannot exceed the limit.
    (IsInBounds (ZeroExt8to32  _) (Const32 [c])) && (1 << 8)  <= c => (ConstBool [true])
    (IsInBounds (ZeroExt8to64  _) (Const64 [c])) && (1 << 8)  <= c => (ConstBool [true])
    (IsInBounds (ZeroExt16to32 _) (Const32 [c])) && (1 << 16) <= c => (ConstBool [true])
    (IsInBounds (ZeroExt16to64 _) (Const64 [c])) && (1 << 16) <= c => (ConstBool [true])
    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

    	}
    	// match: (IsInBounds (ZeroExt16to64 _) (Const64 [c]))
    	// cond: (1 << 16) <= c
    	// result: (ConstBool [true])
    	for {
    		if v_0.Op != OpZeroExt16to64 || v_1.Op != OpConst64 {
    			break
    		}
    		c := auxIntToInt64(v_1.AuxInt)
    		if !((1 << 16) <= c) {
    			break
    		}
    		v.reset(OpConstBool)
    		v.AuxInt = boolToAuxInt(true)
    		return true
    	}
    	// match: (IsInBounds x x)
    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/_gen/genericOps.go

    	{name: "Round32F", argLength: 1},
    	{name: "Round64F", argLength: 1},
    
    	// Automatically inserted safety checks
    	{name: "IsNonNil", argLength: 1, typ: "Bool"},        // arg0 != nil
    	{name: "IsInBounds", argLength: 2, typ: "Bool"},      // 0 <= arg0 < arg1. arg1 is guaranteed >= 0.
    	{name: "IsSliceInBounds", argLength: 2, typ: "Bool"}, // 0 <= arg0 <= arg1. arg1 is guaranteed >= 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    // Miscellaneous
    (GetClosurePtr ...) => (LoweredGetClosurePtr ...)
    (GetCallerSP ...) => (LoweredGetCallerSP ...)
    (GetCallerPC ...) => (LoweredGetCallerPC ...)
    (IsNonNil ptr) => (NotEqual (CMPconst [0] ptr))
    (IsInBounds idx len) => (LessThan (CMPU idx len))
    (IsSliceInBounds idx len) => (LessEqual (CMPU idx len))
    (NilCheck ...) => (LoweredNilCheck ...)
    
    // Write barrier.
    (WB ...) => (LoweredWB ...)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (ClosureCall ...) => (CALLclosure ...)
    (InterCall   ...) => (CALLinter   ...)
    (TailCall    ...) => (CALLtail    ...)
    
    // checks
    (NilCheck ...) => (LoweredNilCheck ...)
    (IsNonNil ptr) => (NotEqual (CMPconst [0] ptr))
    (IsInBounds      idx len) => (LessThanU  (CMP idx len))
    (IsSliceInBounds idx len) => (LessEqualU (CMP idx len))
    
    // pseudo-ops
    (GetClosurePtr ...) => (LoweredGetClosurePtr ...)
    (GetCallerSP   ...) => (LoweredGetCallerSP   ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewritePPC64.go

    		v0.AddArg2(x, y)
    		v.AddArg(v0)
    		return true
    	}
    }
    func rewriteValuePPC64_OpIsInBounds(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	// match: (IsInBounds idx len)
    	// result: (LessThan (CMPU idx len))
    	for {
    		idx := v_0
    		len := v_1
    		v.reset(OpPPC64LessThan)
    		v0 := b.NewValue0(v.Pos, OpPPC64CMPU, types.TypeFlags)
    		v0.AddArg2(idx, len)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewriteARM64.go

    		v0.AddArg2(x, y)
    		v.AddArg(v0)
    		return true
    	}
    }
    func rewriteValueARM64_OpIsInBounds(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	// match: (IsInBounds idx len)
    	// result: (LessThanU (CMP idx len))
    	for {
    		idx := v_0
    		len := v_1
    		v.reset(OpARM64LessThanU)
    		v0 := b.NewValue0(v.Pos, OpARM64CMP, types.TypeFlags)
    		v0.AddArg2(idx, len)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/opGen.go

    	},
    	{
    		name:    "Round64F",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "IsNonNil",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "IsInBounds",
    		argLen:  2,
    		generic: true,
    	},
    	{
    		name:    "IsSliceInBounds",
    		argLen:  2,
    		generic: true,
    	},
    	{
    		name:     "NilCheck",
    		argLen:   2,
    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