Lines Matching refs:APInt
170 static void ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, in ComputeSignedMinMaxValuesFromKnownBits()
171 const APInt& KnownOne, in ComputeSignedMinMaxValuesFromKnownBits()
172 APInt& Min, APInt& Max) { in ComputeSignedMinMaxValuesFromKnownBits()
177 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeSignedMinMaxValuesFromKnownBits()
194 static void ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, in ComputeUnsignedMinMaxValuesFromKnownBits()
195 const APInt &KnownOne, in ComputeUnsignedMinMaxValuesFromKnownBits()
196 APInt &Min, APInt &Max) { in ComputeUnsignedMinMaxValuesFromKnownBits()
201 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeUnsignedMinMaxValuesFromKnownBits()
779 APInt::getSignedMaxValue(BitWidth)); in FoldICmpAddOpCst()
807 const APInt &CmpRHSV = CmpRHS->getValue(); in FoldICmpDivCst()
963 const APInt &CmpRHSV = cast<ConstantInt>(ICI.getOperand(1))->getValue(); in FoldICmpShrCst()
990 ConstantInt::get(Shr->getType(), APInt::getOneBitSet(TypeBits, ShAmtVal)); in FoldICmpShrCst()
1016 APInt Comp = CmpRHSV << ShAmtVal; in FoldICmpShrCst()
1037 APInt Val(APInt::getHighBitsSet(TypeBits, TypeBits - ShAmtVal)); in FoldICmpShrCst()
1053 const APInt &RHSV = RHS->getValue(); in visitICmpInstWithInstAndIntCst()
1062 APInt KnownZero(SrcBits, 0), KnownOne(SrcBits, 0); in visitICmpInstWithInstAndIntCst()
1068 APInt NewRHS = RHS->getValue().zext(SrcBits); in visitICmpInstWithInstAndIntCst()
1069 NewRHS |= KnownOne & APInt::getHighBitsSet(SrcBits, SrcBits-DstBits); in visitICmpInstWithInstAndIntCst()
1109 const APInt &SignBit = XorCst->getValue(); in visitICmpInstWithInstAndIntCst()
1119 const APInt &NotSignBit = XorCst->getValue(); in visitICmpInstWithInstAndIntCst()
1290 APInt::getOneBitSet(AndCst->getBitWidth(), NTZ).ugt(RHSV)) in visitICmpInstWithInstAndIntCst()
1466 Constant *Mask = Builder->getInt(APInt::getLowBitsSet(TypeBits, in visitICmpInstWithInstAndIntCst()
1491 APInt::getOneBitSet(TypeBits, in visitICmpInstWithInstAndIntCst()
1555 const APInt &LHSV = LHSC->getValue(); in visitICmpInstWithInstAndIntCst()
1581 const APInt &LHSV = LHSC->getValue(); in visitICmpInstWithInstAndIntCst()
1636 const APInt &V = cast<ConstantInt>(BO->getOperand(1))->getValue(); in visitICmpInstWithInstAndIntCst()
1928 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in ProcessUGT_ADDCST_ADD()
2078 const APInt &CVal = CI->getValue(); in ProcessUMulZExtIdiom()
2111 const APInt &CVal = CI->getValue() + 1; in ProcessUMulZExtIdiom()
2125 APInt MaxVal = APInt::getMaxValue(MulWidth); in ProcessUMulZExtIdiom()
2137 APInt MaxVal = APInt::getOneBitSet(CI->getBitWidth(), MulWidth); in ProcessUMulZExtIdiom()
2148 APInt MaxVal = APInt::getMaxValue(MulWidth); in ProcessUMulZExtIdiom()
2160 APInt MaxVal = APInt::getOneBitSet(CI->getBitWidth(), MulWidth); in ProcessUMulZExtIdiom()
2202 APInt ShortMask = CI->getValue().trunc(MulWidth); in ProcessUMulZExtIdiom()
2252 static APInt DemandedBitsLHSMask(ICmpInst &I, in DemandedBitsLHSMask()
2255 return APInt::getSignBit(BitWidth); in DemandedBitsLHSMask()
2258 if (!CI) return APInt::getAllOnesValue(BitWidth); in DemandedBitsLHSMask()
2259 const APInt &RHS = CI->getValue(); in DemandedBitsLHSMask()
2268 APInt lowBitsSet = APInt::getLowBitsSet(BitWidth, trailingOnes); in DemandedBitsLHSMask()
2276 APInt lowBitsSet = APInt::getLowBitsSet(BitWidth, trailingZeros); in DemandedBitsLHSMask()
2281 return APInt::getAllOnesValue(BitWidth); in DemandedBitsLHSMask()
2481 APInt Op0KnownZero(BitWidth, 0), Op0KnownOne(BitWidth, 0); in visitICmpInst()
2482 APInt Op1KnownZero(BitWidth, 0), Op1KnownOne(BitWidth, 0); in visitICmpInst()
2489 APInt::getAllOnesValue(BitWidth), in visitICmpInst()
2496 APInt Op0Min(BitWidth, 0), Op0Max(BitWidth, 0); in visitICmpInst()
2497 APInt Op1Min(BitWidth, 0), Op1Max(BitWidth, 0); in visitICmpInst()
2531 APInt Op0KnownZeroInverted = ~Op0KnownZero; in visitICmpInst()
2545 APInt ValToCheck = Op0KnownZeroInverted; in visitICmpInst()
2559 const APInt *CI; in visitICmpInst()
2576 APInt Op0KnownZeroInverted = ~Op0KnownZero; in visitICmpInst()
2590 APInt ValToCheck = Op0KnownZeroInverted; in visitICmpInst()
2604 const APInt *CI; in visitICmpInst()
2950 const APInt &AP1 = C1->getValue(); in visitICmpInst()
2951 const APInt &AP2 = C2->getValue(); in visitICmpInst()
2953 APInt AP1Abs = C1->getValue().abs(); in visitICmpInst()
2954 APInt AP2Abs = C2->getValue().abs(); in visitICmpInst()
3074 const APInt &AP = CI->getValue(); in visitICmpInst()
3076 APInt::getLowBitsSet(AP.getBitWidth(), in visitICmpInst()
3225 APInt Pow2 = Cst1->getValue() + 1; in visitICmpInst()
3245 APInt CmpVal = APInt::getOneBitSet(TypeBits, ShAmt); in visitICmpInst()
3263 APInt MaskV = in visitICmpInst()
3264 APInt::getLowBitsSet(ASize, Op0->getType()->getPrimitiveSizeInBits()); in visitICmpInst()
3267 APInt CmpV = Cst1->getValue().zext(ASize); in visitICmpInst()
3366 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in FoldFCmp_IntToFP_Cst()
3378 UMax.convertFromAPInt(APInt::getMaxValue(IntWidth), false, in FoldFCmp_IntToFP_Cst()
3391 SMin.convertFromAPInt(APInt::getSignedMinValue(IntWidth), true, in FoldFCmp_IntToFP_Cst()
3402 SMin.convertFromAPInt(APInt::getMinValue(IntWidth), true, in FoldFCmp_IntToFP_Cst()