| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 50 EXPECT_EQ(128u, Minus1.countTrailingOnes()); in TEST() 118 EXPECT_EQ(64u, u64max.countTrailingOnes()); in TEST() 127 EXPECT_EQ(0u, zero.countTrailingOnes()); in TEST() 137 EXPECT_EQ(1u, one.countTrailingOnes()); in TEST() 147 EXPECT_EQ(0u, s128.countTrailingOnes()); in TEST() 158 EXPECT_EQ(0u, s128.countTrailingOnes()); in TEST() 169 EXPECT_EQ(0u, s128.countTrailingOnes()); in TEST() 179 EXPECT_EQ(0u, s128.countTrailingOnes()); in TEST() 192 EXPECT_EQ(4u, s256.countTrailingOnes()); in TEST() 203 EXPECT_EQ(4u, s256.countTrailingOnes()); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 227 return Zero.countTrailingOnes(); in countMinTrailingZeros() 232 return One.countTrailingOnes(); in countMinTrailingOnes()
|
| H A D | MathExtras.h | 525 unsigned countTrailingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVMatInt.cpp | 160 unsigned TrailingOnes = countTrailingOnes((uint64_t)Val); in extractRotateInfo() 166 unsigned UpperTrailingOnes = countTrailingOnes(Hi_32(Val)); in extractRotateInfo()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMUnwindOpAsm.cpp | 80 uint32_t Range = countTrailingOnes(Mask >> 5); // Exclude r4. in EmitRegSave()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousEnumUsageCheck.cpp | 82 return EnumConst->getInitVal().countTrailingOnes() == in isMaxValAllBitSetLiteral()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | SmallBitVector.h | 257 return countTrailingOnes(Bits); in find_first_unset() 301 return countTrailingOnes(Bits); in find_next_unset()
|
| H A D | APInt.h | 1559 unsigned countTrailingOnes() const { in countTrailingOnes() function 1561 return llvm::countTrailingOnes(U.VAL); in countTrailingOnes()
|
| H A D | BitVector.h | 766 unsigned Result = WordIndex * BITWORD_SIZE + countTrailingOnes(Word); in next_unset_in_word()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64AddressingModes.h | 242 CTO = countTrailingOnes(Imm >> I); in processLogicalImmediate() 250 CTO = CLO + countTrailingOnes(Imm) - (64 - Size); in processLogicalImmediate()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonGenExtract.cpp | 181 uint32_t T = M.countTrailingOnes(); in INITIALIZE_PASS_DEPENDENCY()
|
| H A D | HexagonISelDAGToDAG.cpp | 1134 uint32_t M1 = countTrailingOnes(Mask >> TZ); in ppAddrRewriteAndSrl()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 484 unsigned TrailBitsKnown0 = (LHS.Zero | LHS.One).countTrailingOnes(); in mul() 485 unsigned TrailBitsKnown1 = (RHS.Zero | RHS.One).countTrailingOnes(); in mul()
|
| H A D | APInt.cpp | 679 Count += llvm::countTrailingOnes(U.pVal[i]); in countTrailingOnesSlowCase()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86FloatingPoint.cpp | 1050 unsigned N = countTrailingOnes(STReturns); in handleCall() 1637 unsigned NumSTUses = countTrailingOnes(STUses); in handleSpecialFP() 1644 unsigned NumSTDefs = countTrailingOnes(STDefs); in handleSpecialFP() 1654 unsigned NumSTPopped = countTrailingOnes(STPopped); in handleSpecialFP()
|
| H A D | X86ISelDAGToDAG.cpp | 489 if (Val.countTrailingOnes() >= Width) in isUnneededShiftMask() 493 return Mask.countTrailingOnes() >= Width; in isUnneededShiftMask() 2062 if (countTrailingOnes(Mask >> MaskTZ) + MaskTZ + MaskLZ != 64) return true; in foldMaskAndShiftToScale()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIModeRegister.cpp | 204 unsigned Width = countTrailingOnes<unsigned>(InstrMode.Mask >> Offset); in insertSetreg()
|
| H A D | SIShrinkInstructions.cpp | 457 NewImm = countTrailingOnes(Imm); in shrinkScalarLogicOp()
|
| H A D | AMDGPUISelDAGToDAG.cpp | 729 if (RHS.countTrailingOnes() >= ShAmtBits) in isUnneededShiftMask() 733 return (LHSKnownZeros | RHS).countTrailingOnes() >= ShAmtBits; in isUnneededShiftMask()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelDAGToDAG.cpp | 3403 uint64_t NumBits = countTrailingOnes(MaskVal); in tryBFE() 3467 NumBits = countTrailingOnes(MaskVal) - ShiftAmt; in tryBFE() 3470 unsigned NumOnes = countTrailingOnes(MaskVal >> NumZeros); in tryBFE()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelDAGToDAG.cpp | 1954 MSB = SrlImm + (VT == MVT::i32 ? countTrailingOnes<uint32_t>(AndImm) in isBitfieldExtractOpFromAnd() 1955 : countTrailingOnes<uint64_t>(AndImm)) - in isBitfieldExtractOpFromAnd() 2541 MaskWidth = countTrailingOnes(NonZeroBits >> ShiftAmount); in isBitfieldPositioningOp() 2610 int LSB = countTrailingOnes(NotKnownZero); in tryBitfieldInsertOpFromOrAndImm() 2973 if (countTrailingOnes(MaskImm) < Bits) in tryShiftAmountMod()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.cpp | 711 unsigned MaskSizeBits = MaskVal.countTrailingOnes(); in matchCombineLoadWithAndMask() 4330 uint64_t Width = APInt(Size, AndImm).countTrailingOnes(); in matchBitfieldExtractFromAnd() 4431 const int64_t Width = countTrailingOnes(UMask) - ShrAmt; in matchBitfieldExtractFromShrAnd() 4699 unsigned NarrowWidth = Mask.countTrailingOnes(); in matchNarrowBinopFeedingAnd()
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/GlobalISel/ |
| H A D | KnownBitsTest.cpp | 1962 EXPECT_EQ(NumBits, Res.Zero.countTrailingOnes()); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 823 Upper.countTrailingOnes() == DstTySize) in truncate()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelDAGToDAG.cpp | 932 unsigned TO = countTrailingOnes<uint64_t>(Imm); in selectI64ImmDirect() 1161 unsigned TO = countTrailingOnes<uint64_t>(Imm); in selectI64ImmDirectPrefix() 4883 unsigned MB = 64 - countTrailingOnes(Imm64); in tryAsSingleRLDICL() 4933 unsigned MB = 63 - countTrailingOnes(~Imm64); in tryAsSingleRLDICR()
|