Searched refs:getConstantRange (Results 1 – 11 of 11) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ValueLattice.cpp | 25 << 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 <<()
|
| H A D | LazyValueInfo.cpp | 72 Val.getConstantRange().isSingleElement()) in hasSingleValue() 124 A.getConstantRange().intersectWith(B.getConstantRange()); in intersect() 800 return Val.getConstantRange(); in getConstantRangeOrFull() 1400 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() 1659 return Result.getConstantRange(); in getConstantRangeOnEdge() 1683 const ConstantRange &CR = Val.getConstantRange(); in getPredicateResult()
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | ValueLatticeTest.cpp | 53 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 …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | ValueLattice.h | 272 const ConstantRange &getConstantRange(bool UndefAllowed = true) const { 281 } else if (isConstantRange() && getConstantRange().isSingleElement()) { in asConstantInteger() 282 return *getConstantRange().getSingleElement(); in asConstantInteger() 364 if (getConstantRange() == NewR) 372 assert(NewR.contains(getConstantRange()) && 404 return markConstantRange(RHS.getConstantRange(true), 445 ConstantRange NewR = getConstantRange().unionWith(RHS.getConstantRange()); 477 const auto &CR = getConstantRange(); in getCompare() 478 const auto &OtherCR = Other.getConstantRange(); in getCompare()
|
| H A D | LazyValueInfo.h | 95 ConstantRange getConstantRange(Value *V, Instruction *CxtI,
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | CorrelatedValuePropagation.cpp | 325 Cmp->getPredicate(), LVI->getConstantRange(Cmp->getOperand(0), Cmp), in processICmp() 326 LVI->getConstantRange(Cmp->getOperand(1), Cmp)); in processICmp() 442 ConstantRange LRange = LVI->getConstantRange(BO->getLHS(), BO); in willNotOverflow() 443 ConstantRange RRange = LVI->getConstantRange(BO->getRHS(), BO); in willNotOverflow() 737 std::get<1>(I) = LVI->getConstantRange(std::get<0>(I), Instr); in narrowSDivOrSRem() 788 ConstantRange CR = LVI->getConstantRange(Operand, Instr); in processUDivOrURem() 946 ConstantRange LRange = LVI->getConstantRange(SDI->getOperand(0), SDI); in processAShr() 1007 ConstantRange LRange = LVI->getConstantRange(LHS, BinOp); in processBinOp() 1008 ConstantRange RRange = LVI->getConstantRange(RHS, BinOp); in processBinOp() 1044 LVI->getConstantRange(LHS, BinOp, /*UndefAllowed=*/false); in processAnd()
|
| H A D | SCCP.cpp | 83 (LV.isConstantRange() && LV.getConstantRange().isSingleElement()); in isConstant() 178 if (IV.getConstantRange().isAllNonNegative()) { in simplifyInstsInBlock() 636 !ReturnValue.getConstantRange().isSingleElement()) { in runIPSCCP() 641 auto &CR = ReturnValue.getConstantRange(); in runIPSCCP()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SCCPSolver.cpp | 50 (LV.isConstantRange() && LV.getConstantRange().isSingleElement()); in isConstant() 518 const auto &CR = LV.getConstantRange(); in getConstant() 641 const ConstantRange &Range = SCValue.getConstantRange(); in getFeasibleSuccessors() 827 ? OpSt.getConstantRange() in visitCastInst() 1011 A = V1State.getConstantRange(); in visitBinaryOperator() 1013 B = V2State.getConstantRange(); in visitBinaryOperator() 1286 Pred, CondVal.getConstantRange()); in handleCallResult() 1291 ? CopyOfVal.getConstantRange() in handleCallResult() 1336 OpRanges.push_back(State.getConstantRange()); in handleCallResult()
|
| H A D | LowerSwitch.cpp | 412 const ConstantRange LVIRange = LVI->getConstantRange(Val, SI); in ProcessSwitchInst()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | FunctionSpecialization.cpp | 133 (LV.isConstantRange() && LV.getConstantRange().isSingleElement()); in isConstant()
|
| H A D | AttributorAttributes.cpp | 8116 return LVI->getConstantRange(&getAssociatedValue(), in getConstantRangeFromLVI()
|