Lines Matching refs:Boolean
25 class Boolean {
31 explicit Boolean(bool V) : V(V) {} in Boolean() function
35 Boolean() : V(false) {} in Boolean() function
37 bool operator<(Boolean RHS) const { return V < RHS.V; }
38 bool operator>(Boolean RHS) const { return V > RHS.V; }
39 bool operator<=(Boolean RHS) const { return V <= RHS.V; }
40 bool operator>=(Boolean RHS) const { return V >= RHS.V; }
41 bool operator==(Boolean RHS) const { return V == RHS.V; }
42 bool operator!=(Boolean RHS) const { return V != RHS.V; }
46 Boolean operator-() const { return Boolean(V); }
47 Boolean operator~() const { return Boolean(true); }
61 Boolean toUnsigned() const { return *this; } in toUnsigned()
74 ComparisonCategoryResult compare(const Boolean &RHS) const { in compare()
80 Boolean truncate(unsigned TruncBits) const { return *this; } in truncate()
84 static Boolean min(unsigned NumBits) { return Boolean(false); } in min()
85 static Boolean max(unsigned NumBits) { return Boolean(true); } in max()
88 static std::enable_if_t<std::is_integral<T>::value, Boolean> from(T Value) { in from()
89 return Boolean(Value != 0); in from()
93 static std::enable_if_t<SrcBits != 0, Boolean>
95 return Boolean(!Value.isZero()); in from()
99 static Boolean from(Integral<0, SrcSign> Value) { in from()
100 return Boolean(!Value.isZero()); in from()
103 static Boolean zero() { return from(false); } in zero()
106 static Boolean from(T Value, unsigned NumBits) { in from()
107 return Boolean(Value); in from()
114 static bool increment(Boolean A, Boolean *R) { in increment()
115 *R = Boolean(true); in increment()
119 static bool decrement(Boolean A, Boolean *R) { in decrement()
123 static bool add(Boolean A, Boolean B, unsigned OpBits, Boolean *R) { in add()
124 *R = Boolean(A.V || B.V); in add()
128 static bool sub(Boolean A, Boolean B, unsigned OpBits, Boolean *R) { in sub()
129 *R = Boolean(A.V ^ B.V); in sub()
133 static bool mul(Boolean A, Boolean B, unsigned OpBits, Boolean *R) { in mul()
134 *R = Boolean(A.V && B.V); in mul()
139 inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Boolean &B) {