Lines Matching defs:ShAmt
962 ConstantInt *ShAmt) {
969 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits);
1190 ConstantInt *ShAmt;
1191 ShAmt = Shift ? dyn_cast<ConstantInt>(Shift->getOperand(1)) : nullptr;
1196 if (ShAmt) {
1221 cast<ConstantInt>(ConstantExpr::getShl(AndCst, ShAmt));
1223 cast<ConstantInt>(ConstantExpr::getShl(RHS, ShAmt));
1233 NewCst = ConstantExpr::getLShr(RHS, ShAmt);
1235 NewCst = ConstantExpr::getShl(RHS, ShAmt);
1239 if (ConstantExpr::get(ShiftOpcode, NewCst, ShAmt) != RHS) {
1251 NewAndCst = ConstantExpr::getLShr(AndCst, ShAmt);
1253 NewAndCst = ConstantExpr::getShl(AndCst, ShAmt);
1357 case Instruction::Shl: { // (icmp pred (shl X, ShAmt), CI)
1359 ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1));
1360 if (!ShAmt) {
1436 if (ShAmt->uge(TypeBits))
1443 ConstantExpr::getShl(ConstantExpr::getLShr(RHS, ShAmt),
1444 ShAmt);
1455 ConstantExpr::getLShr(RHS, ShAmt));
1461 ConstantExpr::getLShr(RHS, ShAmt));
1465 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits);
1472 ConstantExpr::getLShr(RHS, ShAmt));
1492 TypeBits-ShAmt->getZExtValue()-1));
1505 unsigned Amt = ShAmt->getLimitedValue(TypeBits-1);
1521 case Instruction::LShr: // (icmp pred (shr X, ShAmt), CI)
1525 if (ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1))) {
1526 if (Instruction *Res = FoldICmpShrCst(ICI, BO, ShAmt))
3239 unsigned ShAmt = (unsigned)Cst1->getLimitedValue(TypeBits);
3240 if (ShAmt < TypeBits && ShAmt != 0) {
3245 APInt CmpVal = APInt::getOneBitSet(TypeBits, ShAmt);
3252 uint64_t ShAmt = 0;
3255 m_ConstantInt(ShAmt))))) &&
3262 if (ShAmt < ASize) {
3265 MaskV <<= ShAmt;
3268 CmpV <<= ShAmt;