| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ValueLattice.cpp | 26 << Val.getConstantRange(true).getUpper() << ">"; in operator <<() 30 << Val.getConstantRange().getUpper() << ">"; in operator <<()
|
| H A D | StackSafetyAnalysis.cpp | 213 << 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 D | ScalarEvolution.cpp | 6716 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 D | ValueLatticeTest.cpp | 54 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 D | ValueTrackingTest.cpp | 2085 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 D | ScalarEvolutionTest.cpp | 1260 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 D | ConstantRange.cpp | 219 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 D | Metadata.cpp | 1076 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper(); in isContiguous() 1096 cast<ConstantInt>(ConstantInt::get(Ty, Union.getUpper())); in tryMergeRange()
|
| H A D | Verifier.cpp | 3768 return A.getUpper() == B.getLower() || A.getLower() == B.getUpper(); in isContiguous()
|
| /llvm-project-15.0.7/mlir/lib/Analysis/DataFlow/ |
| H A D | IntegerRangeAnalysis.cpp | 162 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 D | AMDGPUAttributor.cpp | 676 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 D | ConstantRangeTest.cpp | 68 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 D | ConstantRange.h | 201 const APInt &getUpper() const { return Upper; } in getUpper() function
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | Float2Int.cpp | 395 R.getUpper().getMinSignedBits()) + 1; in validateAndTransform()
|
| H A D | SCCP.cpp | 663 ConstantAsMetadata::get(ConstantInt::get(Context, CR.getUpper()))}; in runIPSCCP()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAndOrXor.cpp | 1186 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 D | InstCombineCompares.cpp | 2798 const APInt &Upper = CR.getUpper(); in foldICmpAddConstant()
|
| /llvm-project-15.0.7/polly/lib/Analysis/ |
| H A D | ScopInfo.cpp | 196 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 D | BitcodeWriter.cpp | 3767 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 D | SimplifyCFG.cpp | 685 for (APInt Tmp = Span.getLower(); Tmp != Span.getUpper(); ++Tmp) in matchInstruction()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 8187 Ty, AssumedConstantRange.getUpper()))}; in getMDNodeForConstantRange()
|