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

Declarations

include/llvm/IR/ConstantRange.h
  356   ConstantRange multiply(const ConstantRange &Other) const;

References

lib/Analysis/ScalarEvolution.cpp
 5582       X = X.multiply(getRangeRef(Mul->getOperand(i), SignHint));
lib/IR/ConstantRange.cpp
  786     return multiply(Other);
  812     return multiply(Other);
unittests/IR/ConstantRangeTest.cpp
  925   EXPECT_EQ(Full.multiply(Full), Full);
  926   EXPECT_EQ(Full.multiply(Empty), Empty);
  927   EXPECT_EQ(Full.multiply(One), Full);
  928   EXPECT_EQ(Full.multiply(Some), Full);
  929   EXPECT_EQ(Full.multiply(Wrap), Full);
  930   EXPECT_EQ(Empty.multiply(Empty), Empty);
  931   EXPECT_EQ(Empty.multiply(One), Empty);
  932   EXPECT_EQ(Empty.multiply(Some), Empty);
  933   EXPECT_EQ(Empty.multiply(Wrap), Empty);
  934   EXPECT_EQ(One.multiply(One), ConstantRange(APInt(16, 0xa*0xa),
  936   EXPECT_EQ(One.multiply(Some), ConstantRange(APInt(16, 0xa*0xa),
  938   EXPECT_EQ(One.multiply(Wrap), Full);
  939   EXPECT_EQ(Some.multiply(Some), Full);
  940   EXPECT_EQ(Some.multiply(Wrap), Full);
  941   EXPECT_EQ(Wrap.multiply(Wrap), Full);
  944   EXPECT_EQ(Zero.multiply(Full), Zero);
  945   EXPECT_EQ(Zero.multiply(Some), Zero);
  946   EXPECT_EQ(Zero.multiply(Wrap), Zero);
  947   EXPECT_EQ(Full.multiply(Zero), Zero);
  948   EXPECT_EQ(Some.multiply(Zero), Zero);
  949   EXPECT_EQ(Wrap.multiply(Zero), Zero);
  952   EXPECT_EQ(ConstantRange(APInt(4, 1), APInt(4, 6)).multiply(
  956   EXPECT_EQ(ConstantRange(APInt(8, 254), APInt(8, 0)).multiply(
  959   EXPECT_EQ(ConstantRange(APInt(8, 254), APInt(8, 255)).multiply(
  964   EXPECT_EQ(ConstantRange(APInt(8, -2)).multiply(