Home
last modified time | relevance | path

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

/external/llvm-project/llvm/lib/Analysis/
DValueLattice.cpp25 << Val.getConstantRange(true).getLower() << ", " in operator <<()
26 << Val.getConstantRange(true).getUpper() << ">"; in operator <<()
29 return OS << "constantrange<" << Val.getConstantRange().getLower() << ", " in operator <<()
30 << Val.getConstantRange().getUpper() << ">"; in operator <<()
DLazyValueInfo.cpp73 Val.getConstantRange().isSingleElement()) in hasSingleValue()
125 A.getConstantRange().intersectWith(B.getConstantRange()); in intersect()
821 const ConstantRange &TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect()
822 const ConstantRange &FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect()
935 return Val.getConstantRange(); in getRangeFor()
1398 EdgeVal = EdgeLatticeVal.getConstantRange(); in getEdgeValueLocal()
1603 const ConstantRange &CR = Result.getConstantRange(); in getConstant()
1610 ConstantRange LazyValueInfo::getConstantRange(Value *V, Instruction *CxtI, in getConstantRange() function in LazyValueInfo
1620 return Result.getConstantRange(UndefAllowed); in getConstantRange()
1640 const ConstantRange &CR = Result.getConstantRange(); in getConstantOnEdge()
[all …]
/external/llvm-project/llvm/unittests/Analysis/
DValueLatticeTest.cpp53 EXPECT_EQ(LV1.getConstantRange().getLower().getLimitedValue(), 5U); in TEST_F()
54 EXPECT_EQ(LV1.getConstantRange().getUpper().getLimitedValue(), 20U); in TEST_F()
56 EXPECT_EQ(LV1.getConstantRange().getLower().getLimitedValue(), 5U); in TEST_F()
57 EXPECT_EQ(LV1.getConstantRange().getUpper().getLimitedValue(), 23U); in TEST_F()
74 EXPECT_EQ(LV1.getConstantRange().getLower().getLimitedValue(), 1U); in TEST_F()
75 EXPECT_EQ(LV1.getConstantRange().getUpper().getLimitedValue(), 100U); in TEST_F()
80 EXPECT_EQ(LV1.getConstantRange().getLower().getLimitedValue(), 1U); in TEST_F()
81 EXPECT_EQ(LV1.getConstantRange().getUpper().getLimitedValue(), 100U); in TEST_F()
87 EXPECT_EQ(LV1.getConstantRange().getLower().getLimitedValue(), 1U); in TEST_F()
88 EXPECT_EQ(LV1.getConstantRange().getUpper().getLimitedValue(), 100U); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DValueLattice.h158 const ConstantRange &getConstantRange() const { in getConstantRange() function
167 } else if (isConstantRange() && getConstantRange().isSingleElement()) { in asConstantInteger()
168 return *getConstantRange().getSingleElement(); in asConstantInteger()
274 ConstantRange NewR = getConstantRange().unionWith(RHS.getConstantRange()); in mergeIn()
277 else if (NewR == getConstantRange()) in mergeIn()
306 const auto &CR = getConstantRange(); in getCompare()
307 const auto &OtherCR = Other.getConstantRange(); in getCompare()
DLazyValueInfo.h88 ConstantRange getConstantRange(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
/external/llvm-project/llvm/include/llvm/Analysis/
DValueLattice.h270 const ConstantRange &getConstantRange(bool UndefAllowed = true) const {
279 } else if (isConstantRange() && getConstantRange().isSingleElement()) { in asConstantInteger()
280 return *getConstantRange().getSingleElement(); in asConstantInteger()
362 if (getConstantRange() == NewR)
370 assert(NewR.contains(getConstantRange()) &&
402 return markConstantRange(RHS.getConstantRange(true),
443 ConstantRange NewR = getConstantRange().unionWith(RHS.getConstantRange());
475 const auto &CR = getConstantRange(); in getCompare()
476 const auto &OtherCR = Other.getConstantRange(); in getCompare()
DLazyValueInfo.h87 ConstantRange getConstantRange(Value *V, Instruction *CxtI,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueLattice.cpp21 return OS << "constantrange<" << Val.getConstantRange().getLower() << ", " in operator <<()
22 << Val.getConstantRange().getUpper() << ">"; in operator <<()
DLazyValueInfo.cpp72 Val.getConstantRange().isSingleElement()) in hasSingleValue()
124 A.getConstantRange().intersectWith(B.getConstantRange()); in intersect()
891 const ConstantRange &TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect()
892 const ConstantRange &FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect()
1014 Range = Val.getConstantRange(); in getRangeForOperand()
1485 EdgeVal = EdgeLatticeVal.getConstantRange(); in getEdgeValueLocal()
1711 const ConstantRange &CR = Result.getConstantRange(); in getConstant()
1718 ConstantRange LazyValueInfo::getConstantRange(Value *V, BasicBlock *BB, in getConstantRange() function in LazyValueInfo
1728 return Result.getConstantRange(); in getConstantRange()
1748 const ConstantRange &CR = Result.getConstantRange(); in getConstantOnEdge()
[all …]
/external/llvm/lib/Analysis/
DLazyValueInfo.cpp136 ConstantRange getConstantRange() const { in getConstantRange() function in __anonb20e53550111::LVILatticeVal
271 ConstantRange NewR = Range.unionWith(RHS.getConstantRange()); in mergeIn()
292 return OS << "constantrange<" << Val.getConstantRange().getLower() << ", " in operator <<()
293 << Val.getConstantRange().getUpper() << '>'; in operator <<()
303 Val.getConstantRange().isSingleElement()) in hasSingleValue()
354 A.getConstantRange().intersectWith(B.getConstantRange()); in intersect()
910 ConstantRange TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect()
911 ConstantRange FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect()
1046 LHSRange = LHSVal.getConstantRange(); in solveBlockValueCast()
1123 LHSRange = LHSVal.getConstantRange(); in solveBlockValueBinaryOp()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DSCCP.cpp100 (LV.isConstantRange() && LV.getConstantRange().isSingleElement()); in isConstant()
359 auto &CR = LV.getConstantRange(); in getConstant()
661 const ConstantRange &Range = SCValue.getConstantRange(); in getFeasibleSuccessors()
844 ConstantRange OpRange = OpSt.getConstantRange(); in visitCastInst()
1032 A = V1State.getConstantRange(); in visitBinaryOperator()
1034 B = V2State.getConstantRange(); in visitBinaryOperator()
1326 Pred, CondVal.getConstantRange()); in handleCallResult()
1331 ? CopyOfVal.getConstantRange() in handleCallResult()
1372 OpRanges.push_back(State.getConstantRange()); in handleCallResult()
1696 if (IV.getConstantRange().isAllNonNegative()) { in simplifyInstsInBlock()
[all …]
DCorrelatedValuePropagation.cpp426 ConstantRange LRange = LVI->getConstantRange(BO->getLHS(), BO); in willNotOverflow()
427 ConstantRange RRange = LVI->getConstantRange(BO->getRHS(), BO); in willNotOverflow()
635 std::get<1>(I) = LVI->getConstantRange(std::get<0>(I), Instr); in narrowSDivOrSRem()
687 ConstantRange CR = LVI->getConstantRange(Operand, Instr); in processUDivOrURem()
896 ConstantRange LRange = LVI->getConstantRange(LHS, BinOp); in processBinOp()
897 ConstantRange RRange = LVI->getConstantRange(RHS, BinOp); in processBinOp()
933 LVI->getConstantRange(LHS, BinOp, /*UndefAllowed=*/false); in processAnd()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp436 ConstantRange LRange = LVI->getConstantRange( in willNotOverflow()
438 ConstantRange RRange = LVI->getConstantRange( in willNotOverflow()
632 LVI->getConstantRange(Operand, Instr->getParent())); in processUDivOrURem()
761 ConstantRange LRange = LVI->getConstantRange(LHS, BB, BinOp); in processBinOp()
762 ConstantRange RRange = LVI->getConstantRange(RHS, BB, BinOp); in processBinOp()
796 ConstantRange LRange = LVI->getConstantRange(LHS, BB, BinOp); in processAnd()
/external/llvm/include/llvm/Analysis/
DLazyValueInfo.h87 ConstantRange getConstantRange(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp499 const ConstantRange LVIRange = LVI->getConstantRange(Val, OrigBlock, SI); in processSwitchInst()
/external/llvm-project/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp403 const ConstantRange LVIRange = LVI->getConstantRange(Val, SI); in ProcessSwitchInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DAttributor.cpp5189 return LVI->getConstantRange(&getAssociatedValue(), in getConstantRangeFromLVI()
/external/llvm-project/llvm/lib/Transforms/IPO/
DAttributorAttributes.cpp6975 return LVI->getConstantRange(&getAssociatedValue(), in getConstantRangeFromLVI()