Home
last modified time | relevance | path

Searched refs:ConstantRange (Results 1 – 25 of 38) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstantRange.h47 class LLVM_NODISCARD ConstantRange {
51 ConstantRange getEmpty() const { in getEmpty()
52 return ConstantRange(getBitWidth(), false); in getEmpty()
56 ConstantRange getFull() const { in getFull()
57 return ConstantRange(getBitWidth(), true); in getFull()
62 explicit ConstantRange(uint32_t BitWidth, bool isFullSet);
65 ConstantRange(APInt Value);
70 ConstantRange(APInt Lower, APInt Upper);
73 static ConstantRange getEmpty(uint32_t BitWidth) { in getEmpty()
74 return ConstantRange(BitWidth, false); in getEmpty()
[all …]
DGlobalValue.h35 class ConstantRange; variable
565 Optional<ConstantRange> getAbsoluteSymbolRange() const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantRange.cpp42 ConstantRange::ConstantRange(uint32_t BitWidth, bool Full) in ConstantRange() function in ConstantRange
46 ConstantRange::ConstantRange(APInt V) in ConstantRange() function in ConstantRange
49 ConstantRange::ConstantRange(APInt L, APInt U) in ConstantRange() function in ConstantRange
57 ConstantRange ConstantRange::fromKnownBits(const KnownBits &Known, in fromKnownBits()
67 return ConstantRange(Known.getMinValue(), Known.getMaxValue() + 1); in fromKnownBits()
74 return ConstantRange(Lower, Upper + 1); in fromKnownBits()
77 ConstantRange ConstantRange::makeAllowedICmpRegion(CmpInst::Predicate Pred, in makeAllowedICmpRegion()
78 const ConstantRange &CR) { in makeAllowedICmpRegion()
90 return ConstantRange(CR.getUpper(), CR.getLower()); in makeAllowedICmpRegion()
96 return ConstantRange(APInt::getMinValue(W), std::move(UMax)); in makeAllowedICmpRegion()
[all …]
DMetadata.cpp942 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) { in isContiguous()
946 static bool canBeMerged(const ConstantRange &A, const ConstantRange &B) { in canBeMerged()
952 ConstantRange NewRange(Low->getValue(), High->getValue()); in tryMergeRange()
956 ConstantRange LastRange(LB, LE); in tryMergeRange()
958 ConstantRange Union = LastRange.unionWith(NewRange); in tryMergeRange()
1039 ConstantRange Range(EndPoints[0]->getValue(), EndPoints[1]->getValue()); in getMostGenericRange()
DCMakeLists.txt13 ConstantRange.cpp
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DValueLattice.h58 ConstantRange Range;
75 Range.~ConstantRange(); in ~ValueLatticeElement()
92 Range.~ConstantRange();
103 new (&Range) ConstantRange(Other.Range);
131 static ValueLatticeElement getRange(ConstantRange CR) { in getRange()
158 const ConstantRange &getConstantRange() const { in getConstantRange()
180 Range.~ConstantRange(); in markOverdefined()
187 markConstantRange(ConstantRange(CI->getValue())); in markConstant()
203 markConstantRange(ConstantRange(CI->getValue() + 1, CI->getValue())); in markNotConstant()
218 void markConstantRange(ConstantRange NewR) { in markConstantRange()
[all …]
DLazyValueInfo.h23 class ConstantRange; variable
88 ConstantRange getConstantRange(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
98 ConstantRange getConstantRangeOnEdge(Value *V, BasicBlock *FromBB,
DScalarEvolution.h817 ConstantRange getUnsignedRange(const SCEV *S) {
833 ConstantRange getSignedRange(const SCEV *S) {
1421 DenseMap<const SCEV *, ConstantRange> UnsignedRanges;
1424 DenseMap<const SCEV *, ConstantRange> SignedRanges;
1430 const ConstantRange &setRange(const SCEV *S, RangeSignHint Hint,
1431 ConstantRange CR) {
1432 DenseMap<const SCEV *, ConstantRange> &Cache =
1444 const ConstantRange &getRangeRef(const SCEV *S, RangeSignHint Hint);
1448 ConstantRange getRangeForAffineAR(const SCEV *Start, const SCEV *Stop,
1454 ConstantRange getRangeViaFactoring(const SCEV *Start, const SCEV *Stop,
DScalarEvolutionExpressions.h34 class ConstantRange; variable
354 const SCEV *getNumIterationsInRange(const ConstantRange &Range,
DValueTracking.h509 ConstantRange computeConstantRange(const Value *V, bool UseInstrInfo = true);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DFloat2Int.h35 void seen(Instruction *I, ConstantRange R);
36 ConstantRange badRange();
37 ConstantRange unknownRange();
38 ConstantRange validateRange(ConstantRange R);
45 MapVector<Instruction *, ConstantRange> SeenInsts;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DStackSafetyAnalysis.cpp68 ConstantRange Offset;
69 PassAsArgInfo(const GlobalValue *Callee, size_t ParamNo, ConstantRange Offset) in PassAsArgInfo()
84 ConstantRange Range;
91 void updateRange(ConstantRange R) { Range = Range.unionWith(R); } in updateRange()
198 US.Calls.emplace_back(Aliasee, ArgNo, ConstantRange(APInt(PointerSize, 0))); in FunctionInfo()
210 const ConstantRange UnknownRange;
212 ConstantRange offsetFromAlloca(Value *Addr, const Value *AllocaPtr);
213 ConstantRange getAccessRange(Value *Addr, const Value *AllocaPtr,
215 ConstantRange getMemIntrinsicAccessRange(const MemIntrinsic *MI, const Use &U,
220 ConstantRange getRange(uint64_t Lower, uint64_t Upper) const { in getRange()
[all …]
DLazyValueInfo.cpp123 ConstantRange Range = in intersect()
427 Optional<ConstantRange> getRangeForOperand(unsigned Op, Instruction *I,
431 std::function<ConstantRange(const ConstantRange &,
432 const ConstantRange &)> OpFn);
891 const ConstantRange &TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect()
892 const ConstantRange &FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect()
900 ConstantRange ResultCR = [&]() { in solveBlockValueSelect()
930 ConstantRange Zero(APInt::getNullValue(TrueCR.getBitWidth())); in solveBlockValueSelect()
1000 Optional<ConstantRange> LazyValueInfoImpl::getRangeForOperand(unsigned Op, in getRangeForOperand()
1009 ConstantRange Range = ConstantRange::getFull(OperandBitWidth); in getRangeForOperand()
[all …]
DValueTracking.cpp454 ConstantRange Range(Lower->getValue(), Upper->getValue()); in computeKnownBitsFromRangeMetadata()
612 ConstantRange RHSRange(CI->getValue()); in isKnownNonZeroFromAssume()
613 ConstantRange TrueValues = in isKnownNonZeroFromAssume()
614 ConstantRange::makeAllowedICmpRegion(Pred, RHSRange); in isKnownNonZeroFromAssume()
2083 ConstantRange Range(Lower->getValue(), Upper->getValue()); in rangeMetadataExcludesValue()
4146 static OverflowResult mapOverflowResult(ConstantRange::OverflowResult OR) { in mapOverflowResult()
4148 case ConstantRange::OverflowResult::MayOverflow: in mapOverflowResult()
4150 case ConstantRange::OverflowResult::AlwaysOverflowsLow: in mapOverflowResult()
4152 case ConstantRange::OverflowResult::AlwaysOverflowsHigh: in mapOverflowResult()
4154 case ConstantRange::OverflowResult::NeverOverflows: in mapOverflowResult()
[all …]
DScalarEvolution.cpp1682 ConstantRange CR = getUnsignedRange(X); in getZeroExtendExpr()
1993 ConstantRange CR = getSignedRange(X); in getSignExtendExpr()
2390 auto NSWRegion = ConstantRange::makeGuaranteedNoWrapRegion( in StrengthenNoWrapFlags()
2398 auto NUWRegion = ConstantRange::makeGuaranteedNoWrapRegion( in StrengthenNoWrapFlags()
4450 ConstantRange AddRecRange = getSignedRange(AR); in proveNoWrapViaConstantRanges()
4451 ConstantRange IncRange = getSignedRange(AR->getStepRecurrence(*this)); in proveNoWrapViaConstantRanges()
4453 auto NSWRegion = ConstantRange::makeGuaranteedNoWrapRegion( in proveNoWrapViaConstantRanges()
4460 ConstantRange AddRecRange = getUnsignedRange(AR); in proveNoWrapViaConstantRanges()
4461 ConstantRange IncRange = getUnsignedRange(AR->getStepRecurrence(*this)); in proveNoWrapViaConstantRanges()
4463 auto NUWRegion = ConstantRange::makeGuaranteedNoWrapRegion( in proveNoWrapViaConstantRanges()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DFloat2Int.cpp151 void Float2IntPass::seen(Instruction *I, ConstantRange R) { in seen()
161 ConstantRange Float2IntPass::badRange() { in badRange()
162 return ConstantRange::getFull(MaxIntegerBW + 1); in badRange()
164 ConstantRange Float2IntPass::unknownRange() { in unknownRange()
165 return ConstantRange::getEmpty(MaxIntegerBW + 1); in unknownRange()
167 ConstantRange Float2IntPass::validateRange(ConstantRange R) { in validateRange()
209 auto Input = ConstantRange::getFull(BW); in walkBackwards()
248 std::function<ConstantRange(ArrayRef<ConstantRange>)> Op; in walkForwards()
257 Op = [](ArrayRef<ConstantRange> Ops) { in walkForwards()
260 auto Zero = ConstantRange(APInt::getNullValue(Size)); in walkForwards()
[all …]
DCorrelatedValuePropagation.cpp436 ConstantRange LRange = LVI->getConstantRange( in willNotOverflow()
438 ConstantRange RRange = LVI->getConstantRange( in willNotOverflow()
440 ConstantRange NWRegion = ConstantRange::makeGuaranteedNoWrapRegion( in willNotOverflow()
629 ConstantRange OperandRange(OrigWidth, /*isFullSet=*/false); in processUDivOrURem()
761 ConstantRange LRange = LVI->getConstantRange(LHS, BB, BinOp); in processBinOp()
762 ConstantRange RRange = LVI->getConstantRange(RHS, BB, BinOp); in processBinOp()
767 ConstantRange NUWRange = ConstantRange::makeGuaranteedNoWrapRegion( in processBinOp()
773 ConstantRange NSWRange = ConstantRange::makeGuaranteedNoWrapRegion( in processBinOp()
796 ConstantRange LRange = LVI->getConstantRange(LHS, BB, BinOp); in processAnd()
DGuardWidening.cpp513 ConstantRange CR0 = in widenCondCommon()
514 ConstantRange::makeExactICmpRegion(Pred0, RHS0->getValue()); in widenCondCommon()
515 ConstantRange CR1 = in widenCondCommon()
516 ConstantRange::makeExactICmpRegion(Pred1, RHS1->getValue()); in widenCondCommon()
DIndVarSimplify.cpp1004 DenseMap<DefUserPair, ConstantRange> PostIncRangeInfos;
1006 Optional<ConstantRange> getPostIncRangeInfo(Value *Def, in getPostIncRangeInfo()
1011 ? Optional<ConstantRange>(None) in getPostIncRangeInfo()
1012 : Optional<ConstantRange>(It->second); in getPostIncRangeInfo()
1018 void updatePostIncRangeInfo(Value *Def, Instruction *UseI, ConstantRange R) { in updatePostIncRangeInfo()
1845 ConstantRange::makeAllowedICmpRegion(P, CmpRHSRange); in calculatePostIncRange()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/
DAttributor.h1514 ConstantRange Assumed;
1517 ConstantRange Known;
1520 : BitWidth(BitWidth), Assumed(ConstantRange::getEmpty(BitWidth)),
1521 Known(ConstantRange::getFull(BitWidth)) {}
1524 static ConstantRange getWorstState(uint32_t BitWidth) {
1525 return ConstantRange::getFull(BitWidth);
1529 static ConstantRange getBestState(uint32_t BitWidth) {
1530 return ConstantRange::getEmpty(BitWidth);
1557 ConstantRange getKnown() const { return Known; }
1560 ConstantRange getAssumed() const { return Assumed; }
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSafeStack.cpp237 ConstantRange AccessStartRange = SE.getUnsignedRange(Expr); in IsAccessSafe()
238 ConstantRange SizeRange = in IsAccessSafe()
239 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, AccessSize)); in IsAccessSafe()
240 ConstantRange AccessRange = AccessStartRange.add(SizeRange); in IsAccessSafe()
241 ConstantRange AllocaRange = in IsAccessSafe()
242 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, AllocaSize)); in IsAccessSafe()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp497 ConstantRange KnownBitsRange = in processSwitchInst()
498 ConstantRange::fromKnownBits(Known, /*IsSigned=*/false); in processSwitchInst()
499 const ConstantRange LVIRange = LVI->getConstantRange(Val, OrigBlock, SI); in processSwitchInst()
500 ConstantRange ValRange = KnownBitsRange.intersectWith(LVIRange); in processSwitchInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DGlobalValue.h36 class ConstantRange; variable
520 Optional<ConstantRange> getAbsoluteSymbolRange() const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DAttributor.cpp5159 ConstantRange getConstantRangeFromSCEV(Attributor &A, in getConstantRangeFromSCEV()
5177 ConstantRange
5195 ConstantRange
5201 ConstantRange LVIR = getConstantRangeFromLVI(A, CtxI); in getKnownConstantRange()
5202 ConstantRange SCEVR = getConstantRangeFromSCEV(A, CtxI); in getKnownConstantRange()
5207 ConstantRange
5218 ConstantRange LVIR = getConstantRangeFromLVI(A, CtxI); in getAssumedConstantRange()
5219 ConstantRange SCEVR = getConstantRangeFromSCEV(A, CtxI); in getAssumedConstantRange()
5235 const ConstantRange &AssumedConstantRange) { in getMDNodeForConstantRange()
5244 static bool isBetterRange(const ConstantRange &Assumed, MDNode *KnownRanges) { in isBetterRange()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86Subtarget.cpp130 if (Optional<ConstantRange> CR = GV->getAbsoluteSymbolRange()) { in classifyGlobalReference()

12