/external/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 …]
|
D | Android.mk | 12 ConstantRange.cpp \
|
D | CMakeLists.txt | 16 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 | 82 ConstantRange Range; 99 static LVILatticeVal getRange(ConstantRange CR) { in getRange() 121 ConstantRange getConstantRange() const { in getConstantRange() 139 return markConstantRange(ConstantRange(CI->getValue())); in markConstant() 155 return markConstantRange(ConstantRange(CI->getValue()+1, CI->getValue())); in markNotConstant() 170 bool markConstantRange(const ConstantRange NewR) { in markConstantRange() 265 ConstantRange NewR = Range.unionWith(RHS.getConstantRange()); in mergeIn() 707 ConstantRange LHSRange = LHSVal.getConstantRange(); in solveBlockValueConstantRange() 708 ConstantRange RHSRange(1); in solveBlockValueConstantRange() 712 RHSRange = ConstantRange(RHS->getValue()); in solveBlockValueConstantRange() [all …]
|
D | ScalarEvolution.cpp | 923 ConstantRange CR = getUnsignedRange(X); in getZeroExtendExpr() 1189 ConstantRange CR = getSignedRange(X); in getSignExtendExpr() 3266 ConstantRange 3269 DenseMap<const SCEV *, ConstantRange>::iterator I = UnsignedRanges.find(S); in getUnsignedRange() 3274 return setUnsignedRange(C, ConstantRange(C->getValue()->getValue())); in getUnsignedRange() 3277 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true); in getUnsignedRange() 3284 ConstantRange(APInt::getMinValue(BitWidth), in getUnsignedRange() 3288 ConstantRange X = getUnsignedRange(Add->getOperand(0)); in getUnsignedRange() 3295 ConstantRange X = getUnsignedRange(Mul->getOperand(0)); in getUnsignedRange() 3302 ConstantRange X = getUnsignedRange(SMax->getOperand(0)); in getUnsignedRange() [all …]
|
D | InstructionSimplify.cpp | 1805 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue()); in SimplifyICmpInst() 1862 ConstantRange LHS_CR = ConstantRange(Lower, Upper); in SimplifyICmpInst()
|
D | ValueTracking.cpp | 204 ConstantRange Range(Lower->getValue(), Upper->getValue()); in computeMaskedBitsLoad()
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolution.h | 378 DenseMap<const SCEV *, ConstantRange> UnsignedRanges; 381 DenseMap<const SCEV *, ConstantRange> SignedRanges; 384 const ConstantRange &setUnsignedRange(const SCEV *S, 385 const ConstantRange &CR) { 386 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair = 394 const ConstantRange &setSignedRange(const SCEV *S, 395 const ConstantRange &CR) { 396 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair = 798 ConstantRange getUnsignedRange(const SCEV *S); 802 ConstantRange getSignedRange(const SCEV *S);
|
D | ScalarEvolutionExpressions.h | 23 class ConstantRange; variable 351 const SCEV *getNumIterationsInRange(ConstantRange Range,
|
/external/llvm/lib/VMCore/ |
D | Metadata.cpp | 452 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) { in isContiguous() 456 static bool canBeMerged(const ConstantRange &A, const ConstantRange &B) { in canBeMerged() 462 ConstantRange NewRange(Low->getValue(), High->getValue()); in tryMergeRange() 466 ConstantRange LastRange(LB, LE); in tryMergeRange() 468 ConstantRange Union = LastRange.unionWith(NewRange); in tryMergeRange() 545 ConstantRange Range(cast<ConstantInt>(EndPoints[0])->getValue(), in getMostGenericRange()
|
D | Verifier.cpp | 1366 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) { in isContiguous() 1401 ConstantRange LastRange(1); // Dummy initial value in visitLoadInst() 1413 ConstantRange CurRange(LowV, HighV); in visitLoadInst() 1424 LastRange = ConstantRange(LowV, HighV); in visitLoadInst() 1431 ConstantRange FirstRange(FirstLow, FirstHigh); in visitLoadInst()
|
D | Instructions.cpp | 2980 ConstantRange 2993 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 2999 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 3005 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 3011 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 3017 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3023 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3029 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3035 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3038 return ConstantRange(Lower, Upper); in makeConstantRange()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 802 ConstantRange LHSRange = in FoldAndOfICmps() 803 ConstantRange::makeICmpRegion(LHSCC, LHSCst->getValue()); in FoldAndOfICmps() 804 ConstantRange RHSRange = in FoldAndOfICmps() 805 ConstantRange::makeICmpRegion(RHSCC, RHSCst->getValue()); in FoldAndOfICmps()
|
D | InstCombineCompares.cpp | 1365 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
|
/external/llvm/include/llvm/ |
D | Instructions.h | 33 class ConstantRange; variable 1021 static ConstantRange makeConstantRange(Predicate pred, const APInt &C);
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 428 ConstantRange Span = in GatherConstantCompares() 429 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue()); in GatherConstantCompares()
|