Home
last modified time | relevance | path

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

/external/llvm/lib/Support/
DConstantRange.cpp33 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 …]
DAndroid.mk11 ConstantRange.cpp \
DCMakeLists.txt15 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.cpp77 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 …]
DScalarEvolution.cpp911 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 …]
DInstructionSimplify.cpp1530 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue()); in SimplifyICmpInst()
1584 ConstantRange LHS_CR = ConstantRange(Lower, Upper); in SimplifyICmpInst()
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h303 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);
DScalarEvolutionExpressions.h22 class ConstantRange; variable
350 const SCEV *getNumIterationsInRange(ConstantRange Range,
/external/llvm/lib/VMCore/
DInstructions.cpp2674 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/
DInstCombineAndOrXor.cpp822 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()
DInstCombineCompares.cpp1337 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp366 ConstantRange Span = in GatherConstantCompares()
367 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue()); in GatherConstantCompares()
/external/llvm/include/llvm/
DInstructions.h30 class ConstantRange; variable
704 static ConstantRange makeConstantRange(Predicate pred, const APInt &C);