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

Declarations

include/llvm/IR/ConstantRange.h
  201   bool contains(const APInt &Val) const;

References

lib/Analysis/LazyValueInfo.cpp
 1789       if (!CR.contains(CI->getValue()))
 1795       if (!CR.contains(CI->getValue()))
lib/Analysis/ScalarEvolution.cpp
 5805   if (StartRange.contains(MovedBoundary))
 8582   assert(Range.contains(APInt(SE.getTypeSizeInBits(AddRec->getType()), 0)) &&
 8620       if (Range.contains(V0->getValue()))
 8625       if (Range.contains(V1->getValue()))
10826   if (!Range.contains(APInt(BitWidth, 0)))
10848     if (Range.contains(Val->getValue()))
10852     assert(Range.contains(
lib/Analysis/ValueTracking.cpp
 1988     if (Range.contains(Value))
lib/IR/ConstantRange.cpp
 1124   if (contains(Zero) && (!PosR.isEmptySet() || !NegR.isEmptySet()))
lib/Transforms/Utils/Local.cpp
 2578   if (!getConstantRangeFromMetadata(*N).contains(APInt(BitWidth, 0))) {
unittests/IR/ConstantRangeTest.cpp
  147   EXPECT_TRUE(Full.contains(APInt(16, 0x0)));
  148   EXPECT_TRUE(Full.contains(APInt(16, 0x9)));
  149   EXPECT_TRUE(Full.contains(APInt(16, 0xa)));
  150   EXPECT_TRUE(Full.contains(APInt(16, 0xaa9)));
  151   EXPECT_TRUE(Full.contains(APInt(16, 0xaaa)));
  157   EXPECT_FALSE(Empty.contains(APInt(16, 0x0)));
  158   EXPECT_FALSE(Empty.contains(APInt(16, 0x9)));
  159   EXPECT_FALSE(Empty.contains(APInt(16, 0xa)));
  160   EXPECT_FALSE(Empty.contains(APInt(16, 0xaa9)));
  161   EXPECT_FALSE(Empty.contains(APInt(16, 0xaaa)));
  166   EXPECT_FALSE(One.contains(APInt(16, 0x0)));
  167   EXPECT_FALSE(One.contains(APInt(16, 0x9)));
  168   EXPECT_TRUE(One.contains(APInt(16, 0xa)));
  169   EXPECT_FALSE(One.contains(APInt(16, 0xaa9)));
  170   EXPECT_FALSE(One.contains(APInt(16, 0xaaa)));
  171   EXPECT_FALSE(One.inverse().contains(APInt(16, 0xa)));
  176   EXPECT_FALSE(Some.contains(APInt(16, 0x0)));
  177   EXPECT_FALSE(Some.contains(APInt(16, 0x9)));
  178   EXPECT_TRUE(Some.contains(APInt(16, 0xa)));
  179   EXPECT_TRUE(Some.contains(APInt(16, 0xaa9)));
  180   EXPECT_FALSE(Some.contains(APInt(16, 0xaaa)));
  185   EXPECT_TRUE(Wrap.contains(APInt(16, 0x0)));
  186   EXPECT_TRUE(Wrap.contains(APInt(16, 0x9)));
  187   EXPECT_FALSE(Wrap.contains(APInt(16, 0xa)));
  188   EXPECT_FALSE(Wrap.contains(APInt(16, 0xaa9)));
  189   EXPECT_TRUE(Wrap.contains(APInt(16, 0xaaa)));
  563         return CR1.contains(N) && CR2.contains(N);
  563         return CR1.contains(N) && CR2.contains(N);
  574         return CR1.contains(N) || CR2.contains(N);
  574         return CR1.contains(N) || CR2.contains(N);
  663           EXPECT_TRUE(CR.contains(N));
  696           EXPECT_TRUE(CR.contains(N));
  739               EXPECT_TRUE(CR.contains(N));
 1621       EXPECT_EQ(NoOverflow, NoWrap.contains(N1));
 1625         EXPECT_EQ(Overflow, !NoWrap.contains(N1));