/external/llvm/include/llvm/IR/ |
D | ConstantRange.h | 43 class ConstantRange { 52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 56 ConstantRange(APIntMoveTy Value); 61 ConstantRange(APIntMoveTy Lower, APIntMoveTy Upper); 71 static ConstantRange makeAllowedICmpRegion(CmpInst::Predicate Pred, 72 const ConstantRange &Other); 82 static ConstantRange makeSatisfyingICmpRegion(CmpInst::Predicate Pred, 83 const ConstantRange &Other); 92 static ConstantRange makeExactICmpRegion(CmpInst::Predicate Pred, 113 static ConstantRange makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp, [all …]
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | ConstantRange.cpp | 32 ConstantRange::ConstantRange(uint32_t BitWidth, bool Full) { in ConstantRange() function in ConstantRange 41 ConstantRange::ConstantRange(const APInt &V) : Lower(V), Upper(V + 1) {} in ConstantRange() function in ConstantRange 43 ConstantRange::ConstantRange(const APInt &L, const APInt &U) : in ConstantRange() function in ConstantRange 51 ConstantRange ConstantRange::makeICmpRegion(unsigned Pred, in makeICmpRegion() 52 const ConstantRange &CR) { in makeICmpRegion() 63 return ConstantRange(CR.getUpper(), CR.getLower()); in makeICmpRegion() 64 return ConstantRange(W); in makeICmpRegion() 68 return ConstantRange(W, /* empty */ false); in makeICmpRegion() 69 return ConstantRange(APInt::getMinValue(W), UMax); in makeICmpRegion() 74 return ConstantRange(W, /* empty */ false); in makeICmpRegion() [all …]
|
/external/llvm/lib/IR/ |
D | ConstantRange.cpp | 34 ConstantRange::ConstantRange(uint32_t BitWidth, bool Full) { in ConstantRange() function in ConstantRange 43 ConstantRange::ConstantRange(APIntMoveTy V) in ConstantRange() function in ConstantRange 46 ConstantRange::ConstantRange(APIntMoveTy L, APIntMoveTy U) in ConstantRange() function in ConstantRange 54 ConstantRange ConstantRange::makeAllowedICmpRegion(CmpInst::Predicate Pred, in makeAllowedICmpRegion() 55 const ConstantRange &CR) { in makeAllowedICmpRegion() 67 return ConstantRange(CR.getUpper(), CR.getLower()); in makeAllowedICmpRegion() 68 return ConstantRange(W); in makeAllowedICmpRegion() 72 return ConstantRange(W, /* empty */ false); in makeAllowedICmpRegion() 73 return ConstantRange(APInt::getMinValue(W), UMax); in makeAllowedICmpRegion() 78 return ConstantRange(W, /* empty */ false); in makeAllowedICmpRegion() [all …]
|
D | Metadata.cpp | 914 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) { in isContiguous() 918 static bool canBeMerged(const ConstantRange &A, const ConstantRange &B) { in canBeMerged() 924 ConstantRange NewRange(Low->getValue(), High->getValue()); in tryMergeRange() 928 ConstantRange LastRange(LB, LE); in tryMergeRange() 930 ConstantRange Union = LastRange.unionWith(NewRange); in tryMergeRange() 1011 ConstantRange Range(EndPoints[0]->getValue(), EndPoints[1]->getValue()); in getMostGenericRange()
|
D | CMakeLists.txt | 12 ConstantRange.cpp
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | ConstantRange.h | 42 class ConstantRange { 48 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 52 ConstantRange(const APInt &Value); 57 ConstantRange(const APInt &Lower, const APInt &Upper); 66 static ConstantRange makeICmpRegion(unsigned Pred, 67 const ConstantRange &Other); 106 bool contains(const ConstantRange &CR) const; 147 bool operator==(const ConstantRange &CR) const { 150 bool operator!=(const ConstantRange &CR) const { 156 ConstantRange subtract(const APInt &CI) const; [all …]
|
/external/llvm/unittests/IR/ |
D | ConstantRangeTest.cpp | 21 static ConstantRange Full; 22 static ConstantRange Empty; 23 static ConstantRange One; 24 static ConstantRange Some; 25 static ConstantRange Wrap; 28 ConstantRange ConstantRangeTest::Full(16); 29 ConstantRange ConstantRangeTest::Empty(16, false); 30 ConstantRange ConstantRangeTest::One(APInt(16, 0xa)); 31 ConstantRange ConstantRangeTest::Some(APInt(16, 0xa), APInt(16, 0xaaa)); 32 ConstantRange ConstantRangeTest::Wrap(APInt(16, 0xaaa), APInt(16, 0xa)); [all …]
|
/external/swiftshader/third_party/LLVM/unittests/Support/ |
D | ConstantRangeTest.cpp | 21 static ConstantRange Full; 22 static ConstantRange Empty; 23 static ConstantRange One; 24 static ConstantRange Some; 25 static ConstantRange Wrap; 28 ConstantRange ConstantRangeTest::Full(16); 29 ConstantRange ConstantRangeTest::Empty(16, false); 30 ConstantRange ConstantRangeTest::One(APInt(16, 0xa)); 31 ConstantRange ConstantRangeTest::Some(APInt(16, 0xa), APInt(16, 0xaaa)); 32 ConstantRange ConstantRangeTest::Wrap(APInt(16, 0xaaa), APInt(16, 0xa)); [all …]
|
/external/llvm/include/llvm/Transforms/Scalar/ |
D | Float2Int.h | 34 ConstantRange seen(Instruction *I, ConstantRange R); 35 ConstantRange badRange(); 36 ConstantRange unknownRange(); 37 ConstantRange validateRange(ConstantRange R); 44 MapVector<Instruction *, ConstantRange> SeenInsts;
|
/external/llvm/lib/Transforms/Scalar/ |
D | Float2Int.cpp | 140 ConstantRange Float2IntPass::seen(Instruction *I, ConstantRange R) { in seen() 150 ConstantRange Float2IntPass::badRange() { in badRange() 151 return ConstantRange(MaxIntegerBW + 1, true); in badRange() 153 ConstantRange Float2IntPass::unknownRange() { in unknownRange() 154 return ConstantRange(MaxIntegerBW + 1, false); in unknownRange() 156 ConstantRange Float2IntPass::validateRange(ConstantRange R) { in validateRange() 198 seen(I, validateRange(ConstantRange(Min, Max))); in walkBackwards() 207 seen(I, validateRange(ConstantRange(SMin, SMax))); in walkBackwards() 243 std::function<ConstantRange(ArrayRef<ConstantRange>)> Op; in walkForwards() 252 Op = [](ArrayRef<ConstantRange> Ops) { in walkForwards() [all …]
|
D | GuardWidening.cpp | 416 ConstantRange CR0 = in widenCondCommon() 417 ConstantRange::makeExactICmpRegion(Pred0, RHS0->getValue()); in widenCondCommon() 418 ConstantRange CR1 = in widenCondCommon() 419 ConstantRange::makeExactICmpRegion(Pred1, RHS1->getValue()); in widenCondCommon()
|
/external/llvm/lib/Analysis/ |
D | LazyValueInfo.cpp | 92 ConstantRange Range; 109 static LVILatticeVal getRange(ConstantRange CR) { in getRange() 136 ConstantRange getConstantRange() const { in getConstantRange() 154 return markConstantRange(ConstantRange(CI->getValue())); in markConstant() 170 return markConstantRange(ConstantRange(CI->getValue()+1, CI->getValue())); in markNotConstant() 185 bool markConstantRange(ConstantRange NewR) { in markConstantRange() 271 ConstantRange NewR = Range.unionWith(RHS.getConstantRange()); in mergeIn() 353 ConstantRange Range = in intersect() 910 ConstantRange TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect() 911 ConstantRange FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect() [all …]
|
D | ScalarEvolution.cpp | 1435 ConstantRange CR = getUnsignedRange(X); in getZeroExtendExpr() 1635 ConstantRange CR = getSignedRange(X); in getSignExtendExpr() 2005 auto NSWRegion = ConstantRange::makeGuaranteedNoWrapRegion( in StrengthenNoWrapFlags() 2011 auto NUWRegion = ConstantRange::makeGuaranteedNoWrapRegion( in StrengthenNoWrapFlags() 3763 ConstantRange AddRecRange = getSignedRange(AR); in proveNoWrapViaConstantRanges() 3764 ConstantRange IncRange = getSignedRange(AR->getStepRecurrence(*this)); in proveNoWrapViaConstantRanges() 3766 auto NSWRegion = ConstantRange::makeGuaranteedNoWrapRegion( in proveNoWrapViaConstantRanges() 3773 ConstantRange AddRecRange = getUnsignedRange(AR); in proveNoWrapViaConstantRanges() 3774 ConstantRange IncRange = getUnsignedRange(AR->getStepRecurrence(*this)); in proveNoWrapViaConstantRanges() 3776 auto NUWRegion = ConstantRange::makeGuaranteedNoWrapRegion( in proveNoWrapViaConstantRanges() [all …]
|
D | ValueTracking.cpp | 389 ConstantRange Range(Lower->getValue(), Upper->getValue()); in computeKnownBitsFromRangeMetadata() 1660 ConstantRange Range(Lower->getValue(), Upper->getValue()); in rangeMetadataExcludesValue() 3935 ConstantRange llvm::getConstantRangeFromMetadata(MDNode &Ranges) { in getConstantRangeFromMetadata() 3943 ConstantRange CR(FirstLow->getValue(), FirstHigh->getValue()); in getConstantRangeFromMetadata() 3951 CR = CR.unionWith(ConstantRange(Low->getValue(), High->getValue())); in getConstantRangeFromMetadata() 4085 ConstantRange DomCR = in isImpliedCondMatchingImmOperands() 4086 ConstantRange::makeExactICmpRegion(APred, C1->getValue()); in isImpliedCondMatchingImmOperands() 4087 ConstantRange CR = in isImpliedCondMatchingImmOperands() 4088 ConstantRange::makeAllowedICmpRegion(BPred, C2->getValue()); in isImpliedCondMatchingImmOperands() 4089 ConstantRange Intersection = DomCR.intersectWith(CR); in isImpliedCondMatchingImmOperands() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | LazyValueInfo.cpp | 77 ConstantRange Range; 94 static LVILatticeVal getRange(ConstantRange CR) { in getRange() 116 ConstantRange getConstantRange() const { in getConstantRange() 134 return markConstantRange(ConstantRange(CI->getValue())); in markConstant() 150 return markConstantRange(ConstantRange(CI->getValue()+1, CI->getValue())); in markNotConstant() 165 bool markConstantRange(const ConstantRange NewR) { in markConstantRange() 260 ConstantRange NewR = Range.unionWith(RHS.getConstantRange()); in mergeIn() 729 ConstantRange LHSRange = LHSVal.getConstantRange(); in solveBlockValueConstantRange() 730 ConstantRange RHSRange(1); in solveBlockValueConstantRange() 734 RHSRange = ConstantRange(RHS->getValue()); in solveBlockValueConstantRange() [all …]
|
D | ScalarEvolution.cpp | 911 ConstantRange CR = getUnsignedRange(X); in getZeroExtendExpr() 1177 ConstantRange CR = getSignedRange(X); in getSignExtendExpr() 3257 ConstantRange 3260 DenseMap<const SCEV *, ConstantRange>::iterator I = UnsignedRanges.find(S); in getUnsignedRange() 3265 return setUnsignedRange(C, ConstantRange(C->getValue()->getValue())); in getUnsignedRange() 3268 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true); in getUnsignedRange() 3275 ConstantRange(APInt::getMinValue(BitWidth), in getUnsignedRange() 3279 ConstantRange X = getUnsignedRange(Add->getOperand(0)); in getUnsignedRange() 3286 ConstantRange X = getUnsignedRange(Mul->getOperand(0)); in getUnsignedRange() 3293 ConstantRange X = getUnsignedRange(SMax->getOperand(0)); in getUnsignedRange() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | ScalarEvolution.h | 366 DenseMap<const SCEV *, ConstantRange> UnsignedRanges; 369 DenseMap<const SCEV *, ConstantRange> SignedRanges; 372 const ConstantRange &setUnsignedRange(const SCEV *S, 373 const ConstantRange &CR) { 374 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair = 382 const ConstantRange &setSignedRange(const SCEV *S, 383 const ConstantRange &CR) { 384 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair = 781 ConstantRange getUnsignedRange(const SCEV *S); 785 ConstantRange getSignedRange(const SCEV *S);
|
D | ScalarEvolutionExpressions.h | 22 class ConstantRange; variable 350 const SCEV *getNumIterationsInRange(ConstantRange Range,
|
/external/llvm/include/llvm/Analysis/ |
D | LazyValueInfo.h | 24 class ConstantRange; variable 87 ConstantRange getConstantRange(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
|
D | ScalarEvolution.h | 807 DenseMap<const SCEV *, ConstantRange> UnsignedRanges; 810 DenseMap<const SCEV *, ConstantRange> SignedRanges; 816 const ConstantRange &setRange(const SCEV *S, RangeSignHint Hint, 817 const ConstantRange &CR) { 818 DenseMap<const SCEV *, ConstantRange> &Cache = 828 ConstantRange getRange(const SCEV *S, RangeSignHint Hint); 832 ConstantRange getRangeForAffineAR(const SCEV *Start, const SCEV *Stop, 839 ConstantRange getRangeViaFactoring(const SCEV *Start, const SCEV *Stop, 1440 ConstantRange getUnsignedRange(const SCEV *S) { 1446 ConstantRange getSignedRange(const SCEV *S) {
|
D | ScalarEvolutionExpressions.h | 24 class ConstantRange; variable 338 const SCEV *getNumIterationsInRange(const ConstantRange &Range,
|
D | ValueTracking.h | 452 ConstantRange getConstantRangeFromMetadata(MDNode &RangeMD);
|
/external/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 230 ConstantRange AccessStartRange = SE->getUnsignedRange(Expr); in IsAccessSafe() 231 ConstantRange SizeRange = in IsAccessSafe() 232 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, AccessSize)); in IsAccessSafe() 233 ConstantRange AccessRange = AccessStartRange.add(SizeRange); in IsAccessSafe() 234 ConstantRange AllocaRange = in IsAccessSafe() 235 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, AllocaSize)); in IsAccessSafe()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | GlobalValue.h | 36 class ConstantRange; variable 520 Optional<ConstantRange> getAbsoluteSymbolRange() const;
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Instructions.cpp | 2952 ConstantRange 2965 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 2971 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 2977 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 2983 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 2989 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 2995 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3001 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3007 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3010 return ConstantRange(Lower, Upper); in makeConstantRange()
|