Home | History | Annotate | Download | only in ADT

Lines Matching refs:shiftAmt

188   APInt shlSlowCase(unsigned shiftAmt) const;
482 unsigned shiftAmt = numBits - hiBitsSet;
485 return APInt(numBits, ~0ULL << shiftAmt);
486 return getAllOnesValue(numBits).shl(shiftAmt);
645 /// Shifts *this left by shiftAmt and assigns the result to *this.
646 /// @returns *this after shifting left by shiftAmt
648 APInt& operator<<=(unsigned shiftAmt) {
649 *this = shl(shiftAmt);
721 /// Arithmetic right-shift this APInt by shiftAmt.
723 APInt ashr(unsigned shiftAmt) const;
725 /// Logical right-shift this APInt by shiftAmt.
727 APInt lshr(unsigned shiftAmt) const;
729 /// Left-shift this APInt by shiftAmt.
731 APInt shl(unsigned shiftAmt) const {
732 assert(shiftAmt <= BitWidth && "Invalid shift amount");
734 if (shiftAmt == BitWidth)
736 return APInt(BitWidth, VAL << shiftAmt);
738 return shlSlowCase(shiftAmt);
747 /// Arithmetic right-shift this APInt by shiftAmt.
749 APInt ashr(const APInt &shiftAmt) const;
751 /// Logical right-shift this APInt by shiftAmt.
753 APInt lshr(const APInt &shiftAmt) const;
755 /// Left-shift this APInt by shiftAmt.
757 APInt shl(const APInt &shiftAmt) const;
1666 /// Arithmetic right-shift the APInt by shiftAmt.
1668 inline APInt ashr(const APInt& LHS, unsigned shiftAmt) {
1669 return LHS.ashr(shiftAmt);
1672 /// Logical right-shift the APInt by shiftAmt.
1674 inline APInt lshr(const APInt& LHS, unsigned shiftAmt) {
1675 return LHS.lshr(shiftAmt);
1678 /// Left-shift the APInt by shiftAmt.
1680 inline APInt shl(const APInt& LHS, unsigned shiftAmt) {
1681 return LHS.shl(shiftAmt);