Home
last modified time | relevance | path

Searched refs:getLower (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DValueLattice.cpp25 << Val.getConstantRange(true).getLower() << ", " in operator <<()
29 return OS << "constantrange<" << Val.getConstantRange().getLower() << ", " in operator <<()
H A DStackSafetyAnalysis.cpp382 const SCEV *Min = ToDiffTy(SE.getConstant(Size.getLower())); in isSafeAccess()
H A DScalarEvolution.cpp6715 APInt StartLower = StartRange.getLower(); in getRangeForAffineARHelper()
10068 APInt Lower = Range.getLower().sext(A.getBitWidth()) - 1; in SolveQuadraticAddRecRange()
12951 APInt End = A.sge(1) ? (Range.getUpper() - 1) : Range.getLower(); in getNumIterationsInRange()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DValueLatticeTest.cpp53 EXPECT_EQ(LV1.getConstantRange().getLower().getLimitedValue(), 5U); in TEST_F()
56 EXPECT_EQ(LV1.getConstantRange().getLower().getLimitedValue(), 5U); in TEST_F()
74 EXPECT_EQ(LV1.getConstantRange().getLower().getLimitedValue(), 1U); in TEST_F()
80 EXPECT_EQ(LV1.getConstantRange().getLower().getLimitedValue(), 1U); in TEST_F()
87 EXPECT_EQ(LV1.getConstantRange().getLower().getLimitedValue(), 1U); in TEST_F()
90 EXPECT_EQ(LV2.getConstantRange().getLower().getLimitedValue(), 1U); in TEST_F()
H A DValueTrackingTest.cpp2084 EXPECT_EQ(5, CR2.getLower()); in TEST_F()
2152 EXPECT_EQ(5, CR.getLower()); in TEST_F()
2157 EXPECT_EQ(50, CR2.getLower()); in TEST_F()
2215 EXPECT_EQ(5, CR1.getLower()); in TEST_F()
2218 EXPECT_EQ(0, CR2.getLower()); in TEST_F()
H A DScalarEvolutionTest.cpp1259 EXPECT_EQ(SE.getUnsignedRange(ScevIV).getLower(), 0); in TEST_F()
1267 EXPECT_EQ(SE.getUnsignedRange(AddWithUMin).getLower(), 0); in TEST_F()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp216 } else if (getLower().isMinSignedValue() || getLower().isMinValue()) { in getEquivalentICmp()
223 RHS = getLower(); in getEquivalentICmp()
226 RHS = getUpper() - getLower(); in getEquivalentICmp()
227 Offset = -getLower(); in getEquivalentICmp()
434 return getLower(); in getUnsignedMin()
446 return getLower(); in getSignedMin()
471 Lower.ule(Other.getLower()); in contains()
995 APInt NewLower = getLower() + Other.getLower(); in add()
1042 APInt NewLower = getLower() - Other.getUpper() + 1; in sub()
1043 APInt NewUpper = getUpper() - Other.getLower(); in sub()
[all …]
H A DMetadata.cpp1076 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper(); in isContiguous()
1094 cast<ConstantInt>(ConstantInt::get(Ty, Union.getLower())); in tryMergeRange()
H A DVerifier.cpp3768 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper(); in isContiguous()
3799 Check(LowV.sgt(LastRange.getLower()), "Intervals are not in order", in visitRangeMetadata()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUAttributor.cpp676 if (getAssumed().getLower() == Min && getAssumed().getUpper() - 1 == Max) in manifest()
681 OS << getAssumed().getLower() << ',' << getAssumed().getUpper() - 1; in manifest()
693 OS << getAssumed().getLower() << ',' << getAssumed().getUpper() - 1; in getAsStr()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantRangeTest.cpp66 APInt N = CR.getLower(); in ForeachNumInConstantRange()
415 EXPECT_EQ(TOne, ConstantRange(One.getLower().trunc(10), in TEST_F()
445 EXPECT_EQ(ZOne, ConstantRange(One.getLower().zext(20), in TEST_F()
447 EXPECT_EQ(ZSome, ConstantRange(Some.getLower().zext(20), in TEST_F()
465 EXPECT_EQ(SOne, ConstantRange(One.getLower().sext(20), in TEST_F()
467 EXPECT_EQ(SSome, ConstantRange(Some.getLower().sext(20), in TEST_F()
1519 for (APInt I = NUWRegion.getLower(), E = NUWRegion.getUpper(); I != E; in TEST()
1526 for (APInt I = NSWRegion.getLower(), E = NSWRegion.getUpper(); I != E; in TEST()
1547 for (APInt I = NUWRegion.getLower(), E = NUWRegion.getUpper(); I != E; in TEST()
1554 for (APInt I = NSWRegion.getLower(), E = NSWRegion.getUpper(); I != E; in TEST()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantRange.h198 const APInt &getLower() const { return Lower; } in getLower() function
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp394 unsigned MinBW = std::max(R.getLower().getMinSignedBits(), in validateAndTransform()
H A DSCCP.cpp662 ConstantAsMetadata::get(ConstantInt::get(Context, CR.getLower())), in runIPSCCP()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp1185 APInt LowerDiff = CR1.getLower() ^ CR2.getLower(); in foldAndOrOfICmpsUsingRanges()
1187 APInt CR1Size = CR1.getUpper() - CR1.getLower(); in foldAndOrOfICmpsUsingRanges()
1189 CR1Size != CR2.getUpper() - CR2.getLower()) in foldAndOrOfICmpsUsingRanges()
1192 CR = CR1.getLower().ult(CR2.getLower()) ? CR1 : CR2; in foldAndOrOfICmpsUsingRanges()
H A DInstCombineCompares.cpp2799 const APInt &Lower = CR.getLower(); in foldICmpAddConstant()
/llvm-project-15.0.7/polly/lib/Analysis/
H A DScopInfo.cpp193 V = valFromAPInt(Ctx.get(), Range.getLower(), true); in addRangeBoundsToSet()
729 const auto LB = isWrapping ? Range.getLower() : Range.getSignedMin(); in computeBoundsOnAccessRelation()
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp3766 assert(Range.getLower().getNumWords() == 1); in writeFunctionTypeMetadataRecords()
3768 emitSignedInt64(Record, *Range.getLower().getRawData()); in writeFunctionTypeMetadataRecords()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp685 for (APInt Tmp = Span.getLower(); Tmp != Span.getUpper(); ++Tmp) in matchInstruction()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp8185 Ty, AssumedConstantRange.getLower())), in getMDNodeForConstantRange()