reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/IR/ConstantRange.cpp
  555   assert(getBitWidth() == CR.getBitWidth() &&
  558   if (   isFullSet() || CR.isEmptySet()) return *this;
  559   if (CR.isFullSet() ||    isEmptySet()) return CR;
  559   if (CR.isFullSet() ||    isEmptySet()) return CR;
  561   if (!isUpperWrapped() && CR.isUpperWrapped())
  562     return CR.unionWith(*this, Type);
  564   if (!isUpperWrapped() && !CR.isUpperWrapped()) {
  570     if (CR.Upper.ult(Lower) || Upper.ult(CR.Lower))
  570     if (CR.Upper.ult(Lower) || Upper.ult(CR.Lower))
  572           ConstantRange(Lower, CR.Upper), ConstantRange(CR.Lower, Upper), Type);
  572           ConstantRange(Lower, CR.Upper), ConstantRange(CR.Lower, Upper), Type);
  574     APInt L = CR.Lower.ult(Lower) ? CR.Lower : Lower;
  574     APInt L = CR.Lower.ult(Lower) ? CR.Lower : Lower;
  575     APInt U = (CR.Upper - 1).ugt(Upper - 1) ? CR.Upper : Upper;
  575     APInt U = (CR.Upper - 1).ugt(Upper - 1) ? CR.Upper : Upper;
  583   if (!CR.isUpperWrapped()) {
  586     if (CR.Upper.ule(Upper) || CR.Lower.uge(Lower))
  586     if (CR.Upper.ule(Upper) || CR.Lower.uge(Lower))
  591     if (CR.Lower.ule(Upper) && Lower.ule(CR.Upper))
  591     if (CR.Lower.ule(Upper) && Lower.ule(CR.Upper))
  599     if (Upper.ult(CR.Lower) && CR.Upper.ult(Lower))
  599     if (Upper.ult(CR.Lower) && CR.Upper.ult(Lower))
  601           ConstantRange(Lower, CR.Upper), ConstantRange(CR.Lower, Upper), Type);
  601           ConstantRange(Lower, CR.Upper), ConstantRange(CR.Lower, Upper), Type);
  605     if (Upper.ult(CR.Lower) && Lower.ule(CR.Upper))
  605     if (Upper.ult(CR.Lower) && Lower.ule(CR.Upper))
  606       return ConstantRange(CR.Lower, Upper);
  610     assert(CR.Lower.ule(Upper) && CR.Upper.ult(Lower) &&
  610     assert(CR.Lower.ule(Upper) && CR.Upper.ult(Lower) &&
  612     return ConstantRange(Lower, CR.Upper);
  617   if (CR.Lower.ule(Upper) || Lower.ule(CR.Upper))
  617   if (CR.Lower.ule(Upper) || Lower.ule(CR.Upper))
  620   APInt L = CR.Lower.ult(Lower) ? CR.Lower : Lower;
  620   APInt L = CR.Lower.ult(Lower) ? CR.Lower : Lower;
  621   APInt U = CR.Upper.ugt(Upper) ? CR.Upper : Upper;
  621   APInt U = CR.Upper.ugt(Upper) ? CR.Upper : Upper;