Lines Matching full:apint
180 static void ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero,
181 const APInt& KnownOne,
182 APInt& Min, APInt& Max) {
187 APInt UnknownBits = ~(KnownZero|KnownOne);
204 static void ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero,
205 const APInt &KnownOne,
206 APInt &Min, APInt &Max) {
211 APInt UnknownBits = ~(KnownZero|KnownOne);
765 APInt::getSignedMaxValue(BitWidth));
793 const APInt &CmpRHSV = CmpRHS->getValue();
949 const APInt &CmpRHSV = cast<ConstantInt>(ICI.getOperand(1))->getValue();
976 ConstantInt::get(Shr->getType(), APInt::getOneBitSet(TypeBits, ShAmtVal));
1002 APInt Comp = CmpRHSV << ShAmtVal;
1023 APInt Val(APInt::getHighBitsSet(TypeBits, TypeBits - ShAmtVal));
1053 APInt AP1 = CI1->getValue();
1054 APInt AP2 = CI2->getValue();
1113 APInt AP1 = CI1->getValue();
1114 APInt AP2 = CI2->getValue();
1144 const APInt &RHSV = RHS->getValue();
1153 APInt KnownZero(SrcBits, 0), KnownOne(SrcBits, 0);
1159 APInt NewRHS = RHS->getValue().zext(SrcBits);
1160 NewRHS |= KnownOne & APInt::getHighBitsSet(SrcBits, SrcBits-DstBits);
1200 const APInt &SignBit = XorCst->getValue();
1210 const APInt &NotSignBit = XorCst->getValue();
1423 APInt::getOneBitSet(AndCst->getBitWidth(), NTZ).ugt(RHSV))
1589 Constant *Mask = Builder->getInt(APInt::getLowBitsSet(TypeBits,
1614 APInt::getOneBitSet(TypeBits,
1678 const APInt &LHSV = LHSC->getValue();
1704 const APInt &LHSV = LHSC->getValue();
1759 const APInt &V = cast<ConstantInt>(BO->getOperand(1))->getValue();
2054 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth))
2283 const APInt &CVal = CI->getValue();
2316 const APInt &CVal = CI->getValue() + 1;
2330 APInt MaxVal = APInt::getMaxValue(MulWidth);
2342 APInt MaxVal = APInt::getOneBitSet(CI->getBitWidth(), MulWidth);
2353 APInt MaxVal = APInt::getMaxValue(MulWidth);
2365 APInt MaxVal = APInt::getOneBitSet(CI->getBitWidth(), MulWidth);
2407 APInt ShortMask = CI->getValue().trunc(MulWidth);
2457 static APInt DemandedBitsLHSMask(ICmpInst &I,
2460 return APInt::getSignBit(BitWidth);
2463 if (!CI) return APInt::getAllOnesValue(BitWidth);
2464 const APInt &RHS = CI->getValue();
2473 APInt lowBitsSet = APInt::getLowBitsSet(BitWidth, trailingOnes);
2481 APInt lowBitsSet = APInt::getLowBitsSet(BitWidth, trailingZeros);
2486 return APInt::getAllOnesValue(BitWidth);
2839 APInt Op0KnownZero(BitWidth, 0), Op0KnownOne(BitWidth, 0);
2840 APInt Op1KnownZero(BitWidth, 0), Op1KnownOne(BitWidth, 0);
2847 APInt::getAllOnesValue(BitWidth), Op1KnownZero,
2854 APInt Op0Min(BitWidth, 0), Op0Max(BitWidth, 0);
2855 APInt Op1Min(BitWidth, 0), Op1Max(BitWidth, 0);
2889 APInt Op0KnownZeroInverted = ~Op0KnownZero;
2903 APInt ValToCheck = Op0KnownZeroInverted;
2917 const APInt *CI;
2934 APInt Op0KnownZeroInverted = ~Op0KnownZero;
2948 APInt ValToCheck = Op0KnownZeroInverted;
2962 const APInt *CI;
3334 const APInt &AP1 = C1->getValue();
3335 const APInt &AP2 = C2->getValue();
3337 APInt AP1Abs = C1->getValue().abs();
3338 APInt AP2Abs = C2->getValue().abs();
3458 const APInt &AP = CI->getValue();
3460 APInt::getLowBitsSet(AP.getBitWidth(),
3607 APInt Pow2 = Cst1->getValue() + 1;
3627 APInt CmpVal = APInt::getOneBitSet(TypeBits, ShAmt);
3639 APInt AndVal = APInt::getLowBitsSet(TypeBits, TypeBits - ShAmt);
3660 APInt MaskV =
3661 APInt::getLowBitsSet(ASize, Op0->getType()->getPrimitiveSizeInBits());
3664 APInt CmpV = Cst1->getValue().zext(ASize);
3807 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true,
3819 UMax.convertFromAPInt(APInt::getMaxValue(IntWidth), false,
3832 SMin.convertFromAPInt(APInt::getSignedMinValue(IntWidth), true,
3843 SMin.convertFromAPInt(APInt::getMinValue(IntWidth), true,