Lines Matching defs:ShrAmt
634 const APInt *ShrAmt;
635 if (match(I->getOperand(0), m_Shr(m_Value(), m_APInt(ShrAmt))))
637 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA,
1331 unsigned ShrAmt = ShrOp1.getZExtValue();
1341 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) :
1342 (BitMask1.ashr(ShrAmt) << ShlAmt);
1344 if (ShrAmt <= ShlAmt) {
1345 BitMask2 <<= (ShlAmt - ShrAmt);
1347 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt):
1348 BitMask2.ashr(ShrAmt - ShlAmt);
1353 if (ShrAmt == ShlAmt)
1360 if (ShrAmt < ShlAmt) {
1361 Constant *Amt = ConstantInt::get(VarX->getType(), ShlAmt - ShrAmt);
1367 Constant *Amt = ConstantInt::get(VarX->getType(), ShrAmt - ShlAmt);