/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | ConstantRange.h | 47 class LLVM_NODISCARD ConstantRange { 52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 55 ConstantRange(APInt Value); 60 ConstantRange(APInt Lower, APInt Upper); 70 static ConstantRange makeAllowedICmpRegion(CmpInst::Predicate Pred, 71 const ConstantRange &Other); 81 static ConstantRange makeSatisfyingICmpRegion(CmpInst::Predicate Pred, 82 const ConstantRange &Other); 91 static ConstantRange makeExactICmpRegion(CmpInst::Predicate Pred, 116 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 …]
|
/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-7.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::makeAllowedICmpRegion(CmpInst::Predicate Pred, in makeAllowedICmpRegion() 58 const ConstantRange &CR) { in makeAllowedICmpRegion() 70 return ConstantRange(CR.getUpper(), CR.getLower()); in makeAllowedICmpRegion() 71 return ConstantRange(W); in makeAllowedICmpRegion() 75 return ConstantRange(W, /* empty */ false); in makeAllowedICmpRegion() 76 return ConstantRange(APInt::getMinValue(W), std::move(UMax)); in makeAllowedICmpRegion() 81 return ConstantRange(W, /* empty */ false); in makeAllowedICmpRegion() [all …]
|
/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/swiftshader/third_party/llvm-7.0/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/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | ValueLattice.h | 59 ConstantRange Range; 76 Range.~ConstantRange(); in ~ValueLatticeElement() 93 Range.~ConstantRange(); 104 new (&Range) ConstantRange(Other.Range); 132 static ValueLatticeElement getRange(ConstantRange CR) { in getRange() 159 const ConstantRange &getConstantRange() const { in getConstantRange() 181 Range.~ConstantRange(); in markOverdefined() 188 markConstantRange(ConstantRange(CI->getValue())); in markConstant() 204 markConstantRange(ConstantRange(CI->getValue() + 1, CI->getValue())); in markNotConstant() 219 void markConstantRange(ConstantRange NewR) { in markConstantRange() [all …]
|
D | LazyValueInfo.h | 24 class ConstantRange; variable 89 ConstantRange getConstantRange(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr); 99 ConstantRange getConstantRangeOnEdge(Value *V, BasicBlock *FromBB,
|
D | ScalarEvolution.h | 799 ConstantRange getUnsignedRange(const SCEV *S) { 815 ConstantRange getSignedRange(const SCEV *S) { 1395 DenseMap<const SCEV *, ConstantRange> UnsignedRanges; 1398 DenseMap<const SCEV *, ConstantRange> SignedRanges; 1404 const ConstantRange &setRange(const SCEV *S, RangeSignHint Hint, 1405 ConstantRange CR) { 1406 DenseMap<const SCEV *, ConstantRange> &Cache = 1418 const ConstantRange &getRangeRef(const SCEV *S, RangeSignHint Hint); 1422 ConstantRange getRangeForAffineAR(const SCEV *Start, const SCEV *Stop, 1428 ConstantRange getRangeViaFactoring(const SCEV *Start, const SCEV *Stop,
|
/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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/ |
D | Float2Int.h | 34 void seen(Instruction *I, ConstantRange R); 35 ConstantRange badRange(); 36 ConstantRange unknownRange(); 37 ConstantRange validateRange(ConstantRange R); 44 MapVector<Instruction *, ConstantRange> SeenInsts;
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | Float2Int.cpp | 140 void 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 auto Input = ConstantRange(BW, true); in walkBackwards() 236 std::function<ConstantRange(ArrayRef<ConstantRange>)> Op; in walkForwards() 247 Op = [I](ArrayRef<ConstantRange> Ops) { in walkForwards() 260 Op = [I](ArrayRef<ConstantRange> Ops) { in walkForwards() [all …]
|
D | CorrelatedValuePropagation.cpp | 409 ConstantRange RRange = LVI->getConstantRange(RHS, II->getParent(), II); in willNotOverflow() 410 ConstantRange NWRegion = ConstantRange::makeGuaranteedNoWrapRegion( in willNotOverflow() 416 ConstantRange LRange = LVI->getConstantRange(LHS, II->getParent(), II); in willNotOverflow() 519 ConstantRange OperandRange(OrigWidth, /*isFullset=*/false); in processUDivOrURem() 626 ConstantRange LRange = LVI->getConstantRange(LHS, BB, AddOp); in processAdd() 631 Optional<ConstantRange> RRange; in processAdd() 640 ConstantRange NUWRange = ConstantRange::makeGuaranteedNoWrapRegion( in processAdd() 649 ConstantRange NSWRange = ConstantRange::makeGuaranteedNoWrapRegion( in processAdd()
|
/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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | LazyValueInfo.cpp | 119 ConstantRange Range = in intersect() 866 const ConstantRange &TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect() 867 const ConstantRange &FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect() 875 ConstantRange ResultCR = [&]() { in solveBlockValueSelect() 991 ConstantRange LHSRange = ConstantRange(OperandBitWidth); in solveBlockValueCast() 1050 ConstantRange LHSRange = ConstantRange(OperandBitWidth); in solveBlockValueBinaryOp() 1060 ConstantRange RHSRange = ConstantRange(RHS->getValue()); in solveBlockValueBinaryOp() 1110 ConstantRange RHSRange(RHS->getType()->getIntegerBitWidth(), in getValueFromICmpCondition() 1113 RHSRange = ConstantRange(CI->getValue()); in getValueFromICmpCondition() 1121 ConstantRange TrueValues = in getValueFromICmpCondition() [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);
|
/external/llvm/include/llvm/Analysis/ |
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 | LazyValueInfo.h | 24 class ConstantRange; variable 87 ConstantRange getConstantRange(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
|