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()
230 return Lower == Upper && Lower.isMaxValue(); in isFullSet()
236 return Lower == Upper && Lower.isMinValue(); in isEmptySet()
243 return Lower.ugt(Upper); in isWrappedSet()
264 return (Upper - Lower).zext(getBitWidth()+1); in getSetSize()
320 if (Lower == Upper) in contains()
324 return Lower.ule(V) && V.ult(Upper); in contains()
325 return Lower.ule(V) || V.ult(Upper); in contains()
340 return Lower.ule(Other.getLower()) && Other.getUpper().ule(Upper); in contains()
345 Lower.ule(Other.getLower()); in contains()
347 return Other.getUpper().ule(Upper) && Lower.ule(Other.getLower()); in contains()
355 if (Lower == Upper) in subtract()
357 return ConstantRange(Lower - Val, Upper - Val); in subtract()
383 if (Lower.ult(CR.Lower)) { in intersectWith()
384 if (Upper.ule(CR.Lower)) in intersectWith()
388 return ConstantRange(CR.Lower, Upper); in intersectWith()
395 if (Lower.ult(CR.Upper)) in intersectWith()
396 return ConstantRange(Lower, CR.Upper); in intersectWith()
402 if (CR.Lower.ult(Upper)) { in intersectWith()
406 if (CR.Upper.ule(Lower)) in intersectWith()
407 return ConstantRange(CR.Lower, Upper); in intersectWith()
413 if (CR.Lower.ult(Lower)) { in intersectWith()
414 if (CR.Upper.ule(Lower)) in intersectWith()
417 return ConstantRange(Lower, CR.Upper); in intersectWith()
423 if (CR.Lower.ult(Upper)) { in intersectWith()
429 if (CR.Lower.ult(Lower)) in intersectWith()
430 return ConstantRange(Lower, CR.Upper); in intersectWith()
434 if (CR.Upper.ule(Lower)) { in intersectWith()
435 if (CR.Lower.ult(Lower)) in intersectWith()
438 return ConstantRange(CR.Lower, Upper); in intersectWith()
462 if (CR.Upper.ult(Lower) || Upper.ult(CR.Lower)) { in unionWith()
464 APInt d1 = CR.Lower - Upper, d2 = Lower - CR.Upper; in unionWith()
466 return ConstantRange(Lower, CR.Upper); in unionWith()
467 return ConstantRange(CR.Lower, Upper); in unionWith()
470 APInt L = Lower, U = Upper; in unionWith()
471 if (CR.Lower.ult(L)) in unionWith()
472 L = CR.Lower; in unionWith()
485 if (CR.Upper.ule(Upper) || CR.Lower.uge(Lower)) in unionWith()
490 if (CR.Lower.ule(Upper) && Lower.ule(CR.Upper)) in unionWith()
496 if (Upper.ule(CR.Lower) && CR.Upper.ule(Lower)) { in unionWith()
497 APInt d1 = CR.Lower - Upper, d2 = Lower - CR.Upper; in unionWith()
499 return ConstantRange(Lower, CR.Upper); in unionWith()
500 return ConstantRange(CR.Lower, Upper); in unionWith()
505 if (Upper.ult(CR.Lower) && Lower.ult(CR.Upper)) in unionWith()
506 return ConstantRange(CR.Lower, Upper); in unionWith()
510 assert(CR.Lower.ult(Upper) && CR.Upper.ult(Lower) && in unionWith()
512 return ConstantRange(Lower, CR.Upper); in unionWith()
517 if (CR.Lower.ule(Upper) || Lower.ule(CR.Upper)) in unionWith()
520 APInt L = Lower, U = Upper; in unionWith()
523 if (CR.Lower.ult(L)) in unionWith()
524 L = CR.Lower; in unionWith()
542 LowerExt = Lower.zext(DstTySize); in zeroExtend()
546 return ConstantRange(Lower.zext(DstTySize), Upper.zext(DstTySize)); in zeroExtend()
561 return ConstantRange(Lower.sext(DstTySize), Upper.zext(DstTySize)); in signExtend()
568 return ConstantRange(Lower.sext(DstTySize), Upper.sext(DstTySize)); in signExtend()
586 APInt LowerDiv(Lower), UpperDiv(Upper); in truncate()
802 APInt Lower = getUnsignedMin().udiv(RHS.getUnsignedMax()); in udiv() local
818 if (Lower == Upper) in udiv()
821 return ConstantRange(Lower, Upper); in udiv()
885 return ConstantRange(Upper, Lower); in inverse()
896 OS << "[" << Lower << "," << Upper << ")"; in print()