Searched refs:shiftAmt (Results 1 - 3 of 3) sorted by relevance

/external/llvm/include/llvm/ADT/
H A DAPInt.h189 APInt shlSlowCase(unsigned shiftAmt) const;
484 unsigned shiftAmt = numBits - hiBitsSet;
487 return APInt(numBits, ~0ULL << shiftAmt);
488 return getAllOnesValue(numBits).shl(shiftAmt);
674 /// Shifts *this left by shiftAmt and assigns the result to *this.
675 /// @returns *this after shifting left by shiftAmt
677 APInt& operator<<=(unsigned shiftAmt) {
678 *this = shl(shiftAmt);
750 /// Arithmetic right-shift this APInt by shiftAmt.
752 APInt ashr(unsigned shiftAmt) cons
[all...]
/external/llvm/lib/Support/
H A DAPInt.cpp1030 /// Arithmetic right-shift this APInt by shiftAmt.
1032 APInt APInt::ashr(const APInt &shiftAmt) const {
1033 return ashr((unsigned)shiftAmt.getLimitedValue(BitWidth));
1036 /// Arithmetic right-shift this APInt by shiftAmt.
1038 APInt APInt::ashr(unsigned shiftAmt) const {
1039 assert(shiftAmt <= BitWidth && "Invalid shift amount");
1041 if (shiftAmt == 0)
1046 if (shiftAmt == BitWidth)
1051 (((int64_t(VAL) << SignBit) >> SignBit) >> shiftAmt));
1058 if (shiftAmt
[all...]
/external/llvm/lib/VMCore/
H A DConstantFold.cpp1076 uint32_t shiftAmt = C2V.getZExtValue(); local
1077 if (shiftAmt < C1V.getBitWidth())
1078 return ConstantInt::get(CI1->getContext(), C1V.shl(shiftAmt));
1083 uint32_t shiftAmt = C2V.getZExtValue(); local
1084 if (shiftAmt < C1V.getBitWidth())
1085 return ConstantInt::get(CI1->getContext(), C1V.lshr(shiftAmt));
1090 uint32_t shiftAmt = C2V.getZExtValue(); local
1091 if (shiftAmt < C1V.getBitWidth())
1092 return ConstantInt::get(CI1->getContext(), C1V.ashr(shiftAmt));

Completed in 75 milliseconds