/external/llvm/lib/Support/ |
D | ConstantRange.cpp | 33 ConstantRange::ConstantRange(uint32_t BitWidth, bool Full) { in ConstantRange() function in ConstantRange 42 ConstantRange::ConstantRange(const APInt &V) : Lower(V), Upper(V + 1) {} in ConstantRange() function in ConstantRange 44 ConstantRange::ConstantRange(const APInt &L, const APInt &U) : in ConstantRange() function in ConstantRange 52 ConstantRange ConstantRange::makeICmpRegion(unsigned Pred, in makeICmpRegion() 53 const ConstantRange &CR) { in makeICmpRegion() 64 return ConstantRange(CR.getUpper(), CR.getLower()); in makeICmpRegion() 65 return ConstantRange(W); in makeICmpRegion() 69 return ConstantRange(W, /* empty */ false); in makeICmpRegion() 70 return ConstantRange(APInt::getMinValue(W), UMax); in makeICmpRegion() 75 return ConstantRange(W, /* empty */ false); in makeICmpRegion() [all …]
|
D | Android.mk | 11 ConstantRange.cpp \
|
D | CMakeLists.txt | 15 ConstantRange.cpp
|
/external/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/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/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() 1165 ConstantRange CR = getSignedRange(X); in getSignExtendExpr() 3162 ConstantRange 3165 DenseMap<const SCEV *, ConstantRange>::iterator I = UnsignedRanges.find(S); in getUnsignedRange() 3170 return setUnsignedRange(C, ConstantRange(C->getValue()->getValue())); in getUnsignedRange() 3173 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true); in getUnsignedRange() 3180 ConstantRange(APInt::getMinValue(BitWidth), in getUnsignedRange() 3184 ConstantRange X = getUnsignedRange(Add->getOperand(0)); in getUnsignedRange() 3191 ConstantRange X = getUnsignedRange(Mul->getOperand(0)); in getUnsignedRange() 3198 ConstantRange X = getUnsignedRange(SMax->getOperand(0)); in getUnsignedRange() [all …]
|
D | InstructionSimplify.cpp | 1530 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue()); in SimplifyICmpInst() 1584 ConstantRange LHS_CR = ConstantRange(Lower, Upper); in SimplifyICmpInst()
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolution.h | 303 DenseMap<const SCEV *, ConstantRange> UnsignedRanges; 306 DenseMap<const SCEV *, ConstantRange> SignedRanges; 309 const ConstantRange &setUnsignedRange(const SCEV *S, 310 const ConstantRange &CR) { 311 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair = 319 const ConstantRange &setSignedRange(const SCEV *S, 320 const ConstantRange &CR) { 321 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair = 697 ConstantRange getUnsignedRange(const SCEV *S); 701 ConstantRange getSignedRange(const SCEV *S);
|
D | ScalarEvolutionExpressions.h | 22 class ConstantRange; variable 350 const SCEV *getNumIterationsInRange(ConstantRange Range,
|
/external/llvm/lib/VMCore/ |
D | Instructions.cpp | 2674 ConstantRange 2687 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 2693 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 2699 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 2705 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 2711 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 2717 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 2723 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 2729 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 2732 return ConstantRange(Lower, Upper); in makeConstantRange()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 822 ConstantRange LHSRange = in FoldAndOfICmps() 823 ConstantRange::makeICmpRegion(LHSCC, LHSCst->getValue()); in FoldAndOfICmps() 824 ConstantRange RHSRange = in FoldAndOfICmps() 825 ConstantRange::makeICmpRegion(RHSCC, RHSCst->getValue()); in FoldAndOfICmps()
|
D | InstCombineCompares.cpp | 1337 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 366 ConstantRange Span = in GatherConstantCompares() 367 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue()); in GatherConstantCompares()
|
/external/llvm/include/llvm/ |
D | Instructions.h | 30 class ConstantRange; variable 704 static ConstantRange makeConstantRange(Predicate pred, const APInt &C);
|