Lines Matching defs:ShAmt
931 ConstantInt *ShAmt) {
938 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits);
1150 ConstantInt *ShAmt;
1151 ShAmt = Shift ? dyn_cast<ConstantInt>(Shift->getOperand(1)) : 0;
1158 if (ShAmt) {
1164 int ShAmtVal = TyBits - ShAmt->getLimitedValue(TyBits);
1175 NewCst = ConstantExpr::getLShr(RHS, ShAmt);
1177 NewCst = ConstantExpr::getShl(RHS, ShAmt);
1182 NewCst, ShAmt) != RHS) {
1196 NewAndCST = ConstantExpr::getLShr(AndCST, ShAmt);
1198 NewAndCST = ConstantExpr::getShl(AndCST, ShAmt);
1266 case Instruction::Shl: { // (icmp pred (shl X, ShAmt), CI)
1267 ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1));
1268 if (!ShAmt) break;
1275 if (ShAmt->uge(TypeBits))
1282 ConstantExpr::getShl(ConstantExpr::getLShr(RHS, ShAmt),
1283 ShAmt);
1295 ConstantExpr::getLShr(RHS, ShAmt));
1299 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits);
1307 ConstantExpr::getLShr(RHS, ShAmt));
1318 TypeBits-ShAmt->getZExtValue()-1));
1327 case Instruction::LShr: // (icmp pred (shr X, ShAmt), CI)
1331 if (ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1))) {
1332 if (Instruction *Res = FoldICmpShrCst(ICI, BO, ShAmt))
2602 uint64_t ShAmt = 0;
2605 m_ConstantInt(ShAmt))))) &&
2612 if (ShAmt < ASize) {
2615 MaskV <<= ShAmt;
2618 CmpV <<= ShAmt;