Lines Matching refs:ShiftAmt
2307 const APInt *ShiftAmt; in foldICmpShlConstant() local
2308 if (!match(Shl->getOperand(1), m_APInt(ShiftAmt))) in foldICmpShlConstant()
2314 if (ShiftAmt->uge(TypeBits)) in foldICmpShlConstant()
2326 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant()
2330 C.ashr(*ShiftAmt).shl(*ShiftAmt) == C) { in foldICmpShlConstant()
2331 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant()
2340 APInt ShiftedC = (C - 1).ashr(*ShiftAmt) + 1; in foldICmpShlConstant()
2351 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant()
2355 C.lshr(*ShiftAmt).shl(*ShiftAmt) == C) { in foldICmpShlConstant()
2356 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant()
2365 APInt ShiftedC = (C - 1).lshr(*ShiftAmt) + 1; in foldICmpShlConstant()
2374 APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2376 Constant *LShrC = ConstantInt::get(ShType, C.lshr(*ShiftAmt)); in foldICmpShlConstant()
2386 APInt::getOneBitSet(TypeBits, TypeBits - ShiftAmt->getZExtValue() - 1)); in foldICmpShlConstant()
2397 Value *And = Builder.CreateAnd(X, (~C).lshr(ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2406 Builder.CreateAnd(X, (~(C - 1)).lshr(ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2419 unsigned Amt = ShiftAmt->getLimitedValue(TypeBits - 1); in foldICmpShlConstant()
2443 ConstantInt::get(TruncTy, RHSC.ashr(*ShiftAmt).trunc(TypeBits - Amt)); in foldICmpShlConstant()