Lines Matching defs:Max

88   APInt Max = getUnsignedMax();
91 APIntOps::GetMostSignificantDifferentBit(Min, Max)) {
801 APInt Max = APInt::getMaxValue(BW);
804 Max = Max.zext(ResultBitWidth);
806 return getNonEmpty(std::move(Min), std::move(Max) + 1);
1267 APInt Max = getSignedMax();
1273 Max.smul_ov(OtherMin, O3), Max.smul_ov(OtherMax, O4)};
1650 APInt Max = getUnsignedMax();
1656 unsigned EqualLeadingBits = (Min ^ Max).countl_zero();
1658 return getNonEmpty(Min << *RHS, (Max << *RHS) + 1);
1668 Max <<= Other.getUnsignedMin();
1670 return ConstantRange::getNonEmpty(std::move(Min), std::move(Max) + 1);
1674 if (OtherMax.ugt(Max.countl_zero()))
1680 Max <<= OtherMax;
1682 return ConstantRange::getNonEmpty(std::move(Min), std::move(Max) + 1);
1905 APInt Max = getSignedMax();
1910 Max.smul_sat(OtherMin), Max.smul_sat(OtherMax)};
1928 APInt Min = getSignedMin(), Max = getSignedMax();
1931 APInt NewU = Max.sshl_sat(Max.isNegative() ? ShAmtMin : ShAmtMax) + 1;
2100 APInt Max = Upper - 1;
2102 unsigned LCPLength = (Lower ^ Max).countl_zero();
2108 // If Max is {LCP, 111...}, the maximum is the popcount of LCP + (BitWidth -
2113 (Max.countr_one() < BitWidth - LCPLength ? 1 : 0);
2129 // Handle [Lower, 0) == [Lower, Max]
2142 APInt Min = getUnsignedMin(), Max = getUnsignedMax();
2148 if (Max.ugt(~OtherMax))
2158 APInt Min = getSignedMin(), Max = getSignedMax();
2169 if (Max.isNegative() && OtherMax.isNegative() &&
2170 Max.slt(SignedMin - OtherMax))
2173 if (Max.isNonNegative() && OtherMax.isNonNegative() &&
2174 Max.sgt(SignedMax - OtherMax))
2188 APInt Min = getUnsignedMin(), Max = getUnsignedMax();
2192 if (Max.ult(OtherMin))
2204 APInt Min = getSignedMin(), Max = getSignedMax();
2215 if (Max.isNegative() && OtherMin.isNonNegative() &&
2216 Max.slt(SignedMin + OtherMin))
2219 if (Max.isNonNegative() && OtherMin.isNegative() &&
2220 Max.sgt(SignedMax + OtherMin))
2234 APInt Min = getUnsignedMin(), Max = getUnsignedMax();
2242 (void) Max.umul_ov(OtherMax, Overflow);