Lines Matching refs:Lower
36 Lower = Upper = APInt::getMaxValue(BitWidth); in ConstantRange()
38 Lower = Upper = APInt::getMinValue(BitWidth); in ConstantRange()
44 : Lower(std::move(V)), Upper(Lower + 1) {} in ConstantRange()
47 : Lower(std::move(L)), Upper(std::move(U)) { in ConstantRange()
48 assert(Lower.getBitWidth() == Upper.getBitWidth() && in ConstantRange()
50 assert((Lower != Upper || (Lower.isMaxValue() || Lower.isMinValue())) && in ConstantRange()
184 return Lower == Upper && Lower.isMaxValue(); in isFullSet()
190 return Lower == Upper && Lower.isMinValue(); in isEmptySet()
197 return Lower.ugt(Upper); in isWrappedSet()
218 return (Upper - Lower).zext(getBitWidth()+1); in getSetSize()
274 if (Lower == Upper) in contains()
278 return Lower.ule(V) && V.ult(Upper); in contains()
279 return Lower.ule(V) || V.ult(Upper); in contains()
294 return Lower.ule(Other.getLower()) && Other.getUpper().ule(Upper); in contains()
299 Lower.ule(Other.getLower()); in contains()
301 return Other.getUpper().ule(Upper) && Lower.ule(Other.getLower()); in contains()
309 if (Lower == Upper) in subtract()
311 return ConstantRange(Lower - Val, Upper - Val); in subtract()
337 if (Lower.ult(CR.Lower)) { in intersectWith()
338 if (Upper.ule(CR.Lower)) in intersectWith()
342 return ConstantRange(CR.Lower, Upper); in intersectWith()
349 if (Lower.ult(CR.Upper)) in intersectWith()
350 return ConstantRange(Lower, CR.Upper); in intersectWith()
356 if (CR.Lower.ult(Upper)) { in intersectWith()
360 if (CR.Upper.ule(Lower)) in intersectWith()
361 return ConstantRange(CR.Lower, Upper); in intersectWith()
367 if (CR.Lower.ult(Lower)) { in intersectWith()
368 if (CR.Upper.ule(Lower)) in intersectWith()
371 return ConstantRange(Lower, CR.Upper); in intersectWith()
377 if (CR.Lower.ult(Upper)) { in intersectWith()
383 if (CR.Lower.ult(Lower)) in intersectWith()
384 return ConstantRange(Lower, CR.Upper); in intersectWith()
388 if (CR.Upper.ule(Lower)) { in intersectWith()
389 if (CR.Lower.ult(Lower)) in intersectWith()
392 return ConstantRange(CR.Lower, Upper); in intersectWith()
416 if (CR.Upper.ult(Lower) || Upper.ult(CR.Lower)) { in unionWith()
418 APInt d1 = CR.Lower - Upper, d2 = Lower - CR.Upper; in unionWith()
420 return ConstantRange(Lower, CR.Upper); in unionWith()
421 return ConstantRange(CR.Lower, Upper); in unionWith()
424 APInt L = Lower, U = Upper; in unionWith()
425 if (CR.Lower.ult(L)) in unionWith()
426 L = CR.Lower; in unionWith()
439 if (CR.Upper.ule(Upper) || CR.Lower.uge(Lower)) in unionWith()
444 if (CR.Lower.ule(Upper) && Lower.ule(CR.Upper)) in unionWith()
450 if (Upper.ule(CR.Lower) && CR.Upper.ule(Lower)) { in unionWith()
451 APInt d1 = CR.Lower - Upper, d2 = Lower - CR.Upper; in unionWith()
453 return ConstantRange(Lower, CR.Upper); in unionWith()
454 return ConstantRange(CR.Lower, Upper); in unionWith()
459 if (Upper.ult(CR.Lower) && Lower.ult(CR.Upper)) in unionWith()
460 return ConstantRange(CR.Lower, Upper); in unionWith()
464 assert(CR.Lower.ult(Upper) && CR.Upper.ult(Lower) && in unionWith()
466 return ConstantRange(Lower, CR.Upper); in unionWith()
471 if (CR.Lower.ule(Upper) || Lower.ule(CR.Upper)) in unionWith()
474 APInt L = Lower, U = Upper; in unionWith()
477 if (CR.Lower.ult(L)) in unionWith()
478 L = CR.Lower; in unionWith()
496 LowerExt = Lower.zext(DstTySize); in zeroExtend()
500 return ConstantRange(Lower.zext(DstTySize), Upper.zext(DstTySize)); in zeroExtend()
515 return ConstantRange(Lower.sext(DstTySize), Upper.zext(DstTySize)); in signExtend()
522 return ConstantRange(Lower.sext(DstTySize), Upper.sext(DstTySize)); in signExtend()
540 APInt LowerDiv(Lower), UpperDiv(Upper); in truncate()
723 APInt Lower = getUnsignedMin().udiv(RHS.getUnsignedMax()); in udiv() local
739 if (Lower == Upper) in udiv()
742 return ConstantRange(Lower, Upper); in udiv()
806 return ConstantRange(Upper, Lower); in inverse()
817 OS << "[" << Lower << "," << Upper << ")"; in print()