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

Declarations

include/llvm/ADT/APInt.h
  490   bool isSplat(unsigned SplatSizeInBits) const;

References

lib/Analysis/ValueTracking.cpp
 3237       if (!CI->getValue().isSplat(8))
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2347     if (!Value.isSplat(8))
lib/Target/PowerPC/PPCISelLowering.cpp
 2189   if (!APInt(ValSizeInBytes * 8, Value).isSplat(ByteSize * 8))
lib/Transforms/InstCombine/InstCombineCompares.cpp
 2802       if (C->isSplat(EltTy->getBitWidth())) {
unittests/ADT/APIntTest.cpp
 1688   EXPECT_FALSE(A.isSplat(1));
 1689   EXPECT_FALSE(A.isSplat(2));
 1690   EXPECT_FALSE(A.isSplat(4));
 1691   EXPECT_TRUE(A.isSplat(8));
 1692   EXPECT_TRUE(A.isSplat(16));
 1693   EXPECT_TRUE(A.isSplat(32));
 1696   EXPECT_FALSE(B.isSplat(1));
 1697   EXPECT_TRUE(B.isSplat(2));
 1698   EXPECT_TRUE(B.isSplat(4));
 1699   EXPECT_TRUE(B.isSplat(8));
 1700   EXPECT_TRUE(B.isSplat(24));
 1703   EXPECT_FALSE(C.isSplat(1));
 1704   EXPECT_FALSE(C.isSplat(2));
 1705   EXPECT_FALSE(C.isSplat(4));
 1706   EXPECT_FALSE(C.isSplat(8));
 1707   EXPECT_TRUE(C.isSplat(24));
 1710   EXPECT_FALSE(D.isSplat(1));
 1711   EXPECT_FALSE(D.isSplat(2));
 1712   EXPECT_FALSE(D.isSplat(4));
 1713   EXPECT_FALSE(D.isSplat(8));
 1714   EXPECT_TRUE(D.isSplat(16));
 1715   EXPECT_TRUE(D.isSplat(32));
 1718   EXPECT_TRUE(E.isSplat(1));
 1719   EXPECT_TRUE(E.isSplat(2));
 1720   EXPECT_TRUE(E.isSplat(4));
 1721   EXPECT_TRUE(E.isSplat(8));
 1722   EXPECT_TRUE(E.isSplat(16));
 1723   EXPECT_TRUE(E.isSplat(32));