Lines Matching refs:Signed
41 template <unsigned Bits, bool Signed> struct Repr;
56 template <unsigned Bits, bool Signed> class Integral {
61 using T = typename Repr<Bits, Signed>::Type;
107 return APSInt(APInt(Bits, static_cast<uint64_t>(V), Signed), !Signed);
110 if (Signed)
111 return APSInt(toAPSInt().sextOrTrunc(NumBits), !Signed);
113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed);
127 bool isMinusOne() const { return Signed && V == T(-1); }
129 constexpr static bool isSigned() { return Signed; }
146 return Integral((V & BitMask) | (Signed && (V & SignBit) ? ExtMask : 0));
259 template <unsigned Bits, bool Signed>
260 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, Integral<Bits, Signed> I) {