reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
83 bool operator<(Integral RHS) const { return V < RHS.V; } 83 bool operator<(Integral RHS) const { return V < RHS.V; } 84 bool operator>(Integral RHS) const { return V > RHS.V; } 84 bool operator>(Integral RHS) const { return V > RHS.V; } 85 bool operator<=(Integral RHS) const { return V <= RHS.V; } 86 bool operator>=(Integral RHS) const { return V >= RHS.V; } 87 bool operator==(Integral RHS) const { return V == RHS.V; } 87 bool operator==(Integral RHS) const { return V == RHS.V; } 88 bool operator!=(Integral RHS) const { return V != RHS.V; } 91 return V >= 0 && static_cast<unsigned>(V) > RHS; 91 return V >= 0 && static_cast<unsigned>(V) > RHS; 94 Integral operator-() const { return Integral(-V); } 95 Integral operator~() const { return Integral(~V); } 99 return Integral<DstBits, DstSign>(V); 102 explicit operator unsigned() const { return V; } 103 explicit operator int64_t() const { return V; } 104 explicit operator uint64_t() const { return V; } 107 return APSInt(APInt(Bits, static_cast<uint64_t>(V), Signed), !Signed); 123 bool isZero() const { return !V; } 127 bool isMinusOne() const { return Signed && V == T(-1); } 131 bool isNegative() const { return V < T(0); } 135 return Compare(V, RHS.V); 135 return Compare(V, RHS.V); 138 unsigned countLeadingZeros() const { return llvm::countLeadingZeros<T>(V); } 146 return Integral((V & BitMask) | (Signed && (V & SignBit) ? ExtMask : 0)); 146 return Integral((V & BitMask) | (Signed && (V & SignBit) ? ExtMask : 0)); 149 void print(llvm::raw_ostream &OS) const { OS << V; } 196 return CheckAddUB(A.V, B.V, R->V); 196 return CheckAddUB(A.V, B.V, R->V); 196 return CheckAddUB(A.V, B.V, R->V); 200 return CheckSubUB(A.V, B.V, R->V); 200 return CheckSubUB(A.V, B.V, R->V); 200 return CheckSubUB(A.V, B.V, R->V); 204 return CheckMulUB(A.V, B.V, R->V); 204 return CheckMulUB(A.V, B.V, R->V); 204 return CheckMulUB(A.V, B.V, R->V);