Searched refs:shiftAmt (Results 1 – 2 of 2) sorted by relevance
193 APInt shlSlowCase(unsigned shiftAmt) const;519 unsigned shiftAmt = numBits - hiBitsSet; in getHighBitsSet() local522 return APInt(numBits, ~0ULL << shiftAmt); in getHighBitsSet()523 return getAllOnesValue(numBits).shl(shiftAmt); in getHighBitsSet()761 APInt &operator<<=(unsigned shiftAmt) {762 *this = shl(shiftAmt);859 APInt LLVM_ATTRIBUTE_UNUSED_RESULT ashr(unsigned shiftAmt) const;864 APInt LLVM_ATTRIBUTE_UNUSED_RESULT lshr(unsigned shiftAmt) const;869 APInt LLVM_ATTRIBUTE_UNUSED_RESULT shl(unsigned shiftAmt) const { in shl() argument870 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in shl()[all …]
1045 APInt APInt::ashr(const APInt &shiftAmt) const { in ashr()1046 return ashr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashr()1051 APInt APInt::ashr(unsigned shiftAmt) const { in ashr()1052 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in ashr()1054 if (shiftAmt == 0) in ashr()1059 if (shiftAmt == BitWidth) in ashr()1064 (((int64_t(VAL) << SignBit) >> SignBit) >> shiftAmt)); in ashr()1071 if (shiftAmt == BitWidth) { in ashr()1082 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; // bits to shift per word in ashr()1083 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; // word offset for shift in ashr()[all …]