Home
last modified time | relevance | path

Searched refs:ConstantRange (Results 1 – 18 of 18) sorted by relevance

/external/llvm/lib/Support/
DConstantRange.cpp32 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 …]
DAndroid.mk12 ConstantRange.cpp \
DCMakeLists.txt16 ConstantRange.cpp
/external/llvm/include/llvm/Support/
DConstantRange.h42 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/
DConstantRangeTest.cpp21 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/
DLazyValueInfo.cpp82 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 …]
DScalarEvolution.cpp923 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 …]
DInstructionSimplify.cpp1805 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue()); in SimplifyICmpInst()
1862 ConstantRange LHS_CR = ConstantRange(Lower, Upper); in SimplifyICmpInst()
DValueTracking.cpp204 ConstantRange Range(Lower->getValue(), Upper->getValue()); in computeMaskedBitsLoad()
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h378 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);
DScalarEvolutionExpressions.h23 class ConstantRange; variable
351 const SCEV *getNumIterationsInRange(ConstantRange Range,
/external/llvm/lib/VMCore/
DMetadata.cpp452 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()
DVerifier.cpp1366 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()
DInstructions.cpp2980 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/
DInstCombineAndOrXor.cpp802 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()
DInstCombineCompares.cpp1365 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
/external/llvm/include/llvm/
DInstructions.h33 class ConstantRange; variable
1021 static ConstantRange makeConstantRange(Predicate pred, const APInt &C);
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp428 ConstantRange Span = in GatherConstantCompares()
429 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue()); in GatherConstantCompares()