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

Declarations

include/llvm/ADT/APInt.h
 1710   APInt reverseBits() const;

References

lib/Analysis/ConstantFolding.cpp
 1971       return ConstantInt::get(Ty->getContext(), Op->getValue().reverseBits());
lib/Analysis/DemandedBits.cpp
  128         AB = AOut.reverseBits();
lib/Analysis/ValueTracking.cpp
 1475         Known.Zero |= Known2.Zero.reverseBits();
 1476         Known.One |= Known2.One.reverseBits();
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 3213     Known.Zero = Known2.Zero.reverseBits();
 3214     Known.One = Known2.One.reverseBits();
 4324       return getConstant(Val.reverseBits(), DL, VT, C->isTargetOpcode(),
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 1533     APInt DemandedSrcBits = DemandedBits.reverseBits();
 1537     Known.One = Known2.One.reverseBits();
 1538     Known.Zero = Known2.Zero.reverseBits();
unittests/ADT/APIntTest.cpp
 1802   EXPECT_EQ(1, APInt(1, 1).reverseBits());
 1803   EXPECT_EQ(0, APInt(1, 0).reverseBits());
 1805   EXPECT_EQ(3, APInt(2, 3).reverseBits());
 1806   EXPECT_EQ(3, APInt(2, 3).reverseBits());
 1808   EXPECT_EQ(0xb, APInt(4, 0xd).reverseBits());
 1809   EXPECT_EQ(0xd, APInt(4, 0xb).reverseBits());
 1810   EXPECT_EQ(0xf, APInt(4, 0xf).reverseBits());
 1812   EXPECT_EQ(0x30, APInt(7, 0x6).reverseBits());
 1813   EXPECT_EQ(0x5a, APInt(7, 0x2d).reverseBits());
 1815   EXPECT_EQ(0x0f, APInt(8, 0xf0).reverseBits());
 1816   EXPECT_EQ(0xf0, APInt(8, 0x0f).reverseBits());
 1818   EXPECT_EQ(0x0f0f, APInt(16, 0xf0f0).reverseBits());
 1819   EXPECT_EQ(0xf0f0, APInt(16, 0x0f0f).reverseBits());
 1821   EXPECT_EQ(0x0f0f0f0f, APInt(32, 0xf0f0f0f0).reverseBits());
 1822   EXPECT_EQ(0xf0f0f0f0, APInt(32, 0x0f0f0f0f).reverseBits());
 1824   EXPECT_EQ(0x402880a0 >> 1, APInt(31, 0x05011402).reverseBits());
 1826   EXPECT_EQ(0x0f0f0f0f, APInt(32, 0xf0f0f0f0).reverseBits());
 1827   EXPECT_EQ(0xf0f0f0f0, APInt(32, 0x0f0f0f0f).reverseBits());
 1829   EXPECT_EQ(0x0f0f0f0f0f0f0f0f, APInt(64, 0xf0f0f0f0f0f0f0f0).reverseBits());
 1830   EXPECT_EQ(0xf0f0f0f0f0f0f0f0, APInt(64, 0x0f0f0f0f0f0f0f0f).reverseBits());
 1837       EXPECT_EQ(Y, X.reverseBits());
 1838       EXPECT_EQ(X, Y.reverseBits());