Lines Matching refs:ConstantRange
437 ConstantRange Range(Lower->getValue(), Upper->getValue()); in computeKnownBitsFromRangeMetadata()
560 ConstantRange TrueValues = ConstantRange::makeExactICmpRegion(Pred, *C); in cmpExcludesZero()
570 ConstantRange TrueValues = ConstantRange::makeExactICmpRegion( in cmpExcludesZero()
710 ConstantRange LHSRange = ConstantRange::makeAllowedICmpRegion(Pred, *C); in computeKnownBitsFromCmp()
1008 ConstantRange llvm::getVScaleRange(const Function *F, unsigned BitWidth) { in getVScaleRange()
1012 return ConstantRange(APInt(BitWidth, 1), APInt::getZero(BitWidth)); in getVScaleRange()
1017 return ConstantRange::getEmpty(BitWidth); in getVScaleRange()
1022 return ConstantRange(Min, APInt::getZero(BitWidth)); in getVScaleRange()
1024 return ConstantRange(Min, APInt(BitWidth, *AttrMax) + 1); in getVScaleRange()
1577 auto CR = ConstantRange::makeExactICmpRegion(Pred, *RHSC); in computeKnownBitsFromOperator()
1613 if (std::optional<ConstantRange> Range = CB->getRange()) in computeKnownBitsFromOperator()
1840 const ConstantRange Range = getVScaleRange(II->getFunction(), BitWidth); in computeKnownBitsFromOperator()
2124 if (std::optional<ConstantRange> Range = A->getRange()) in computeKnownBits()
2142 if (std::optional<ConstantRange> CR = GV->getAbsoluteSymbolRange()) in computeKnownBits()
2559 ConstantRange Range(Lower->getValue(), Upper->getValue()); in rangeMetadataExcludesValue()
3079 if (std::optional<ConstantRange> Range = Call->getRange()) { in isKnownNonZeroFromOperator()
3266 if (std::optional<ConstantRange> Range = A->getRange()) { in isKnownNonZero()
5443 ConstantRange ExpRange = computeConstantRange( in computeKnownFPClass()
6942 static OverflowResult mapOverflowResult(ConstantRange::OverflowResult OR) { in mapOverflowResult()
6944 case ConstantRange::OverflowResult::MayOverflow: in mapOverflowResult()
6946 case ConstantRange::OverflowResult::AlwaysOverflowsLow: in mapOverflowResult()
6948 case ConstantRange::OverflowResult::AlwaysOverflowsHigh: in mapOverflowResult()
6950 case ConstantRange::OverflowResult::NeverOverflows: in mapOverflowResult()
6957 ConstantRange
6961 ConstantRange CR1 = in computeConstantRangeIncludingKnownBits()
6962 ConstantRange::fromKnownBits(V.getKnownBits(SQ), ForSigned); in computeConstantRangeIncludingKnownBits()
6963 ConstantRange CR2 = computeConstantRange(V, ForSigned, SQ.IIQ.UseInstrInfo); in computeConstantRangeIncludingKnownBits()
6964 ConstantRange::PreferredRangeType RangeType = in computeConstantRangeIncludingKnownBits()
6965 ForSigned ? ConstantRange::Signed : ConstantRange::Unsigned; in computeConstantRangeIncludingKnownBits()
6980 ConstantRange LHSRange = ConstantRange::fromKnownBits(LHSKnown, false); in computeOverflowForUnsignedMul()
6981 ConstantRange RHSRange = ConstantRange::fromKnownBits(RHSKnown, false); in computeOverflowForUnsignedMul()
7028 ConstantRange LHSRange = in computeOverflowForUnsignedAdd()
7030 ConstantRange RHSRange = in computeOverflowForUnsignedAdd()
7061 ConstantRange LHSRange = in computeOverflowForSignedAdd()
7063 ConstantRange RHSRange = in computeOverflowForSignedAdd()
7123 ConstantRange LHSRange = in computeOverflowForUnsignedSub()
7125 ConstantRange RHSRange = in computeOverflowForUnsignedSub()
7152 ConstantRange LHSRange = in computeOverflowForSignedSub()
7154 ConstantRange RHSRange = in computeOverflowForSignedSub()
8394 const auto CR1 = ConstantRange::makeExactICmpRegion(Pred1, *RHSC1); in isKnownInversion()
8395 const auto CR2 = ConstantRange::makeExactICmpRegion(Pred2, *RHSC2); in isKnownInversion()
9049 CmpInst::Predicate LPred, const ConstantRange &LCR, in isImpliedCondCommonOperandWithCR()
9050 CmpInst::Predicate RPred, const ConstantRange &RCR) { in isImpliedCondCommonOperandWithCR()
9051 ConstantRange DomCR = ConstantRange::makeAllowedICmpRegion(LPred, LCR); in isImpliedCondCommonOperandWithCR()
9106 ConstantRange LCR = computeConstantRange( in isImpliedCondICmps()
9109 ConstantRange RCR = computeConstantRange( in isImpliedCondICmps()
9512 static ConstantRange getRangeForIntrinsic(const IntrinsicInst &II) { in getRangeForIntrinsic()
9520 return ConstantRange::getNonEmpty(APInt::getZero(Width), in getRangeForIntrinsic()
9526 return ConstantRange::getNonEmpty(*C, APInt::getZero(Width)); in getRangeForIntrinsic()
9533 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width), in getRangeForIntrinsic()
9538 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width) + *C, in getRangeForIntrinsic()
9545 return ConstantRange::getNonEmpty(APInt::getZero(Width), *C + 1); in getRangeForIntrinsic()
9549 return ConstantRange::getNonEmpty(APInt::getZero(Width), in getRangeForIntrinsic()
9556 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width), in getRangeForIntrinsic()
9561 return ConstantRange::getNonEmpty(*C - APInt::getSignedMaxValue(Width), in getRangeForIntrinsic()
9566 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width) - *C, in getRangeForIntrinsic()
9570 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width), in getRangeForIntrinsic()
9585 return ConstantRange::getNonEmpty(APInt::getZero(Width), *C + 1); in getRangeForIntrinsic()
9587 return ConstantRange::getNonEmpty(*C, APInt::getZero(Width)); in getRangeForIntrinsic()
9589 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(Width), in getRangeForIntrinsic()
9592 return ConstantRange::getNonEmpty(*C, in getRangeForIntrinsic()
9602 return ConstantRange::getNonEmpty(APInt::getZero(Width), in getRangeForIntrinsic()
9605 return ConstantRange::getNonEmpty(APInt::getZero(Width), in getRangeForIntrinsic()
9613 return ConstantRange::getNonEmpty(APInt::getAllOnes(Width), in getRangeForIntrinsic()
9619 return ConstantRange::getFull(Width); in getRangeForIntrinsic()
9622 static ConstantRange getRangeForSelectPattern(const SelectInst &SI, in getRangeForSelectPattern()
9628 return ConstantRange::getFull(BitWidth); in getRangeForSelectPattern()
9636 return ConstantRange::getNonEmpty(APInt::getZero(BitWidth), in getRangeForSelectPattern()
9639 return ConstantRange::getNonEmpty(APInt::getZero(BitWidth), in getRangeForSelectPattern()
9645 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(BitWidth), in getRangeForSelectPattern()
9651 return ConstantRange::getFull(BitWidth); in getRangeForSelectPattern()
9655 return ConstantRange::getNonEmpty(APInt::getZero(BitWidth), *C + 1); in getRangeForSelectPattern()
9657 return ConstantRange::getNonEmpty(*C, APInt::getZero(BitWidth)); in getRangeForSelectPattern()
9659 return ConstantRange::getNonEmpty(APInt::getSignedMinValue(BitWidth), in getRangeForSelectPattern()
9662 return ConstantRange::getNonEmpty(*C, in getRangeForSelectPattern()
9665 return ConstantRange::getFull(BitWidth); in getRangeForSelectPattern()
9686 ConstantRange llvm::computeConstantRange(const Value *V, bool ForSigned, in computeConstantRange()
9694 return ConstantRange::getFull(V->getType()->getScalarSizeInBits()); in computeConstantRange()
9701 ConstantRange CR = ConstantRange::getFull(BitWidth); in computeConstantRange()
9707 CR = ConstantRange::getNonEmpty(Lower, Upper); in computeConstantRange()
9711 ConstantRange CRTrue = computeConstantRange( in computeConstantRange()
9713 ConstantRange CRFalse = computeConstantRange( in computeConstantRange()
9722 CR = ConstantRange::getNonEmpty(Lower, Upper); in computeConstantRange()
9724 if (std::optional<ConstantRange> Range = A->getRange()) in computeConstantRange()
9732 if (std::optional<ConstantRange> Range = CB->getRange()) in computeConstantRange()
9755 ConstantRange RHS = in computeConstantRange()
9759 ConstantRange::makeAllowedICmpRegion(Cmp->getPredicate(), RHS)); in computeConstantRange()