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

Declarations

include/llvm/IR/ConstantRange.h
  411   ConstantRange lshr(const ConstantRange &Other) const;

References

lib/IR/ConstantRange.cpp
  798     return lshr(Other);
unittests/IR/ConstantRangeTest.cpp
 1270   EXPECT_EQ(Full.lshr(Full), Full);
 1271   EXPECT_EQ(Full.lshr(Empty), Empty);
 1272   EXPECT_EQ(Full.lshr(One), ConstantRange(APInt(16, 0),
 1274   EXPECT_EQ(Full.lshr(Some), ConstantRange(APInt(16, 0),
 1276   EXPECT_EQ(Full.lshr(Wrap), Full);
 1277   EXPECT_EQ(Empty.lshr(Empty), Empty);
 1278   EXPECT_EQ(Empty.lshr(One), Empty);
 1279   EXPECT_EQ(Empty.lshr(Some), Empty);
 1280   EXPECT_EQ(Empty.lshr(Wrap), Empty);
 1281   EXPECT_EQ(One.lshr(One), ConstantRange(APInt(16, 0)));
 1282   EXPECT_EQ(One.lshr(Some), ConstantRange(APInt(16, 0)));
 1283   EXPECT_EQ(One.lshr(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xb)));
 1284   EXPECT_EQ(Some.lshr(Some), ConstantRange(APInt(16, 0),
 1286   EXPECT_EQ(Some.lshr(Wrap), ConstantRange(APInt(16, 0), APInt(16, 0xaaa)));
 1287   EXPECT_EQ(Wrap.lshr(Wrap), Full);