/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | ConstantRange.h | 47 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 …]
|
D | GlobalValue.h | 35 class ConstantRange; variable 565 Optional<ConstantRange> getAbsoluteSymbolRange() const;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | ConstantRange.cpp | 42 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 …]
|
D | Metadata.cpp | 942 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()
|
D | CMakeLists.txt | 13 ConstantRange.cpp
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | ValueLattice.h | 58 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 …]
|
D | LazyValueInfo.h | 23 class ConstantRange; variable 88 ConstantRange getConstantRange(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr); 98 ConstantRange getConstantRangeOnEdge(Value *V, BasicBlock *FromBB,
|
D | ScalarEvolution.h | 817 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,
|
D | ScalarEvolutionExpressions.h | 34 class ConstantRange; variable 354 const SCEV *getNumIterationsInRange(const ConstantRange &Range,
|
D | ValueTracking.h | 509 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/ |
D | Float2Int.h | 35 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/ |
D | StackSafetyAnalysis.cpp | 68 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 …]
|
D | LazyValueInfo.cpp | 123 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 …]
|
D | ValueTracking.cpp | 454 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 …]
|
D | ScalarEvolution.cpp | 1682 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/ |
D | Float2Int.cpp | 151 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 …]
|
D | CorrelatedValuePropagation.cpp | 436 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()
|
D | GuardWidening.cpp | 513 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()
|
D | IndVarSimplify.cpp | 1004 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/ |
D | Attributor.h | 1514 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/ |
D | SafeStack.cpp | 237 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/ |
D | LowerSwitch.cpp | 497 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/ |
D | GlobalValue.h | 36 class ConstantRange; variable 520 Optional<ConstantRange> getAbsoluteSymbolRange() const;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | Attributor.cpp | 5159 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/ |
D | X86Subtarget.cpp | 130 if (Optional<ConstantRange> CR = GV->getAbsoluteSymbolRange()) { in classifyGlobalReference()
|