Lines Matching defs:Max

87   APInt Max = getUnsignedMax();
90 APIntOps::GetMostSignificantDifferentBit(Min, Max)) {
800 APInt Max = APInt::getMaxValue(BW);
803 Max = Max.zext(ResultBitWidth);
805 return getNonEmpty(std::move(Min), std::move(Max) + 1);
1253 APInt Max = getSignedMax();
1259 Max.smul_ov(OtherMin, O3), Max.smul_ov(OtherMax, O4)};
1572 APInt Max = getUnsignedMax();
1578 unsigned EqualLeadingBits = (Min ^ Max).countl_zero();
1580 return getNonEmpty(Min << *RHS, (Max << *RHS) + 1);
1590 Max <<= Other.getUnsignedMin();
1592 return ConstantRange::getNonEmpty(std::move(Min), std::move(Max) + 1);
1596 if (OtherMax.ugt(Max.countl_zero()))
1602 Max <<= OtherMax;
1604 return ConstantRange::getNonEmpty(std::move(Min), std::move(Max) + 1);
1724 APInt Max = getSignedMax();
1729 Max.smul_sat(OtherMin), Max.smul_sat(OtherMax)};
1747 APInt Min = getSignedMin(), Max = getSignedMax();
1750 APInt NewU = Max.sshl_sat(Max.isNegative() ? ShAmtMin : ShAmtMax) + 1;
1919 APInt Max = Upper - 1;
1921 unsigned LCPLength = (Lower ^ Max).countl_zero();
1927 // If Max is {LCP, 111...}, the maximum is the popcount of LCP + (BitWidth -
1932 (Max.countr_one() < BitWidth - LCPLength ? 1 : 0);
1948 // Handle [Lower, 0) == [Lower, Max]
1961 APInt Min = getUnsignedMin(), Max = getUnsignedMax();
1967 if (Max.ugt(~OtherMax))
1977 APInt Min = getSignedMin(), Max = getSignedMax();
1988 if (Max.isNegative() && OtherMax.isNegative() &&
1989 Max.slt(SignedMin - OtherMax))
1992 if (Max.isNonNegative() && OtherMax.isNonNegative() &&
1993 Max.sgt(SignedMax - OtherMax))
2007 APInt Min = getUnsignedMin(), Max = getUnsignedMax();
2011 if (Max.ult(OtherMin))
2023 APInt Min = getSignedMin(), Max = getSignedMax();
2034 if (Max.isNegative() && OtherMin.isNonNegative() &&
2035 Max.slt(SignedMin + OtherMin))
2038 if (Max.isNonNegative() && OtherMin.isNegative() &&
2039 Max.sgt(SignedMax + OtherMin))
2053 APInt Min = getUnsignedMin(), Max = getUnsignedMax();
2061 (void) Max.umul_ov(OtherMax, Overflow);