Home
last modified time | relevance | path

Searched refs:getSignedMax (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp118 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion()
437 APInt ConstantRange::getSignedMax() const { in getSignedMax() function in ConstantRange
1144 APInt Max = getSignedMax(); in smul_fast()
1146 APInt OtherMax = Other.getSignedMax(); in smul_fast()
1165 APInt NewU = APIntOps::smax(getSignedMax(), Other.getSignedMax()) + 1; in smax()
1193 APInt NewU = APIntOps::smin(getSignedMax(), Other.getSignedMax()) + 1; in smin()
1525 } else if (getSignedMax().isNegative()) { in ashr()
1551 APInt NewU = getSignedMax().sadd_sat(Other.getSignedMax()) + 1; in sadd_sat()
1593 APInt Max = getSignedMax(); in smul_sat()
1595 APInt OtherMax = Other.getSignedMax(); in smul_sat()
[all …]
H A DAsmWriter.cpp3182 Out << "[" << Range.getSignedMin() << ", " << Range.getSignedMax() << "]"; in printFunctionSummary()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantRange.h282 APInt getSignedMax() const;
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp421 APInt Max = APIntOps::smax(ValRange.getSignedMax(), High); in ProcessSwitchInst()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantRangeTest.cpp353 EXPECT_EQ(Full.getSignedMax(), APInt(16, INT16_MAX)); in TEST_F()
354 EXPECT_EQ(One.getSignedMax(), APInt(16, 0xa)); in TEST_F()
355 EXPECT_EQ(Some.getSignedMax(), APInt(16, 0xaa9)); in TEST_F()
356 EXPECT_EQ(Wrap.getSignedMax(), APInt(16, INT16_MAX)); in TEST_F()
364 EXPECT_EQ(ConstantRange(APInt(4, 7), APInt(4, 0)).getSignedMax(), in TEST_F()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DScalarEvolution.h975 return getRangeRef(S, HINT_RANGE_SIGNED).getSignedMax();
/llvm-project-15.0.7/polly/lib/Analysis/
H A DScopInfo.cpp181 V = valFromAPInt(Ctx.get(), Range.getSignedMax(), true); in addRangeBoundsToSet()
730 const auto UB = isWrapping ? (Range.getUpper() - One) : Range.getSignedMax(); in computeBoundsOnAccessRelation()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp2935 CR->getSignedMax().slt(1ull << Width); in isSExtAbsoluteSymbolRef()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp364 ROffset = Range.getSignedMax(); in stripAndAccumulateOffsets()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DScalarEvolution.cpp6756 SR = SR.unionWith(getRangeForAffineARHelper(StepSRange.getSignedMax(), in getRangeForAffineAR()