Home
last modified time | relevance | path

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

/external/llvm/lib/IR/
DConstantRange.cpp76 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion()
88 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion()
210 APInt SignedMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion()
288 APInt ConstantRange::getSignedMax() const { in getSignedMax() function in ConstantRange
730 this_max = getSignedMax().sext(getBitWidth() * 2); in multiply()
732 Other_max = Other.getSignedMax().sext(getBitWidth() * 2); in multiply()
750 APInt NewU = APIntOps::smax(getSignedMax(), Other.getSignedMax()) + 1; in smax()
776 APInt NewU = APIntOps::smin(getSignedMax(), Other.getSignedMax()) + 1; in smin()
/external/swiftshader/third_party/LLVM/lib/Support/
DConstantRange.cpp72 APInt SMax(CR.getSignedMax()); in makeICmpRegion()
84 APInt SMax(CR.getSignedMax()); in makeICmpRegion()
181 APInt ConstantRange::getSignedMax() const { in getSignedMax() function in ConstantRange
573 APInt NewU = APIntOps::smax(getSignedMax(), Other.getSignedMax()) + 1; in smax()
/external/swiftshader/third_party/LLVM/unittests/Support/
DConstantRangeTest.cpp135 EXPECT_EQ(Full.getSignedMax(), APInt(16, INT16_MAX)); in TEST_F()
136 EXPECT_EQ(One.getSignedMax(), APInt(16, 0xa)); in TEST_F()
137 EXPECT_EQ(Some.getSignedMax(), APInt(16, 0xaa9)); in TEST_F()
138 EXPECT_EQ(Wrap.getSignedMax(), APInt(16, INT16_MAX)); in TEST_F()
146 EXPECT_EQ(ConstantRange(APInt(4, 7), APInt(4, 0)).getSignedMax(), in TEST_F()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DConstantRange.h138 APInt getSignedMax() const;
/external/llvm/include/llvm/IR/
DConstantRange.h187 APInt getSignedMax() const;
/external/llvm/unittests/IR/
DConstantRangeTest.cpp139 EXPECT_EQ(Full.getSignedMax(), APInt(16, INT16_MAX)); in TEST_F()
140 EXPECT_EQ(One.getSignedMax(), APInt(16, 0xa)); in TEST_F()
141 EXPECT_EQ(Some.getSignedMax(), APInt(16, 0xaa9)); in TEST_F()
142 EXPECT_EQ(Wrap.getSignedMax(), APInt(16, INT16_MAX)); in TEST_F()
150 EXPECT_EQ(ConstantRange(APInt(4, 7), APInt(4, 0)).getSignedMax(), in TEST_F()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DScalarEvolution.cpp1048 SE->getSignedRange(Step).getSignedMax()); in getOverflowLimitForStep()
3523 APInt Max = APIntOps::smax(StartRange.getSignedMax(), in getSignedRange()
3524 EndRange.getSignedMax()); in getSignedRange()
5620 if (!getSignedRange(RHS).getSignedMax().isMaxSignedValue()) { in SimplifyICmpOperands()
5638 } else if (!getSignedRange(LHS).getSignedMax().isMaxSignedValue()) { in SimplifyICmpOperands()
5693 return getSignedRange(S).getSignedMax().isNegative(); in isKnownNegative()
5705 return !getSignedRange(S).getSignedMax().isStrictlyPositive(); in isKnownNonPositive()
5754 if (LHSRange.getSignedMax().slt(RHSRange.getSignedMin())) in isKnownPredicateWithRanges()
5756 if (LHSRange.getSignedMin().sge(RHSRange.getSignedMax())) in isKnownPredicateWithRanges()
5766 if (LHSRange.getSignedMax().sle(RHSRange.getSignedMin())) in isKnownPredicateWithRanges()
[all …]
/external/llvm/lib/Analysis/
DScalarEvolution.cpp1158 SE->getSignedRange(Step).getSignedMax()); in getSignedOverflowLimitForStep()
4654 APIntOps::smax(StartSRange.getSignedMax(), EndSRange.getSignedMax()); in getRangeForAffineAR()
7480 if (!getSignedRange(RHS).getSignedMax().isMaxSignedValue()) { in SimplifyICmpOperands()
7498 } else if (!getSignedRange(LHS).getSignedMax().isMaxSignedValue()) { in SimplifyICmpOperands()
7556 return getSignedRange(S).getSignedMax().isNegative(); in isKnownNegative()
7568 return !getSignedRange(S).getSignedMax().isStrictlyPositive(); in isKnownNonPositive()
8585 APInt MaxRHS = getSignedRange(RHS).getSignedMax(); in doesIVOverflowOnLT()
8588 .getSignedMax(); in doesIVOverflowOnLT()
8614 .getSignedMax(); in doesIVOverflowOnGT()
8696 IsSigned ? APIntOps::smin(getSignedRange(RHS).getSignedMax(), Limit) in howManyLessThans()
[all …]