Lines Matching refs:APInt
27 APInt PossibleSumZero = LHS.getMaxValue() + RHS.getMaxValue() + !CarryZero; in computeForAddCarry()
28 APInt PossibleSumOne = LHS.getMinValue() + RHS.getMinValue() + CarryOne; in computeForAddCarry()
31 APInt CarryKnownZero = ~(PossibleSumZero ^ LHS.Zero ^ RHS.Zero); in computeForAddCarry()
32 APInt CarryKnownOne = PossibleSumOne ^ LHS.One ^ RHS.One; in computeForAddCarry()
35 APInt LHSKnownUnion = LHS.Zero | LHS.One; in computeForAddCarry()
36 APInt RHSKnownUnion = RHS.Zero | RHS.One; in computeForAddCarry()
37 APInt CarryKnownUnion = std::move(CarryKnownZero) | CarryKnownOne; in computeForAddCarry()
38 APInt Known = std::move(LHSKnownUnion) & RHSKnownUnion & CarryKnownUnion; in computeForAddCarry()
117 KnownBits KnownBits::makeGE(const APInt &Val) const { in makeGE()
124 APInt MaskedVal(Val); in makeGE()
157 APInt Zero = Val.Zero; in smax()
158 APInt One = Val.One; in smax()
170 APInt Zero = Val.One; in smin()
171 APInt One = Val.Zero; in smin()
179 static unsigned getMaxShiftAmount(const APInt &MaxValue, unsigned BitWidth) { in getMaxShiftAmount()
223 APInt MaxValue = RHS.getMaxValue(); in shl()
294 APInt MaxValue = RHS.getMaxValue(); in lshr()
342 APInt MaxValue = RHS.getMaxValue(); in ashr()
447 KnownBits::makeConstant(APInt(getBitWidth(), 0)), Tmp); in abs()
574 APInt Mask = APInt::getHighBitsSet(BitWidth, LeadingKnown); in computeForSatAddSub()
593 APInt C; in computeForSatAddSub()
598 C = LHS.isNegative() ? APInt::getSignedMinValue(BitWidth) in computeForSatAddSub()
599 : APInt::getSignedMaxValue(BitWidth); in computeForSatAddSub()
602 C = APInt::getMaxValue(BitWidth); in computeForSatAddSub()
605 C = APInt::getMinValue(BitWidth); in computeForSatAddSub()
660 APInt UMaxLHS = LHS.getMaxValue(); in mul()
661 APInt UMaxRHS = RHS.getMaxValue(); in mul()
666 APInt UMaxResult = UMaxLHS.umul_ov(UMaxRHS, HasOverflow); in mul()
711 const APInt &Bottom0 = LHS.One; in mul()
712 const APInt &Bottom1 = RHS.One; in mul()
727 APInt BottomKnown = in mul()
816 std::optional<APInt> Res; in sdiv()
819 APInt Denom = RHS.getSignedMaxValue(); in sdiv()
820 APInt Num = LHS.getSignedMinValue(); in sdiv()
824 ? APInt::getSignedMaxValue(BitWidth) in sdiv()
829 APInt Denom = RHS.getSignedMinValue(); in sdiv()
830 APInt Num = LHS.getSignedMinValue(); in sdiv()
836 APInt Denom = RHS.getSignedMaxValue(); in sdiv()
837 APInt Num = LHS.getSignedMaxValue(); in sdiv()
874 APInt MinDenom = RHS.getMinValue(); in udiv()
875 APInt MaxNum = LHS.getMaxValue(); in udiv()
876 APInt MaxRes = MinDenom.isZero() ? MaxNum : MaxNum.udiv(MinDenom); in udiv()
892 APInt Mask = APInt::getLowBitsSet(BitWidth, RHSZeros); in remGetLowBits()
893 APInt OnesMask = LHS.One & Mask; in remGetLowBits()
894 APInt ZerosMask = LHS.Zero & Mask; in remGetLowBits()
906 APInt HighBits = ~(RHS.getConstant() - 1); in urem()
925 APInt LowBits = RHS.getConstant() - 1; in srem()
964 APInt Z = (Zero & RHS.Zero) | (One & RHS.One); in operator ^=()
973 KnownBits Known(Zero, APInt(BitWidth, 0)); in blsi()