reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/ConstantRange.h
  360   ConstantRange smax(const ConstantRange &Other) const;

References

lib/Analysis/LazyValueInfo.cpp
  905           return TrueCR.smax(FalseCR);
lib/Analysis/ScalarEvolution.cpp
 5590       X = X.smax(getRangeRef(SMax->getOperand(i), SignHint));
unittests/IR/ConstantRangeTest.cpp
  989   EXPECT_EQ(Full.smax(Full), Full);
  990   EXPECT_EQ(Full.smax(Empty), Empty);
  991   EXPECT_EQ(Full.smax(Some), ConstantRange(APInt(16, 0xa),
  993   EXPECT_EQ(Full.smax(Wrap), Full);
  994   EXPECT_EQ(Full.smax(One), ConstantRange(APInt(16, 0xa),
  996   EXPECT_EQ(Empty.smax(Empty), Empty);
  997   EXPECT_EQ(Empty.smax(Some), Empty);
  998   EXPECT_EQ(Empty.smax(Wrap), Empty);
  999   EXPECT_EQ(Empty.smax(One), Empty);
 1000   EXPECT_EQ(Some.smax(Some), Some);
 1001   EXPECT_EQ(Some.smax(Wrap), ConstantRange(APInt(16, 0xa),
 1003   EXPECT_EQ(Some.smax(One), Some);
 1004   EXPECT_EQ(Wrap.smax(One), ConstantRange(APInt(16, 0xa),
 1006   EXPECT_EQ(One.smax(One), One);