Lines Matching refs:ShAmt
1343 ConstantInt *ShAmt) { in FoldICmpShrCst() argument
1350 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits); in FoldICmpShrCst()
1686 ConstantInt *ShAmt; in visitICmpInstWithInstAndIntCst() local
1687 ShAmt = Shift ? dyn_cast<ConstantInt>(Shift->getOperand(1)) : nullptr; in visitICmpInstWithInstAndIntCst()
1692 if (ShAmt) { in visitICmpInstWithInstAndIntCst()
1717 cast<ConstantInt>(ConstantExpr::getShl(AndCst, ShAmt)); in visitICmpInstWithInstAndIntCst()
1719 cast<ConstantInt>(ConstantExpr::getShl(RHS, ShAmt)); in visitICmpInstWithInstAndIntCst()
1729 NewCst = ConstantExpr::getLShr(RHS, ShAmt); in visitICmpInstWithInstAndIntCst()
1731 NewCst = ConstantExpr::getShl(RHS, ShAmt); in visitICmpInstWithInstAndIntCst()
1735 if (ConstantExpr::get(ShiftOpcode, NewCst, ShAmt) != RHS) { in visitICmpInstWithInstAndIntCst()
1747 NewAndCst = ConstantExpr::getLShr(AndCst, ShAmt); in visitICmpInstWithInstAndIntCst()
1749 NewAndCst = ConstantExpr::getShl(AndCst, ShAmt); in visitICmpInstWithInstAndIntCst()
1923 ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1)); in visitICmpInstWithInstAndIntCst() local
1924 if (!ShAmt) { in visitICmpInstWithInstAndIntCst()
1990 if (ShAmt->uge(TypeBits)) in visitICmpInstWithInstAndIntCst()
1997 ConstantExpr::getShl(ConstantExpr::getLShr(RHS, ShAmt), in visitICmpInstWithInstAndIntCst()
1998 ShAmt); in visitICmpInstWithInstAndIntCst()
2009 ConstantExpr::getLShr(RHS, ShAmt)); in visitICmpInstWithInstAndIntCst()
2015 ConstantExpr::getLShr(RHS, ShAmt)); in visitICmpInstWithInstAndIntCst()
2019 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits); in visitICmpInstWithInstAndIntCst()
2026 ConstantExpr::getLShr(RHS, ShAmt)); in visitICmpInstWithInstAndIntCst()
2046 TypeBits-ShAmt->getZExtValue()-1)); in visitICmpInstWithInstAndIntCst()
2059 unsigned Amt = ShAmt->getLimitedValue(TypeBits-1); in visitICmpInstWithInstAndIntCst()
2079 if (ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1))) { in visitICmpInstWithInstAndIntCst() local
2080 if (Instruction *Res = FoldICmpShrCst(ICI, BO, ShAmt)) in visitICmpInstWithInstAndIntCst()
4215 unsigned ShAmt = (unsigned)Cst1->getLimitedValue(TypeBits); in visitICmpInst() local
4216 if (ShAmt < TypeBits && ShAmt != 0) { in visitICmpInst()
4221 APInt CmpVal = APInt::getOneBitSet(TypeBits, ShAmt); in visitICmpInst()
4230 unsigned ShAmt = (unsigned)Cst1->getLimitedValue(TypeBits); in visitICmpInst() local
4231 if (ShAmt < TypeBits && ShAmt != 0) { in visitICmpInst()
4233 APInt AndVal = APInt::getLowBitsSet(TypeBits, TypeBits - ShAmt); in visitICmpInst()
4243 uint64_t ShAmt = 0; in visitICmpInst() local
4246 m_ConstantInt(ShAmt))))) && in visitICmpInst()
4253 if (ShAmt < ASize) { in visitICmpInst()
4256 MaskV <<= ShAmt; in visitICmpInst()
4259 CmpV <<= ShAmt; in visitICmpInst()