/external/llvm/lib/Support/ |
ConstantRange.cpp | 73 APInt SMax(CR.getSignedMax()); 74 if (SMax.isMinSignedValue()) 76 return ConstantRange(APInt::getSignedMinValue(W), SMax); 85 APInt SMax(CR.getSignedMax()); 86 if (SMax.isMaxSignedValue()) 88 return ConstantRange(APInt::getSignedMinValue(W), SMax + 1); 599 ConstantRange::smax(const ConstantRange &Other) const { function in class:ConstantRange 600 // X smax Y is: range(smax(X_smin, Y_smin), 601 // smax(X_smax, Y_smax) [all...] |
/external/llvm/unittests/Support/ |
ConstantRangeTest.cpp | 421 TEST_F(ConstantRangeTest, SMax) { 422 EXPECT_EQ(Full.smax(Full), Full); 423 EXPECT_EQ(Full.smax(Empty), Empty); 424 EXPECT_EQ(Full.smax(Some), ConstantRange(APInt(16, 0xa), 426 EXPECT_EQ(Full.smax(Wrap), Full); 427 EXPECT_EQ(Full.smax(One), ConstantRange(APInt(16, 0xa), 429 EXPECT_EQ(Empty.smax(Empty), Empty); 430 EXPECT_EQ(Empty.smax(Some), Empty); 431 EXPECT_EQ(Empty.smax(Wrap), Empty); 432 EXPECT_EQ(Empty.smax(One), Empty) [all...] |
/external/llvm/lib/Analysis/ |
ScalarEvolution.cpp | 191 case scSMaxExpr: OpStr = " smax "; break; [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineCompares.cpp | 779 ConstantInt *SMax = ConstantInt::get(X->getContext(), 789 return new ICmpInst(ICmpInst::ICMP_SGT, X, ConstantExpr::getSub(SMax, CI)); [all...] |