Home
last modified time | relevance | path

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

/external/llvm/include/llvm/IR/
DConstantRange.h42 class ConstantRange {
51 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
55 ConstantRange(APIntMoveTy Value);
60 ConstantRange(APIntMoveTy Lower, APIntMoveTy Upper);
69 static ConstantRange makeICmpRegion(unsigned Pred,
70 const ConstantRange &Other);
109 bool contains(const ConstantRange &CR) const;
150 bool operator==(const ConstantRange &CR) const {
153 bool operator!=(const ConstantRange &CR) const {
159 ConstantRange subtract(const APInt &CI) const;
[all …]
DInstructions.h33 class ConstantRange; variable
1091 static ConstantRange makeConstantRange(Predicate pred, const APInt &C);
/external/llvm/lib/IR/
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 …]
DMetadata.cpp420 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) { in isContiguous()
424 static bool canBeMerged(const ConstantRange &A, const ConstantRange &B) { in canBeMerged()
430 ConstantRange NewRange(Low->getValue(), High->getValue()); in tryMergeRange()
434 ConstantRange LastRange(LB, LE); in tryMergeRange()
436 ConstantRange Union = LastRange.unionWith(NewRange); in tryMergeRange()
513 ConstantRange Range(cast<ConstantInt>(EndPoints[0])->getValue(), in getMostGenericRange()
DCMakeLists.txt8 ConstantRange.cpp
DAndroid.mk10 ConstantRange.cpp \
DInstructions.cpp3197 ConstantRange
3210 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange()
3216 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange()
3222 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange()
3228 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange()
3234 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange()
3240 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange()
3246 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange()
3252 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange()
3255 return ConstantRange(Lower, Upper); in makeConstantRange()
DVerifier.cpp1885 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) { in isContiguous()
1920 ConstantRange LastRange(1); // Dummy initial value in visitLoadInst()
1932 ConstantRange CurRange(LowV, HighV); in visitLoadInst()
1943 LastRange = ConstantRange(LowV, HighV); in visitLoadInst()
1950 ConstantRange FirstRange(FirstLow, FirstHigh); in visitLoadInst()
/external/llvm/unittests/IR/
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.cpp83 ConstantRange Range;
100 static LVILatticeVal getRange(ConstantRange CR) { in getRange()
122 ConstantRange getConstantRange() const { in getConstantRange()
140 return markConstantRange(ConstantRange(CI->getValue())); in markConstant()
156 return markConstantRange(ConstantRange(CI->getValue()+1, CI->getValue())); in markNotConstant()
171 bool markConstantRange(const ConstantRange NewR) { in markConstantRange()
266 ConstantRange NewR = Range.unionWith(RHS.getConstantRange()); in mergeIn()
712 ConstantRange LHSRange = LHSVal.getConstantRange(); in solveBlockValueConstantRange()
713 ConstantRange RHSRange(1); in solveBlockValueConstantRange()
717 RHSRange = ConstantRange(RHS->getValue()); in solveBlockValueConstantRange()
[all …]
DScalarEvolution.cpp931 ConstantRange CR = getUnsignedRange(X); in getZeroExtendExpr()
1196 ConstantRange CR = getSignedRange(X); in getSignExtendExpr()
3408 ConstantRange
3411 DenseMap<const SCEV *, ConstantRange>::iterator I = UnsignedRanges.find(S); in getUnsignedRange()
3416 return setUnsignedRange(C, ConstantRange(C->getValue()->getValue())); in getUnsignedRange()
3419 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true); in getUnsignedRange()
3426 ConstantRange(APInt::getMinValue(BitWidth), in getUnsignedRange()
3430 ConstantRange X = getUnsignedRange(Add->getOperand(0)); in getUnsignedRange()
3437 ConstantRange X = getUnsignedRange(Mul->getOperand(0)); in getUnsignedRange()
3444 ConstantRange X = getUnsignedRange(SMax->getOperand(0)); in getUnsignedRange()
[all …]
DInstructionSimplify.cpp1923 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue()); in SimplifyICmpInst()
2010 ConstantRange LHS_CR = ConstantRange(Lower, Upper); in SimplifyICmpInst()
DValueTracking.cpp202 ConstantRange Range(Lower->getValue(), Upper->getValue()); in computeKnownBitsFromRangeMetadata()
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h393 DenseMap<const SCEV *, ConstantRange> UnsignedRanges;
396 DenseMap<const SCEV *, ConstantRange> SignedRanges;
399 const ConstantRange &setUnsignedRange(const SCEV *S,
400 const ConstantRange &CR) {
401 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair =
409 const ConstantRange &setSignedRange(const SCEV *S,
410 const ConstantRange &CR) {
411 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair =
822 ConstantRange getUnsignedRange(const SCEV *S);
826 ConstantRange getSignedRange(const SCEV *S);
DScalarEvolutionExpressions.h24 class ConstantRange; variable
346 const SCEV *getNumIterationsInRange(ConstantRange Range,
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp882 ConstantRange LHSRange = in FoldAndOfICmps()
883 ConstantRange::makeICmpRegion(LHSCC, LHSCst->getValue()); in FoldAndOfICmps()
884 ConstantRange RHSRange = in FoldAndOfICmps()
885 ConstantRange::makeICmpRegion(RHSCC, RHSCst->getValue()); in FoldAndOfICmps()
DInstCombineCompares.cpp1583 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp382 ConstantRange Span = in GatherConstantCompares()
383 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue()); in GatherConstantCompares()
/external/llvm/patches/
D0004-Add-Android-makefiles-for-LLVM.patch962 + ConstantRange.cpp \