Lines Matching refs:ConstantRange

430     ConstantRange Range(Lower->getValue(), Upper->getValue());  in computeKnownBitsFromRangeMetadata()
553 ConstantRange TrueValues = ConstantRange::makeExactICmpRegion(Pred, *C); in cmpExcludesZero()
563 ConstantRange TrueValues = ConstantRange::makeExactICmpRegion( in cmpExcludesZero()
700 ConstantRange LHSRange = ConstantRange::makeAllowedICmpRegion(Pred, *C); in computeKnownBitsFromCmp()
915 ConstantRange llvm::getVScaleRange(const Function *F, unsigned BitWidth) { in getVScaleRange()
919 return ConstantRange(APInt(BitWidth, 1), APInt::getZero(BitWidth)); in getVScaleRange()
924 return ConstantRange::getEmpty(BitWidth); in getVScaleRange()
929 return ConstantRange(Min, APInt::getZero(BitWidth)); in getVScaleRange()
931 return ConstantRange(Min, APInt(BitWidth, *AttrMax) + 1); in getVScaleRange()
1401 auto CR = ConstantRange::makeExactICmpRegion(Pred, *RHSC); in computeKnownBitsFromOperator()
1852 if (std::optional<ConstantRange> CR = GV->getAbsoluteSymbolRange()) in computeKnownBits()
2263 ConstantRange Range(Lower->getValue(), Upper->getValue()); in rangeMetadataExcludesValue()
4831 ConstantRange ExpRange = computeConstantRange( in computeKnownFPClass()
6271 static OverflowResult mapOverflowResult(ConstantRange::OverflowResult OR) { in mapOverflowResult()
6273 case ConstantRange::OverflowResult::MayOverflow: in mapOverflowResult()
6275 case ConstantRange::OverflowResult::AlwaysOverflowsLow: in mapOverflowResult()
6277 case ConstantRange::OverflowResult::AlwaysOverflowsHigh: in mapOverflowResult()
6279 case ConstantRange::OverflowResult::NeverOverflows: in mapOverflowResult()
6286 ConstantRange
6290 ConstantRange CR1 = in computeConstantRangeIncludingKnownBits()
6291 ConstantRange::fromKnownBits(V.getKnownBits(SQ), ForSigned); in computeConstantRangeIncludingKnownBits()
6292 ConstantRange CR2 = computeConstantRange(V, ForSigned, SQ.IIQ.UseInstrInfo); in computeConstantRangeIncludingKnownBits()
6293 ConstantRange::PreferredRangeType RangeType = in computeConstantRangeIncludingKnownBits()
6294 ForSigned ? ConstantRange::Signed : ConstantRange::Unsigned; in computeConstantRangeIncludingKnownBits()
6303 ConstantRange LHSRange = ConstantRange::fromKnownBits(LHSKnown, false); in computeOverflowForUnsignedMul()
6304 ConstantRange RHSRange = ConstantRange::fromKnownBits(RHSKnown, false); in computeOverflowForUnsignedMul()
6351 ConstantRange LHSRange = in computeOverflowForUnsignedAdd()
6353 ConstantRange RHSRange = in computeOverflowForUnsignedAdd()
6384 ConstantRange LHSRange = in computeOverflowForSignedAdd()
6386 ConstantRange RHSRange = in computeOverflowForSignedAdd()
6446 ConstantRange LHSRange = in computeOverflowForUnsignedSub()
6448 ConstantRange RHSRange = in computeOverflowForUnsignedSub()
6475 ConstantRange LHSRange = in computeOverflowForSignedSub()
6477 ConstantRange RHSRange = in computeOverflowForSignedSub()
8291 ConstantRange DomCR = ConstantRange::makeExactICmpRegion(LPred, LC); in isImpliedCondCommonOperandWithConstants()
8292 ConstantRange CR = ConstantRange::makeExactICmpRegion(RPred, RC); in isImpliedCondCommonOperandWithConstants()
8293 ConstantRange Intersection = DomCR.intersectWith(CR); in isImpliedCondCommonOperandWithConstants()
8294 ConstantRange Difference = DomCR.difference(CR); in isImpliedCondCommonOperandWithConstants()
8705 static ConstantRange getRangeForIntrinsic(const IntrinsicInst &II) { in getRangeForIntrinsic()
8713 return ConstantRange::getNonEmpty(APInt::getZero(Width), in getRangeForIntrinsic()
8719 return ConstantRange::getNonEmpty(*C, APInt::getZero(Width)); in getRangeForIntrinsic()
8726 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width), in getRangeForIntrinsic()
8731 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width) + *C, in getRangeForIntrinsic()
8738 return ConstantRange::getNonEmpty(APInt::getZero(Width), *C + 1); in getRangeForIntrinsic()
8742 return ConstantRange::getNonEmpty(APInt::getZero(Width), in getRangeForIntrinsic()
8749 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width), in getRangeForIntrinsic()
8754 return ConstantRange::getNonEmpty(*C - APInt::getSignedMaxValue(Width), in getRangeForIntrinsic()
8759 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width) - *C, in getRangeForIntrinsic()
8763 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width), in getRangeForIntrinsic()
8778 return ConstantRange::getNonEmpty(APInt::getZero(Width), *C + 1); in getRangeForIntrinsic()
8780 return ConstantRange::getNonEmpty(*C, APInt::getZero(Width)); in getRangeForIntrinsic()
8782 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width), in getRangeForIntrinsic()
8785 return ConstantRange::getNonEmpty(*C, in getRangeForIntrinsic()
8795 return ConstantRange::getNonEmpty(APInt::getZero(Width), in getRangeForIntrinsic()
8798 return ConstantRange::getNonEmpty(APInt::getZero(Width), in getRangeForIntrinsic()
8808 return ConstantRange::getFull(Width); in getRangeForIntrinsic()
8811 static ConstantRange getRangeForSelectPattern(const SelectInst &SI, in getRangeForSelectPattern()
8817 return ConstantRange::getFull(BitWidth); in getRangeForSelectPattern()
8825 return ConstantRange::getNonEmpty(APInt::getZero(BitWidth), in getRangeForSelectPattern()
8828 return ConstantRange::getNonEmpty(APInt::getZero(BitWidth), in getRangeForSelectPattern()
8834 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(BitWidth), in getRangeForSelectPattern()
8840 return ConstantRange::getFull(BitWidth); in getRangeForSelectPattern()
8844 return ConstantRange::getNonEmpty(APInt::getZero(BitWidth), *C + 1); in getRangeForSelectPattern()
8846 return ConstantRange::getNonEmpty(*C, APInt::getZero(BitWidth)); in getRangeForSelectPattern()
8848 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(BitWidth), in getRangeForSelectPattern()
8851 return ConstantRange::getNonEmpty(*C, in getRangeForSelectPattern()
8854 return ConstantRange::getFull(BitWidth); in getRangeForSelectPattern()
8875 ConstantRange llvm::computeConstantRange(const Value *V, bool ForSigned, in computeConstantRange()
8883 return ConstantRange::getFull(V->getType()->getScalarSizeInBits()); in computeConstantRange()
8887 return ConstantRange(*C); in computeConstantRange()
8891 ConstantRange CR = ConstantRange::getEmpty(BitWidth); in computeConstantRange()
8899 ConstantRange CR = ConstantRange::getFull(BitWidth); in computeConstantRange()
8905 CR = ConstantRange::getNonEmpty(Lower, Upper); in computeConstantRange()
8909 ConstantRange CRTrue = computeConstantRange( in computeConstantRange()
8911 ConstantRange CRFalse = computeConstantRange( in computeConstantRange()
8920 CR = ConstantRange::getNonEmpty(Lower, Upper); in computeConstantRange()
8946 ConstantRange RHS = in computeConstantRange()
8950 ConstantRange::makeAllowedICmpRegion(Cmp->getPredicate(), RHS)); in computeConstantRange()