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

Declarations

include/llvm/IR/ConstantRange.h
  415   ConstantRange ashr(const ConstantRange &Other) const;

References

lib/IR/ConstantRange.cpp
  800     return ashr(Other);
unittests/IR/ConstantRangeTest.cpp
 1291   EXPECT_EQ(Full.ashr(Full), Full);
 1292   EXPECT_EQ(Full.ashr(Empty), Empty);
 1293   EXPECT_EQ(Full.ashr(One), ConstantRange(APInt(16, 0xffe0),
 1296   EXPECT_EQ(Full.ashr(Small), ConstantRange(APInt(16, 0xffe0),
 1298   EXPECT_EQ(Full.ashr(Some), ConstantRange(APInt(16, 0xffe0),
 1300   EXPECT_EQ(Full.ashr(Wrap), Full);
 1301   EXPECT_EQ(Empty.ashr(Empty), Empty);
 1302   EXPECT_EQ(Empty.ashr(One), Empty);
 1303   EXPECT_EQ(Empty.ashr(Some), Empty);
 1304   EXPECT_EQ(Empty.ashr(Wrap), Empty);
 1305   EXPECT_EQ(One.ashr(One), ConstantRange(APInt(16, 0)));
 1306   EXPECT_EQ(One.ashr(Some), ConstantRange(APInt(16, 0)));
 1307   EXPECT_EQ(One.ashr(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xb)));
 1308   EXPECT_EQ(Some.ashr(Some), ConstantRange(APInt(16, 0),
 1310   EXPECT_EQ(Some.ashr(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xaaa)));
 1311   EXPECT_EQ(Wrap.ashr(Wrap), Full);
 1313   EXPECT_EQ(Neg.ashr(Small), ConstantRange(APInt(16, 0xfffc, true),