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

Declarations

include/llvm/IR/ConstantRange.h
  407   ConstantRange shl(const ConstantRange &Other) const;

References

lib/IR/ConstantRange.cpp
  796     return shl(Other);
unittests/IR/ConstantRangeTest.cpp
 1247   EXPECT_EQ(Full.shl(Full), Full);
 1248   EXPECT_EQ(Full.shl(Empty), Empty);
 1249   EXPECT_EQ(Full.shl(One), Full);    // TODO: [0, (-1 << 0xa) + 1)
 1250   EXPECT_EQ(Full.shl(Some), Full);   // TODO: [0, (-1 << 0xa) + 1)
 1251   EXPECT_EQ(Full.shl(Wrap), Full);
 1252   EXPECT_EQ(Empty.shl(Empty), Empty);
 1253   EXPECT_EQ(Empty.shl(One), Empty);
 1254   EXPECT_EQ(Empty.shl(Some), Empty);
 1255   EXPECT_EQ(Empty.shl(Wrap), Empty);
 1256   EXPECT_EQ(One.shl(One), ConstantRange(APInt(16, 0xa << 0xa),
 1258   EXPECT_EQ(One.shl(Some), Full);    // TODO: [0xa << 0xa, 0)
 1259   EXPECT_EQ(One.shl(Wrap), Full);    // TODO: [0xa, 0xa << 14 + 1)
 1260   EXPECT_EQ(Some.shl(Some), Full);   // TODO: [0xa << 0xa, 0xfc01)
 1261   EXPECT_EQ(Some.shl(Wrap), Full);   // TODO: [0xa, 0x7ff << 0x5 + 1)
 1262   EXPECT_EQ(Wrap.shl(Wrap), Full);
 1264       Some2.shl(ConstantRange(APInt(16, 0x1))),
 1266   EXPECT_EQ(One.shl(WrapNullMax), Full);