llvm.org GIT mirror llvm / 91021d3
remove the dead std::ostream APInt inserter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79875 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
2 changed file(s) with 4 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
1414 #ifndef LLVM_APINT_H
1515 #define LLVM_APINT_H
1616
17 #include "llvm/Support/DataTypes.h"
1817 #include "llvm/Support/MathExtras.h"
1918 #include
2019 #include
3130 template
3231 class SmallVectorImpl;
3332
34 /* An unsigned host type used as a single part of a multi-part
35 bignum. */
33 // An unsigned host type used as a single part of a multi-part
34 // bignum.
3635 typedef uint64_t integerPart;
3736
3837 const unsigned int host_char_bit = 8;
14251424 return OS;
14261425 }
14271426
1428 std::ostream &operator<<(std::ostream &o, const APInt &I);
1429
14301427 namespace APIntOps {
14311428
14321429 /// @brief Determine the smaller of two APInts considered to be signed.
22022202 OS << S.str();
22032203 }
22042204
2205 std::ostream &llvm::operator<<(std::ostream &o, const APInt &I) {
2206 raw_os_ostream OS(o);
2207 OS << I;
2208 return o;
2209 }
2210
22112205 // This implements a variety of operations on a representation of
22122206 // arbitrary precision, two's-complement, bignum integer values.
22132207
2214 /* Assumed by lowHalf, highHalf, partMSB and partLSB. A fairly safe
2215 and unrestricting assumption. */
2208 // Assumed by lowHalf, highHalf, partMSB and partLSB. A fairly safe
2209 // and unrestricting assumption.
22162210 #define COMPILE_TIME_ASSERT(cond) extern int CTAssert[(cond) ? 1 : -1]
22172211 COMPILE_TIME_ASSERT(integerPartWidth % 2 == 0);
22182212