reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/APFloat.h
  142   typedef APInt::WordType integerPart;
include/llvm/ADT/APInt.h
   76     APINT_WORD_SIZE = sizeof(WordType),
   87   static const WordType WORDTYPE_MAX = ~WordType(0);
  191   static void divide(const WordType *LHS, unsigned lhsWords,
  192                      const WordType *RHS, unsigned rhsWords, WordType *Quotient,
  192                      const WordType *RHS, unsigned rhsWords, WordType *Quotient,
  193                      WordType *Remainder);
 1408     WordType Mask = maskBit(BitPosition);
 1467     WordType Mask = ~maskBit(BitPosition);
 1845   static void tcSet(WordType *, WordType, unsigned);
 1845   static void tcSet(WordType *, WordType, unsigned);
 1848   static void tcAssign(WordType *, const WordType *, unsigned);
 1848   static void tcAssign(WordType *, const WordType *, unsigned);
 1851   static bool tcIsZero(const WordType *, unsigned);
 1854   static int tcExtractBit(const WordType *, unsigned bit);
 1860   static void tcExtract(WordType *, unsigned dstCount,
 1861                         const WordType *, unsigned srcBits,
 1865   static void tcSetBit(WordType *, unsigned bit);
 1868   static void tcClearBit(WordType *, unsigned bit);
 1872   static unsigned tcLSB(const WordType *, unsigned n);
 1873   static unsigned tcMSB(const WordType *parts, unsigned n);
 1876   static void tcNegate(WordType *, unsigned);
 1879   static WordType tcAdd(WordType *, const WordType *,
 1879   static WordType tcAdd(WordType *, const WordType *,
 1879   static WordType tcAdd(WordType *, const WordType *,
 1880                         WordType carry, unsigned);
 1882   static WordType tcAddPart(WordType *, WordType, unsigned);
 1882   static WordType tcAddPart(WordType *, WordType, unsigned);
 1882   static WordType tcAddPart(WordType *, WordType, unsigned);
 1885   static WordType tcSubtract(WordType *, const WordType *,
 1885   static WordType tcSubtract(WordType *, const WordType *,
 1885   static WordType tcSubtract(WordType *, const WordType *,
 1886                              WordType carry, unsigned);
 1888   static WordType tcSubtractPart(WordType *, WordType, unsigned);
 1888   static WordType tcSubtractPart(WordType *, WordType, unsigned);
 1888   static WordType tcSubtractPart(WordType *, WordType, unsigned);
 1900   static int tcMultiplyPart(WordType *dst, const WordType *src,
 1900   static int tcMultiplyPart(WordType *dst, const WordType *src,
 1901                             WordType multiplier, WordType carry,
 1901                             WordType multiplier, WordType carry,
 1909   static int tcMultiply(WordType *, const WordType *, const WordType *,
 1909   static int tcMultiply(WordType *, const WordType *, const WordType *,
 1909   static int tcMultiply(WordType *, const WordType *, const WordType *,
 1914   static void tcFullMultiply(WordType *, const WordType *,
 1914   static void tcFullMultiply(WordType *, const WordType *,
 1915                              const WordType *, unsigned, unsigned);
 1926   static int tcDivide(WordType *lhs, const WordType *rhs,
 1926   static int tcDivide(WordType *lhs, const WordType *rhs,
 1927                       WordType *remainder, WordType *scratch,
 1927                       WordType *remainder, WordType *scratch,
 1932   static void tcShiftLeft(WordType *, unsigned Words, unsigned Count);
 1936   static void tcShiftRight(WordType *, unsigned Words, unsigned Count);
 1939   static void tcAnd(WordType *, const WordType *, unsigned);
 1939   static void tcAnd(WordType *, const WordType *, unsigned);
 1940   static void tcOr(WordType *, const WordType *, unsigned);
 1940   static void tcOr(WordType *, const WordType *, unsigned);
 1941   static void tcXor(WordType *, const WordType *, unsigned);
 1941   static void tcXor(WordType *, const WordType *, unsigned);
 1942   static void tcComplement(WordType *, unsigned);
 1945   static int tcCompare(const WordType *, const WordType *, unsigned);
 1945   static int tcCompare(const WordType *, const WordType *, unsigned);
 1948   static WordType tcIncrement(WordType *dst, unsigned parts) {
 1948   static WordType tcIncrement(WordType *dst, unsigned parts) {
 1953   static WordType tcDecrement(WordType *dst, unsigned parts) {
 1953   static WordType tcDecrement(WordType *dst, unsigned parts) {
 1958   static void tcSetLeastSignificantBits(WordType *, unsigned, unsigned bits);
lib/Support/APInt.cpp
  422   static_assert(8 * sizeof(WordType) <= 64, "This code assumes only two words affected");
  423   unsigned wordBits = 8 * sizeof(WordType);
  485   static_assert(8 * sizeof(WordType) <= 64, "This code assumes only two words affected");
  486   unsigned wordBits = 8 * sizeof(WordType);
 1453 void APInt::divide(const WordType *LHS, unsigned lhsWords, const WordType *RHS,
 1453 void APInt::divide(const WordType *LHS, unsigned lhsWords, const WordType *RHS,
 1454                    unsigned rhsWords, WordType *Quotient, WordType *Remainder) {
 1454                    unsigned rhsWords, WordType *Quotient, WordType *Remainder) {
 2292 static inline APInt::WordType lowBitMask(unsigned bits) {
 2299 static inline APInt::WordType lowHalf(APInt::WordType part) {
 2299 static inline APInt::WordType lowHalf(APInt::WordType part) {
 2304 static inline APInt::WordType highHalf(APInt::WordType part) {
 2304 static inline APInt::WordType highHalf(APInt::WordType part) {
 2310 static unsigned partMSB(APInt::WordType value) {
 2316 static unsigned partLSB(APInt::WordType value) {
 2322 void APInt::tcSet(WordType *dst, WordType part, unsigned parts) {
 2322 void APInt::tcSet(WordType *dst, WordType part, unsigned parts) {
 2331 void APInt::tcAssign(WordType *dst, const WordType *src, unsigned parts) {
 2331 void APInt::tcAssign(WordType *dst, const WordType *src, unsigned parts) {
 2337 bool APInt::tcIsZero(const WordType *src, unsigned parts) {
 2346 int APInt::tcExtractBit(const WordType *parts, unsigned bit) {
 2351 void APInt::tcSetBit(WordType *parts, unsigned bit) {
 2356 void APInt::tcClearBit(WordType *parts, unsigned bit) {
 2362 unsigned APInt::tcLSB(const WordType *parts, unsigned n) {
 2376 unsigned APInt::tcMSB(const WordType *parts, unsigned n) {
 2395 APInt::tcExtract(WordType *dst, unsigned dstCount, const WordType *src,
 2395 APInt::tcExtract(WordType *dst, unsigned dstCount, const WordType *src,
 2411     WordType mask = lowBitMask (srcBits - n);
 2425 APInt::WordType APInt::tcAdd(WordType *dst, const WordType *rhs,
 2425 APInt::WordType APInt::tcAdd(WordType *dst, const WordType *rhs,
 2425 APInt::WordType APInt::tcAdd(WordType *dst, const WordType *rhs,
 2426                              WordType c, unsigned parts) {
 2430     WordType l = dst[i];
 2447 APInt::WordType APInt::tcAddPart(WordType *dst, WordType src,
 2447 APInt::WordType APInt::tcAddPart(WordType *dst, WordType src,
 2447 APInt::WordType APInt::tcAddPart(WordType *dst, WordType src,
 2460 APInt::WordType APInt::tcSubtract(WordType *dst, const WordType *rhs,
 2460 APInt::WordType APInt::tcSubtract(WordType *dst, const WordType *rhs,
 2460 APInt::WordType APInt::tcSubtract(WordType *dst, const WordType *rhs,
 2461                                   WordType c, unsigned parts) {
 2465     WordType l = dst[i];
 2485 APInt::WordType APInt::tcSubtractPart(WordType *dst, WordType src,
 2485 APInt::WordType APInt::tcSubtractPart(WordType *dst, WordType src,
 2485 APInt::WordType APInt::tcSubtractPart(WordType *dst, WordType src,
 2488     WordType Dst = dst[i];
 2499 void APInt::tcNegate(WordType *dst, unsigned parts) {
 2515 int APInt::tcMultiplyPart(WordType *dst, const WordType *src,
 2515 int APInt::tcMultiplyPart(WordType *dst, const WordType *src,
 2516                           WordType multiplier, WordType carry,
 2516                           WordType multiplier, WordType carry,
 2527     WordType low, mid, high, srcPart;
 2604 int APInt::tcMultiply(WordType *dst, const WordType *lhs,
 2604 int APInt::tcMultiply(WordType *dst, const WordType *lhs,
 2605                       const WordType *rhs, unsigned parts) {
 2620 void APInt::tcFullMultiply(WordType *dst, const WordType *lhs,
 2620 void APInt::tcFullMultiply(WordType *dst, const WordType *lhs,
 2621                            const WordType *rhs, unsigned lhsParts,
 2645 int APInt::tcDivide(WordType *lhs, const WordType *rhs,
 2645 int APInt::tcDivide(WordType *lhs, const WordType *rhs,
 2646                     WordType *remainder, WordType *srhs,
 2646                     WordType *remainder, WordType *srhs,
 2656   WordType mask = (WordType) 1 << (shiftCount % APINT_BITS_PER_WORD);
 2687 void APInt::tcShiftLeft(WordType *Dst, unsigned Words, unsigned Count) {
 2714 void APInt::tcShiftRight(WordType *Dst, unsigned Words, unsigned Count) {
 2740 void APInt::tcAnd(WordType *dst, const WordType *rhs, unsigned parts) {
 2740 void APInt::tcAnd(WordType *dst, const WordType *rhs, unsigned parts) {
 2746 void APInt::tcOr(WordType *dst, const WordType *rhs, unsigned parts) {
 2746 void APInt::tcOr(WordType *dst, const WordType *rhs, unsigned parts) {
 2752 void APInt::tcXor(WordType *dst, const WordType *rhs, unsigned parts) {
 2752 void APInt::tcXor(WordType *dst, const WordType *rhs, unsigned parts) {
 2758 void APInt::tcComplement(WordType *dst, unsigned parts) {
 2764 int APInt::tcCompare(const WordType *lhs, const WordType *rhs,
 2764 int APInt::tcCompare(const WordType *lhs, const WordType *rhs,
 2777 void APInt::tcSetLeastSignificantBits(WordType *dst, unsigned parts,
tools/clang/include/clang/AST/Expr.h
  956   static_assert(std::is_same<uint64_t, llvm::APInt::WordType>::value,
unittests/ADT/APIntTest.cpp
  568   APInt::WordType E2[4] = {
 1545     APInt::WordType singleWord = ~APInt::WordType(0) << (APInt::APINT_BITS_PER_WORD - 1);
 1546     APInt::WordType carry = APInt::tcDecrement(&singleWord, 1);
 1553     APInt::WordType singleWord = 0;
 1554     APInt::WordType carry = APInt::tcDecrement(&singleWord, 1);
 1563     APInt::WordType test[4] = {0x1, 0x1, 0x1, 0x1};
 1564     APInt::WordType expected[4] = {0x0, 0x1, 0x1, 0x1};
 1571     APInt::WordType test[4] = {0x0, 0xF, 0x1, 0x1};
 1572     APInt::WordType expected[4] = {~APInt::WordType(0), 0xE, 0x1, 0x1};
 1573     APInt::WordType carry = APInt::tcDecrement(test, 4);
 1580     APInt::WordType test[4] = {0x0, 0x0, 0xC, 0x1};
 1581     APInt::WordType expected[4] = {~APInt::WordType(0), ~APInt::WordType(0), 0xB, 0x1};
 1582     APInt::WordType carry = APInt::tcDecrement(test, 4);
 1589     APInt::WordType test[4] = {0x0, 0x0, 0x0, 0x1};
 1590     APInt::WordType expected[4] = {~APInt::WordType(0), ~APInt::WordType(0), ~APInt::WordType(0), 0x0};
 1591     APInt::WordType carry = APInt::tcDecrement(test, 4);
 1598     APInt::WordType test[4] = {0x0, 0x0, 0x0, 0x0};
 1599     APInt::WordType expected[4] = {~APInt::WordType(0), ~APInt::WordType(0), ~APInt::WordType(0), ~APInt::WordType(0)};
 1600     APInt::WordType carry = APInt::tcDecrement(test, 4);
 1616   APInt::WordType E2[4] = {
 1660   APInt::WordType I4[4] = {0x0, 0xF, 0x18, 0x0};
 1665   APInt::WordType I5[4] = {0x0, 0xF, 0x10, 0x0};