Lines Matching refs:ShiftAmt
2247 const APInt *ShiftAmt; in foldICmpShlConstant() local
2248 if (!match(Shl->getOperand(1), m_APInt(ShiftAmt))) in foldICmpShlConstant()
2254 if (ShiftAmt->uge(TypeBits)) in foldICmpShlConstant()
2266 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant()
2270 C.ashr(*ShiftAmt).shl(*ShiftAmt) == C) { in foldICmpShlConstant()
2271 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant()
2280 APInt ShiftedC = (C - 1).ashr(*ShiftAmt) + 1; in foldICmpShlConstant()
2291 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant()
2295 C.lshr(*ShiftAmt).shl(*ShiftAmt) == C) { in foldICmpShlConstant()
2296 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant()
2305 APInt ShiftedC = (C - 1).lshr(*ShiftAmt) + 1; in foldICmpShlConstant()
2314 APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2316 Constant *LShrC = ConstantInt::get(ShType, C.lshr(*ShiftAmt)); in foldICmpShlConstant()
2326 APInt::getOneBitSet(TypeBits, TypeBits - ShiftAmt->getZExtValue() - 1)); in foldICmpShlConstant()
2337 Value *And = Builder.CreateAnd(X, (~C).lshr(ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2346 Builder.CreateAnd(X, (~(C - 1)).lshr(ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2359 unsigned Amt = ShiftAmt->getLimitedValue(TypeBits - 1); in foldICmpShlConstant()
2366 ConstantInt::get(TruncTy, C.ashr(*ShiftAmt).trunc(TypeBits - Amt)); in foldICmpShlConstant()