Searched refs:getSignedMax (Results 1 – 4 of 4) sorted by relevance
/external/llvm/lib/IR/ |
D | ConstantRange.cpp | 74 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() 86 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() 189 APInt ConstantRange::getSignedMax() const { in getSignedMax() function in ConstantRange 624 this_max = getSignedMax().sext(getBitWidth() * 2); in multiply() 626 Other_max = Other.getSignedMax().sext(getBitWidth() * 2); in multiply() 644 APInt NewU = APIntOps::smax(getSignedMax(), Other.getSignedMax()) + 1; in smax()
|
/external/llvm/unittests/IR/ |
D | ConstantRangeTest.cpp | 138 EXPECT_EQ(Full.getSignedMax(), APInt(16, INT16_MAX)); in TEST_F() 139 EXPECT_EQ(One.getSignedMax(), APInt(16, 0xa)); in TEST_F() 140 EXPECT_EQ(Some.getSignedMax(), APInt(16, 0xaa9)); in TEST_F() 141 EXPECT_EQ(Wrap.getSignedMax(), APInt(16, INT16_MAX)); in TEST_F() 149 EXPECT_EQ(ConstantRange(APInt(4, 7), APInt(4, 0)).getSignedMax(), in TEST_F()
|
/external/llvm/include/llvm/IR/ |
D | ConstantRange.h | 150 APInt getSignedMax() const;
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 1163 SE->getSignedRange(Step).getSignedMax()); in getSignedOverflowLimitForStep() 4017 APInt Max = APIntOps::smax(StartSRange.getSignedMax(), in getRange() 4018 EndSRange.getSignedMax()); in getRange() 6457 if (!getSignedRange(RHS).getSignedMax().isMaxSignedValue()) { in SimplifyICmpOperands() 6475 } else if (!getSignedRange(LHS).getSignedMax().isMaxSignedValue()) { in SimplifyICmpOperands() 6535 return getSignedRange(S).getSignedMax().isNegative(); in isKnownNegative() 6547 return !getSignedRange(S).getSignedMax().isStrictlyPositive(); in isKnownNonPositive() 6606 if (LHSRange.getSignedMax().slt(RHSRange.getSignedMin())) in isKnownPredicateWithRanges() 6608 if (LHSRange.getSignedMin().sge(RHSRange.getSignedMax())) in isKnownPredicateWithRanges() 6617 if (LHSRange.getSignedMax().sle(RHSRange.getSignedMin())) in isKnownPredicateWithRanges() [all …]
|