Lines Matching refs:BitWidth

413   unsigned BitWidth = Ty->getScalarSizeInBits();  in commonShiftTransforms()  local
422 AddC->isNegative() && (-*AddC).ult(BitWidth)) { in commonShiftTransforms()
847 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitShl() local
865 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl()
871 C1->ult(BitWidth)) { in visitShl()
892 C1->ult(BitWidth)) { in visitShl()
901 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl()
912 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl()
933 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl()
937 if (match(Op0, m_Shl(m_Value(X), m_APInt(C1))) && C1->ult(BitWidth)) { in visitShl()
940 if (AmtSum < BitWidth) in visitShl()
984 unsigned Op1Val = C->getLimitedValue(BitWidth); in visitShl()
985 APInt Bits = APInt::getHighBitsSet(BitWidth, BitWidth - Op1Val); in visitShl()
1012 MaskedValueIsZero(Op0, APInt::getHighBitsSet(BitWidth, ShAmtC), 0, in visitShl()
1051 match(Op1, m_Sub(m_SpecificInt(BitWidth - 1), m_Value(X)))) in visitShl()
1053 ConstantInt::get(Ty, APInt::getSignMask(BitWidth)), X); in visitShl()
1074 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitLShr() local
1076 if (II && isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmtC && in visitLShr()
1091 if (match(Op0, m_Shl(m_Value(X), m_APInt(C1))) && C1->ult(BitWidth)) { in visitLShr()
1104 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1119 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1125 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1139 unsigned Op1Val = C->getLimitedValue(BitWidth); in visitLShr()
1140 APInt Bits = APInt::getLowBitsSet(BitWidth, BitWidth - Op1Val); in visitLShr()
1159 Ty, APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1167 if (ShAmtC == BitWidth - 1) { in visitLShr()
1173 if (ShAmtC == BitWidth - SrcTyBitWidth) { in visitLShr()
1182 if (ShAmtC == BitWidth - 1) { in visitLShr()
1203 if (AmtSum < BitWidth) in visitLShr()
1219 (TruncSrc->hasOneUse() || C1->uge(SrcWidth - BitWidth))) { in visitLShr()
1225 APInt MaskC = APInt::getAllOnes(BitWidth).lshr(ShAmtC); in visitLShr()
1236 if (BitWidth > 2 && ShAmtC * 2 == BitWidth && (*MulC - 1).isPowerOf2() && in visitLShr()
1263 unsigned WidthDiff = BitWidth - SrcWidth; in visitLShr()
1281 MaskedValueIsZero(Op0, APInt::getLowBitsSet(BitWidth, ShAmtC), 0, &I)) { in visitLShr()
1380 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitAShr() local
1382 if (match(Op1, m_APInt(ShAmtAPInt)) && ShAmtAPInt->ult(BitWidth)) { in visitAShr()
1390 ShAmt == BitWidth - X->getType()->getScalarSizeInBits()) in visitAShr()
1397 ShOp1->ult(BitWidth)) { in visitAShr()
1416 ShOp1->ult(BitWidth)) { in visitAShr()
1419 AmtSum = std::min(AmtSum, BitWidth - 1); in visitAShr()
1433 if (ShAmt == BitWidth - 1) { in visitAShr()
1446 MaskedValueIsZero(Op0, APInt::getLowBitsSet(BitWidth, ShAmt), 0, &I)) { in visitAShr()
1456 if (match(Op1, m_SpecificIntAllowUndef(BitWidth - 1)) && in visitAShr()
1458 m_SpecificIntAllowUndef(BitWidth - 1))))) { in visitAShr()
1472 if (MaskedValueIsZero(Op0, APInt::getSignMask(BitWidth), 0, &I)) in visitAShr()