Home
last modified time | relevance | path

Searched refs:getUpper (Results 1 – 21 of 21) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DValueLattice.cpp26 << Val.getConstantRange(true).getUpper() << ">"; in operator <<()
30 << Val.getConstantRange().getUpper() << ">"; in operator <<()
H A DStackSafetyAnalysis.cpp213 << getStaticAllocaSizeRange(*AI).getUpper() << "]: " << AS << "\n"; in print()
334 if (Sizes.getUpper().isNegative() || isUnsafe(Sizes)) in getMemIntrinsicAccessRange()
337 ConstantRange SizeRange(APInt::getZero(PointerSize), Sizes.getUpper() - 1); in getMemIntrinsicAccessRange()
383 const SCEV *Max = SE.getMinusSCEV(ToDiffTy(SE.getConstant(Size.getUpper())), in isSafeAccess()
H A DScalarEvolution.cpp6716 APInt StartUpper = StartRange.getUpper() - 1; in getRangeForAffineARHelper()
10069 APInt Upper = Range.getUpper().sext(A.getBitWidth()); 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.cpp54 EXPECT_EQ(LV1.getConstantRange().getUpper().getLimitedValue(), 20U); in TEST_F()
57 EXPECT_EQ(LV1.getConstantRange().getUpper().getLimitedValue(), 23U); in TEST_F()
75 EXPECT_EQ(LV1.getConstantRange().getUpper().getLimitedValue(), 100U); in TEST_F()
81 EXPECT_EQ(LV1.getConstantRange().getUpper().getLimitedValue(), 100U); in TEST_F()
88 EXPECT_EQ(LV1.getConstantRange().getUpper().getLimitedValue(), 100U); in TEST_F()
91 EXPECT_EQ(LV2.getConstantRange().getUpper().getLimitedValue(), 100U); in TEST_F()
H A DValueTrackingTest.cpp2085 EXPECT_EQ(10, CR2.getUpper()); in TEST_F()
2153 EXPECT_EQ(0, CR.getUpper()); in TEST_F()
2158 EXPECT_EQ(100, CR2.getUpper()); in TEST_F()
2216 EXPECT_EQ(0, CR1.getUpper()); in TEST_F()
2219 EXPECT_EQ(0xffffffff, CR2.getUpper()); in TEST_F()
H A DScalarEvolutionTest.cpp1260 EXPECT_EQ(SE.getUnsignedRange(ScevIV).getUpper(), 16); in TEST_F()
1268 EXPECT_EQ(SE.getUnsignedRange(AddWithUMin).getUpper(), 33); in TEST_F()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp219 RHS = getUpper(); in getEquivalentICmp()
220 } else if (getUpper().isMinSignedValue() || getUpper().isMinValue()) { in getEquivalentICmp()
226 RHS = getUpper() - getLower(); in getEquivalentICmp()
428 return getUpper() - 1; in getUnsignedMax()
440 return getUpper() - 1; in getSignedMax()
470 return Other.getUpper().ule(Upper) || in contains()
996 APInt NewUpper = getUpper() + Other.getUpper() - 1; in add()
1042 APInt NewLower = getLower() - Other.getUpper() + 1; in sub()
1043 APInt NewUpper = getUpper() - Other.getLower(); in sub()
1116 (UR.getUpper().isNonNegative() || UR.getUpper().isMinSignedValue())) in multiply()
[all …]
H A DMetadata.cpp1076 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper(); in isContiguous()
1096 cast<ConstantInt>(ConstantInt::get(Ty, Union.getUpper())); in tryMergeRange()
H A DVerifier.cpp3768 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper(); in isContiguous()
/llvm-project-15.0.7/mlir/lib/Analysis/DataFlow/
H A DIntegerRangeAnalysis.cpp162 Type boundType, bool getUpper) { in visitNonControlFlowArguments() argument
173 return getUpper ? lattice->getValue().getValue().smax() in visitNonControlFlowArguments()
180 return getUpper ? APInt::getSignedMaxValue(width) in visitNonControlFlowArguments()
/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.cpp68 while (++N != CR.getUpper()); in ForeachNumInConstantRange()
416 One.getUpper().trunc(10))); in TEST_F()
446 One.getUpper().zext(20))); in TEST_F()
448 Some.getUpper().zext(20))); in TEST_F()
466 One.getUpper().sext(20))); in TEST_F()
468 Some.getUpper().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.h201 const APInt &getUpper() const { return Upper; } in getUpper() function
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp395 R.getUpper().getMinSignedBits()) + 1; in validateAndTransform()
H A DSCCP.cpp663 ConstantAsMetadata::get(ConstantInt::get(Context, CR.getUpper()))}; in runIPSCCP()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp1186 APInt UpperDiff = (CR1.getUpper() - 1) ^ (CR2.getUpper() - 1); in foldAndOrOfICmpsUsingRanges()
1187 APInt CR1Size = CR1.getUpper() - CR1.getLower(); in foldAndOrOfICmpsUsingRanges()
1189 CR1Size != CR2.getUpper() - CR2.getLower()) in foldAndOrOfICmpsUsingRanges()
H A DInstCombineCompares.cpp2798 const APInt &Upper = CR.getUpper(); in foldICmpAddConstant()
/llvm-project-15.0.7/polly/lib/Analysis/
H A DScopInfo.cpp196 V = valFromAPInt(Ctx.get(), Range.getUpper(), true); in addRangeBoundsToSet()
730 const auto UB = isWrapping ? (Range.getUpper() - One) : Range.getSignedMax(); in computeBoundsOnAccessRelation()
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp3767 assert(Range.getUpper().getNumWords() == 1); in writeFunctionTypeMetadataRecords()
3769 emitSignedInt64(Record, *Range.getUpper().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.cpp8187 Ty, AssumedConstantRange.getUpper()))}; in getMDNodeForConstantRange()