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(APIntMoveTy V) in ConstantRange() function in ConstantRange
44 ConstantRange::ConstantRange(APIntMoveTy L, APIntMoveTy 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 …]
DAndroid.mk12 ConstantRange.cpp \
DCMakeLists.txt11 ConstantRange.cpp
/external/llvm/include/llvm/Support/
DConstantRange.h42 class ConstantRange {
56 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
60 ConstantRange(APIntMoveTy Value);
65 ConstantRange(APIntMoveTy Lower, APIntMoveTy Upper);
74 static ConstantRange makeICmpRegion(unsigned Pred,
75 const ConstantRange &Other);
114 bool contains(const ConstantRange &CR) const;
155 bool operator==(const ConstantRange &CR) const {
158 bool operator!=(const ConstantRange &CR) const {
164 ConstantRange subtract(const APInt &CI) const;
[all …]
/external/llvm/unittests/Support/
DConstantRangeTest.cpp20 static ConstantRange Full;
21 static ConstantRange Empty;
22 static ConstantRange One;
23 static ConstantRange Some;
24 static ConstantRange Wrap;
27 ConstantRange ConstantRangeTest::Full(16);
28 ConstantRange ConstantRangeTest::Empty(16, false);
29 ConstantRange ConstantRangeTest::One(APInt(16, 0xa));
30 ConstantRange ConstantRangeTest::Some(APInt(16, 0xa), APInt(16, 0xaaa));
31 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()
711 ConstantRange LHSRange = LHSVal.getConstantRange(); in solveBlockValueConstantRange()
712 ConstantRange RHSRange(1); in solveBlockValueConstantRange()
716 RHSRange = ConstantRange(RHS->getValue()); in solveBlockValueConstantRange()
[all …]
DScalarEvolution.cpp932 ConstantRange CR = getUnsignedRange(X); in getZeroExtendExpr()
1198 ConstantRange CR = getSignedRange(X); in getSignExtendExpr()
3313 ConstantRange
3316 DenseMap<const SCEV *, ConstantRange>::iterator I = UnsignedRanges.find(S); in getUnsignedRange()
3321 return setUnsignedRange(C, ConstantRange(C->getValue()->getValue())); in getUnsignedRange()
3324 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true); in getUnsignedRange()
3331 ConstantRange(APInt::getMinValue(BitWidth), in getUnsignedRange()
3335 ConstantRange X = getUnsignedRange(Add->getOperand(0)); in getUnsignedRange()
3342 ConstantRange X = getUnsignedRange(Mul->getOperand(0)); in getUnsignedRange()
3349 ConstantRange X = getUnsignedRange(SMax->getOperand(0)); in getUnsignedRange()
[all …]
DInstructionSimplify.cpp1961 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue()); in SimplifyICmpInst()
2018 ConstantRange LHS_CR = ConstantRange(Lower, Upper); in SimplifyICmpInst()
DValueTracking.cpp204 ConstantRange Range(Lower->getValue(), Upper->getValue()); in computeMaskedBitsLoad()
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h381 DenseMap<const SCEV *, ConstantRange> UnsignedRanges;
384 DenseMap<const SCEV *, ConstantRange> SignedRanges;
387 const ConstantRange &setUnsignedRange(const SCEV *S,
388 const ConstantRange &CR) {
389 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair =
397 const ConstantRange &setSignedRange(const SCEV *S,
398 const ConstantRange &CR) {
399 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair =
807 ConstantRange getUnsignedRange(const SCEV *S);
811 ConstantRange getSignedRange(const SCEV *S);
DScalarEvolutionExpressions.h23 class ConstantRange; variable
341 const SCEV *getNumIterationsInRange(ConstantRange Range,
/external/llvm/lib/IR/
DMetadata.cpp417 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) { in isContiguous()
421 static bool canBeMerged(const ConstantRange &A, const ConstantRange &B) { in canBeMerged()
427 ConstantRange NewRange(Low->getValue(), High->getValue()); in tryMergeRange()
431 ConstantRange LastRange(LB, LE); in tryMergeRange()
433 ConstantRange Union = LastRange.unionWith(NewRange); in tryMergeRange()
510 ConstantRange Range(cast<ConstantInt>(EndPoints[0])->getValue(), in getMostGenericRange()
DInstructions.cpp3083 ConstantRange
3096 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange()
3102 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange()
3108 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange()
3114 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange()
3120 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange()
3126 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange()
3132 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange()
3138 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange()
3141 return ConstantRange(Lower, Upper); in makeConstantRange()
DVerifier.cpp1724 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) { in isContiguous()
1759 ConstantRange LastRange(1); // Dummy initial value in visitLoadInst()
1771 ConstantRange CurRange(LowV, HighV); in visitLoadInst()
1782 LastRange = ConstantRange(LowV, HighV); in visitLoadInst()
1789 ConstantRange FirstRange(FirstLow, FirstHigh); in visitLoadInst()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp791 ConstantRange LHSRange = in FoldAndOfICmps()
792 ConstantRange::makeICmpRegion(LHSCC, LHSCst->getValue()); in FoldAndOfICmps()
793 ConstantRange RHSRange = in FoldAndOfICmps()
794 ConstantRange::makeICmpRegion(RHSCC, RHSCst->getValue()); in FoldAndOfICmps()
DInstCombineCompares.cpp1567 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
/external/llvm/include/llvm/IR/
DInstructions.h34 class ConstantRange; variable
1033 static ConstantRange makeConstantRange(Predicate pred, const APInt &C);
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp374 ConstantRange Span = in GatherConstantCompares()
375 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue()); in GatherConstantCompares()