| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 414 KnownBits reverseBits() { in reverseBits() function 415 return KnownBits(Zero.reverseBits(), One.reverseBits()); in reverseBits()
|
| H A D | MathExtras.h | 305 T reverseBits(T Val) { 317 inline uint8_t reverseBits<uint8_t>(uint8_t Val) { 324 inline uint16_t reverseBits<uint16_t>(uint16_t Val) { 331 inline uint32_t reverseBits<uint32_t>(uint32_t Val) { 338 inline uint64_t reverseBits<uint64_t>(uint64_t Val) {
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | DemandedBits.cpp | 123 AB = AOut.reverseBits(); in determineLiveOperandBits() 551 APInt RBound = Bound.reverseBits(); in determineLiveOperandBitsAddCarry() 552 APInt RAOut = AOut.reverseBits(); in determineLiveOperandBitsAddCarry() 555 APInt ACarry = RACarry.reverseBits(); in determineLiveOperandBitsAddCarry()
|
| H A D | ConstantFolding.cpp | 2353 return ConstantInt::get(Ty->getContext(), Op->getValue().reverseBits()); in ConstantFoldScalarCall1()
|
| H A D | ValueTracking.cpp | 1614 Known.Zero |= Known2.Zero.reverseBits(); in computeKnownBitsFromOperator() 1615 Known.One |= Known2.One.reverseBits(); in computeKnownBitsFromOperator()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | MathExtrasTest.cpp | 167 TEST(MathExtras, reverseBits) { in TEST() argument 172 EXPECT_EQ(0x54ULL, reverseBits(NZ8)); in TEST() 173 EXPECT_EQ(0x5400ULL, reverseBits(NZ16)); in TEST() 174 EXPECT_EQ(0x54000000ULL, reverseBits(NZ32)); in TEST() 175 EXPECT_EQ(0x5400000000000000ULL, reverseBits(NZ64)); in TEST()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 1894 TEST(APIntTest, reverseBits) { in TEST() argument 1895 EXPECT_EQ(1, APInt(1, 1).reverseBits()); in TEST() 1896 EXPECT_EQ(0, APInt(1, 0).reverseBits()); in TEST() 1898 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST() 1899 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST() 1901 EXPECT_EQ(0xb, APInt(4, 0xd).reverseBits()); in TEST() 1902 EXPECT_EQ(0xd, APInt(4, 0xb).reverseBits()); in TEST() 1903 EXPECT_EQ(0xf, APInt(4, 0xf).reverseBits()); in TEST() 1905 EXPECT_EQ(0x30, APInt(7, 0x6).reverseBits()); in TEST() 1930 EXPECT_EQ(Y, X.reverseBits()); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCCodeEmitter.cpp | 340 return reverseBits(Imm | RegBits) >> 22; in getSPE8DisEncoding() 355 return reverseBits(Imm | RegBits) >> 22; in getSPE4DisEncoding() 370 return reverseBits(Imm | RegBits) >> 22; in getSPE2DisEncoding()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APInt.cpp | 729 APInt APInt::reverseBits() const { in reverseBits() function in APInt 732 return APInt(BitWidth, llvm::reverseBits<uint64_t>(U.VAL)); in reverseBits() 734 return APInt(BitWidth, llvm::reverseBits<uint32_t>(U.VAL)); in reverseBits() 736 return APInt(BitWidth, llvm::reverseBits<uint16_t>(U.VAL)); in reverseBits() 738 return APInt(BitWidth, llvm::reverseBits<uint8_t>(U.VAL)); in reverseBits()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelKnownBits.cpp | 527 Known = Known.reverseBits(); in computeKnownBitsImpl()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIShrinkInstructions.cpp | 176 ReverseImm = reverseBits<int32_t>(static_cast<int32_t>(Src.getImm())); in isReverseInlineImm()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 1604 APInt reverseBits() const;
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 2105 APInt DemandedSrcBits = DemandedBits.reverseBits(); in SimplifyDemandedBits() 2109 Known.One = Known2.One.reverseBits(); in SimplifyDemandedBits() 2110 Known.Zero = Known2.Zero.reverseBits(); in SimplifyDemandedBits()
|
| H A D | SelectionDAG.cpp | 3683 Known = Known2.reverseBits(); in computeKnownBits() 5017 return getConstant(Val.reverseBits(), DL, VT, C->isTargetOpcode(), in getNode()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 11897 return Success(Val.reverseBits(), E); in VisitBuiltinCallExpr()
|