/external/llvm/lib/IR/ |
D | ConstantRange.cpp | 34 ConstantRange::ConstantRange(uint32_t BitWidth, bool Full) { in ConstantRange() function in ConstantRange 43 ConstantRange::ConstantRange(APIntMoveTy V) in ConstantRange() function in ConstantRange 46 ConstantRange::ConstantRange(APIntMoveTy L, APIntMoveTy U) in ConstantRange() function in ConstantRange 54 ConstantRange ConstantRange::makeAllowedICmpRegion(CmpInst::Predicate Pred, in makeAllowedICmpRegion() 55 const ConstantRange &CR) { in makeAllowedICmpRegion() 67 return ConstantRange(CR.getUpper(), CR.getLower()); in makeAllowedICmpRegion() 68 return ConstantRange(W); in makeAllowedICmpRegion() 72 return ConstantRange(W, /* empty */ false); in makeAllowedICmpRegion() 73 return ConstantRange(APInt::getMinValue(W), UMax); in makeAllowedICmpRegion() 78 return ConstantRange(W, /* empty */ false); in makeAllowedICmpRegion() [all …]
|
D | Metadata.cpp | 849 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) { in isContiguous() 853 static bool canBeMerged(const ConstantRange &A, const ConstantRange &B) { in canBeMerged() 859 ConstantRange NewRange(Low->getValue(), High->getValue()); in tryMergeRange() 863 ConstantRange LastRange(LB, LE); in tryMergeRange() 865 ConstantRange Union = LastRange.unionWith(NewRange); in tryMergeRange() 946 ConstantRange Range(EndPoints[0]->getValue(), EndPoints[1]->getValue()); in getMostGenericRange()
|
D | CMakeLists.txt | 8 ConstantRange.cpp
|
D | Android.mk | 10 ConstantRange.cpp \
|
D | Instructions.cpp | 3423 ConstantRange 3436 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 3442 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 3448 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 3454 return ConstantRange(BitWidth, /*isFullSet=*/false); in makeConstantRange() 3460 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3466 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3472 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3478 return ConstantRange(BitWidth, /*isFullSet=*/true); in makeConstantRange() 3481 return ConstantRange(Lower, Upper); in makeConstantRange()
|
D | Verifier.cpp | 2687 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) { in isContiguous() 2702 ConstantRange LastRange(1); // Dummy initial value in visitRangeMetadata() 2715 ConstantRange CurRange(LowV, HighV); in visitRangeMetadata() 2726 LastRange = ConstantRange(LowV, HighV); in visitRangeMetadata() 2733 ConstantRange FirstRange(FirstLow, FirstHigh); in visitRangeMetadata()
|
/external/llvm/include/llvm/IR/ |
D | ConstantRange.h | 43 class ConstantRange { 52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 56 ConstantRange(APIntMoveTy Value); 61 ConstantRange(APIntMoveTy Lower, APIntMoveTy Upper); 71 static ConstantRange makeAllowedICmpRegion(CmpInst::Predicate Pred, 72 const ConstantRange &Other); 82 static ConstantRange makeSatisfyingICmpRegion(CmpInst::Predicate Pred, 83 const ConstantRange &Other); 93 static ConstantRange makeNoWrapRegion(Instruction::BinaryOps BinOp, 133 bool contains(const ConstantRange &CR) const; [all …]
|
D | Instructions.h | 35 class ConstantRange; variable 1220 static ConstantRange makeConstantRange(Predicate pred, const APInt &C);
|
/external/llvm/unittests/IR/ |
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/Transforms/Scalar/ |
D | Float2Int.cpp | 69 ConstantRange seen(Instruction *I, ConstantRange R); 70 ConstantRange badRange(); 71 ConstantRange unknownRange(); 72 ConstantRange validateRange(ConstantRange R); 79 MapVector<Instruction*, ConstantRange > SeenInsts; 152 ConstantRange Float2Int::seen(Instruction *I, ConstantRange R) { in seen() 162 ConstantRange Float2Int::badRange() { in badRange() 163 return ConstantRange(MaxIntegerBW + 1, true); in badRange() 165 ConstantRange Float2Int::unknownRange() { in unknownRange() 166 return ConstantRange(MaxIntegerBW + 1, false); in unknownRange() [all …]
|
/external/llvm/lib/Analysis/ |
D | LazyValueInfo.cpp | 86 ConstantRange Range; 103 static LVILatticeVal getRange(ConstantRange CR) { in getRange() 130 ConstantRange getConstantRange() const { in getConstantRange() 148 return markConstantRange(ConstantRange(CI->getValue())); in markConstant() 164 return markConstantRange(ConstantRange(CI->getValue()+1, CI->getValue())); in markNotConstant() 179 bool markConstantRange(const ConstantRange NewR) { in markConstantRange() 270 ConstantRange NewR = Range.unionWith(RHS.getConstantRange()); in mergeIn() 545 ConstantRange Result = getConstantRangeFromMetadata(*Ranges); in getFromRangeMetadata() 830 ConstantRange LHSRange = LHSVal.getConstantRange(); in solveBlockValueConstantRange() 831 ConstantRange RHSRange(1); in solveBlockValueConstantRange() [all …]
|
D | ScalarEvolution.cpp | 1434 ConstantRange CR = getUnsignedRange(X); in getZeroExtendExpr() 1620 ConstantRange CR = getSignedRange(X); in getSignExtendExpr() 1969 ConstantRange::makeNoWrapRegion(Instruction::Add, C, OBO::NoSignedWrap); in StrengthenNoWrapFlags() 1975 ConstantRange::makeNoWrapRegion(Instruction::Add, C, in StrengthenNoWrapFlags() 4185 static Optional<ConstantRange> GetRangeFromMetadata(Value *V) { in GetRangeFromMetadata() 4197 ConstantRange 4200 DenseMap<const SCEV *, ConstantRange> &Cache = in getRange() 4205 DenseMap<const SCEV *, ConstantRange>::iterator I = Cache.find(S); in getRange() 4210 return setRange(C, SignHint, ConstantRange(C->getAPInt())); in getRange() 4213 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true); in getRange() [all …]
|
D | InstructionSimplify.cpp | 2268 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue()); in SimplifyICmpInst() 2384 ConstantRange LHS_CR = Lower != Upper ? ConstantRange(Lower, Upper) in SimplifyICmpInst() 2385 : ConstantRange(Width, true); in SimplifyICmpInst() 2412 auto Satisfied_CR = ConstantRange::makeSatisfyingICmpRegion(Pred, RHS_CR); in SimplifyICmpInst() 2416 auto InversedSatisfied_CR = ConstantRange::makeSatisfyingICmpRegion( in SimplifyICmpInst()
|
D | ValueTracking.cpp | 384 ConstantRange Range(Lower->getValue(), Upper->getValue()); in computeKnownBitsFromRangeMetadata() 1886 ConstantRange Range(Lower->getValue(), Upper->getValue()); in rangeMetadataExcludesValue() 4081 ConstantRange llvm::getConstantRangeFromMetadata(MDNode &Ranges) { in getConstantRangeFromMetadata() 4089 ConstantRange CR(FirstLow->getValue(), FirstHigh->getValue()); in getConstantRangeFromMetadata() 4097 CR = CR.unionWith(ConstantRange(Low->getValue(), High->getValue())); in getConstantRangeFromMetadata()
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolution.h | 533 DenseMap<const SCEV *, ConstantRange> UnsignedRanges; 536 DenseMap<const SCEV *, ConstantRange> SignedRanges; 542 const ConstantRange &setRange(const SCEV *S, RangeSignHint Hint, 543 const ConstantRange &CR) { 544 DenseMap<const SCEV *, ConstantRange> &Cache = 547 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair = 555 ConstantRange getRange(const SCEV *S, RangeSignHint Hint); 1065 ConstantRange getUnsignedRange(const SCEV *S) { 1071 ConstantRange getSignedRange(const SCEV *S) {
|
D | ScalarEvolutionExpressions.h | 24 class ConstantRange; variable 347 const SCEV *getNumIterationsInRange(ConstantRange Range,
|
D | ValueTracking.h | 442 ConstantRange getConstantRangeFromMetadata(MDNode &RangeMD);
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | SafeStack.cpp | 216 ConstantRange AccessStartRange = SE->getUnsignedRange(Expr); in IsAccessSafe() 217 ConstantRange SizeRange = in IsAccessSafe() 218 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, AccessSize)); in IsAccessSafe() 219 ConstantRange AccessRange = AccessStartRange.add(SizeRange); in IsAccessSafe() 220 ConstantRange AllocaRange = in IsAccessSafe() 221 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, AllocaSize)); in IsAccessSafe()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 979 ConstantRange LHSRange = in FoldAndOfICmps() 980 ConstantRange::makeAllowedICmpRegion(LHSCC, LHSCst->getValue()); in FoldAndOfICmps() 981 ConstantRange RHSRange = in FoldAndOfICmps() 982 ConstantRange::makeAllowedICmpRegion(RHSCC, RHSCst->getValue()); in FoldAndOfICmps()
|
D | InstCombineCompares.cpp | 1812 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 449 ConstantRange Span = ConstantRange::makeAllowedICmpRegion( in matchInstruction()
|