Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for IsNonNil$ (2.21 sec)

  1. test/fuse.go

    }
    
    func fNeqInterNeqInter(a interface{}, f float64) bool {
    	return a != nil && f > Cf2 || a != nil && f < -Cf2 // ERROR "Redirect IsNonNil based on IsNonNil$"
    }
    
    func fEqSliceEqSlice(a []int, f float64) bool {
    	return a == nil && f > Cf2 || a == nil && f < -Cf2 // ERROR "Redirect IsNonNil based on IsNonNil$"
    }
    
    func fEqSliceNeqSlice(a []int, f float64) bool {
    	return a == nil && f > Cf2 || a != nil && f < -Cf2
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/generic.rules

    (EqPtr  (AddPtr p1 o1) p2) && isSamePtr(p1, p2) => (Not (IsNonNil o1))
    (NeqPtr (AddPtr p1 o1) p2) && isSamePtr(p1, p2) => (IsNonNil o1)
    (EqPtr  (Const(32|64) [0]) p) => (Not (IsNonNil p))
    (NeqPtr (Const(32|64) [0]) p) => (IsNonNil p)
    (EqPtr  (ConstNil) p) => (Not (IsNonNil p))
    (NeqPtr (ConstNil) p) => (IsNonNil p)
    
    // Evaluate constant user nil checks.
    (IsNonNil (ConstNil)) => (ConstBool [false])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/schedule.go

    // (not necessarily dependency order). This should be cheaper
    // than a full scheduling as done above.
    // Note that simple dependency order won't work: there is no
    // dependency between NilChecks and values like IsNonNil.
    // Auxiliary data structures are passed in as arguments, so
    // that they can be allocated in the caller and be reused.
    // This function takes care of reset them.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/reflect/all_test.go

    	isValid(m.Func)
    	isNonNil(v.Elem().Field(0).Interface())
    	isNonNil(v.Elem().Field(1).Interface())
    	isNonNil(v.Elem().Field(2).Field(2).Index(0))
    	isNonNil(v.Elem().FieldByName("X").Interface())
    	isNonNil(v.Elem().FieldByName("Y").Interface())
    	isNonNil(v.Elem().FieldByName("Z").Interface())
    	isNonNil(v.Elem().FieldByName("S").Index(0).Interface())
    	isNonNil(v.Type().Method(0).Func.Interface())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/LOONG64.rules

    (AtomicCompareAndSwap32 ptr old new mem) => (LoweredAtomicCas32 ptr (SignExt32to64 old) new mem)
    (AtomicCompareAndSwap64 ...) => (LoweredAtomicCas64 ...)
    
    // checks
    (NilCheck ...) => (LoweredNilCheck ...)
    (IsNonNil ptr) => (SGTU ptr (MOVVconst [0]))
    (IsInBounds idx len) => (SGTU len idx)
    (IsSliceInBounds idx len) => (XOR (MOVVconst [1]) (SGTU idx len))
    
    // pseudo-ops
    (GetClosurePtr ...) => (LoweredGetClosurePtr ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    // Generic zeroing uses a loop
    (Zero [s] {t} ptr mem) =>
    	(LoweredZero [t.Alignment()]
    		ptr
    		(ADD <ptr.Type> ptr (MOVDconst [s-moveSize(t.Alignment(), config)]))
    		mem)
    
    // Checks
    (IsNonNil ...) => (SNEZ ...)
    (IsInBounds ...) => (Less64U ...)
    (IsSliceInBounds ...) => (Leq64U ...)
    
    // Trivial lowering
    (NilCheck ...) => (LoweredNilCheck ...)
    (GetClosurePtr ...) => (LoweredGetClosurePtr ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "CvtBoolToUint8", argLength: 1},
    
    	// Force rounding to precision of type.
    	{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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewritegeneric.go

    }
    func rewriteValuegeneric_OpIsNonNil(v *Value) bool {
    	v_0 := v.Args[0]
    	// match: (IsNonNil (ConstNil))
    	// result: (ConstBool [false])
    	for {
    		if v_0.Op != OpConstNil {
    			break
    		}
    		v.reset(OpConstBool)
    		v.AuxInt = boolToAuxInt(false)
    		return true
    	}
    	// match: (IsNonNil (Const32 [c]))
    	// result: (ConstBool [c != 0])
    	for {
    		if v_0.Op != OpConst32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (TailCall ...) => (CALLtail ...)
    
    // 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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/S390X.rules

    // Lowering calls
    (StaticCall ...) => (CALLstatic ...)
    (ClosureCall ...) => (CALLclosure ...)
    (InterCall ...) => (CALLinter ...)
    (TailCall ...) => (CALLtail ...)
    
    // Miscellaneous
    (IsNonNil p) => (LOCGR {s390x.NotEqual} (MOVDconst [0]) (MOVDconst [1]) (CMPconst p [0]))
    (IsInBounds idx len) => (LOCGR {s390x.Less} (MOVDconst [0]) (MOVDconst [1]) (CMPU idx len))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
Back to top