Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 57 for IsBoolean (0.23 sec)

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

    (Neq64  x y) => (Not (Eq64  x y))
    (Neq32  x y) => (Not (Eq32  x y))
    (Neq16  x y) => (Not (Eq16  x y))
    (Neq8   x y) => (Not (Eq8   x y))
    (Neq(64|32)F ...) => (FNE(D|S) ...)
    
    // Loads
    (Load <t> ptr mem) &&  t.IsBoolean()                   => (MOVBUload ptr mem)
    (Load <t> ptr mem) && ( is8BitInt(t) &&  t.IsSigned()) => (MOVBload  ptr mem)
    (Load <t> ptr mem) && ( is8BitInt(t) && !t.IsSigned()) => (MOVBUload ptr 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)
  2. src/cmd/compile/internal/ssa/_gen/MIPS64.rules

    (LocalAddr <t> {sym} base mem) && t.Elem().HasPointers() => (MOVVaddr {sym} (SPanchored base mem))
    (LocalAddr <t> {sym} base _)  && !t.Elem().HasPointers() => (MOVVaddr {sym} base)
    
    // loads
    (Load <t> ptr mem) && t.IsBoolean() => (MOVBUload ptr mem)
    (Load <t> ptr mem) && (is8BitInt(t)  &&  t.IsSigned()) => (MOVBload ptr mem)
    (Load <t> ptr mem) && (is8BitInt(t)  && !t.IsSigned()) => (MOVBUload ptr mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  3. src/go/types/expr.go

    		// result of comparisons (untyped bool), intermediate
    		// (delayed-checked) rhs operands of shifts, and as
    		// the value nil.
    		switch x.typ.(*Basic).kind {
    		case UntypedBool:
    			if !isBoolean(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    		case UntypedInt, UntypedRune, UntypedFloat, UntypedComplex:
    			if !isNumeric(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/type.go

    	return t.Elem().cmp(x.Elem())
    }
    
    // IsKind reports whether t is a Type of the specified kind.
    func (t *Type) IsKind(et Kind) bool {
    	return t != nil && t.kind == et
    }
    
    func (t *Type) IsBoolean() bool {
    	return t.kind == TBOOL
    }
    
    var unsignedEType = [...]Kind{
    	TINT8:    TUINT8,
    	TUINT8:   TUINT8,
    	TINT16:   TUINT16,
    	TUINT16:  TUINT16,
    	TINT32:   TUINT32,
    	TUINT32:  TUINT32,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/expr.go

    		// result of comparisons (untyped bool), intermediate
    		// (delayed-checked) rhs operands of shifts, and as
    		// the value nil.
    		switch x.typ.(*Basic).kind {
    		case UntypedBool:
    			if !isBoolean(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    		case UntypedInt, UntypedRune, UntypedFloat, UntypedComplex:
    			if !isNumeric(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (Load <t> ptr mem) && is16BitInt(t) &&  t.IsSigned() => (MOVHload ptr mem)
    (Load <t> ptr mem) && is16BitInt(t) && !t.IsSigned() => (MOVHZload ptr mem)
    (Load <t> ptr mem) && t.IsBoolean() => (MOVBZload ptr mem)
    (Load <t> ptr mem) && is8BitInt(t) &&  t.IsSigned() => (MOVBreg (MOVBZload ptr mem)) // PPC has no signed-byte load.
    (Load <t> ptr mem) && is8BitInt(t) && !t.IsSigned() => (MOVBZload ptr mem)
    
    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/rewrite.go

    // a register. It assumes float64 values will always fit into registers
    // even if that isn't strictly true.
    func registerizable(b *Block, typ *types.Type) bool {
    	if typ.IsPtrShaped() || typ.IsFloat() || typ.IsBoolean() {
    		return true
    	}
    	if typ.IsInteger() {
    		return typ.Size() <= b.Func.Config.RegSize
    	}
    	return false
    }
    
    // needRaceCleanup reports whether this call to racefuncenter/exit isn't needed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/S390X.rules

    (Load <t> ptr mem) && is16BitInt(t) && !t.IsSigned() => (MOVHZload ptr mem)
    (Load <t> ptr mem) && is8BitInt(t)  &&  t.IsSigned() => (MOVBload ptr mem)
    (Load <t> ptr mem) && (t.IsBoolean() || (is8BitInt(t) && !t.IsSigned())) => (MOVBZload ptr mem)
    (Load <t> ptr mem) && is32BitFloat(t) => (FMOVSload ptr mem)
    (Load <t> ptr mem) && is64BitFloat(t) => (FMOVDload ptr mem)
    
    // Lowering stores
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewriteMIPS.go

    	}
    }
    func rewriteValueMIPS_OpLoad(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (Load <t> ptr mem)
    	// cond: t.IsBoolean()
    	// result: (MOVBUload ptr mem)
    	for {
    		t := v.Type
    		ptr := v_0
    		mem := v_1
    		if !(t.IsBoolean()) {
    			break
    		}
    		v.reset(OpMIPSMOVBUload)
    		v.AddArg2(ptr, mem)
    		return true
    	}
    	// match: (Load <t> ptr mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 176.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssagen/ssa.go

    	}
    	return s.newValue0I(ssa.OpConst64, types.Types[types.TUINTPTR], int64(v))
    }
    
    func (s *state) conv(n ir.Node, v *ssa.Value, ft, tt *types.Type) *ssa.Value {
    	if ft.IsBoolean() && tt.IsKind(types.TUINT8) {
    		// Bool -> uint8 is generated internally when indexing into runtime.staticbyte.
    		return s.newValue1(ssa.OpCvtBoolToUint8, tt, v)
    	}
    	if ft.IsInteger() && tt.IsInteger() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top