Home
last modified time | relevance | path

Searched refs:countTrailingOnes (Results 1 – 25 of 41) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPIntTest.cpp50 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 DKnownBits.h227 return Zero.countTrailingOnes(); in countMinTrailingZeros()
232 return One.countTrailingOnes(); in countMinTrailingOnes()
H A DMathExtras.h525 unsigned countTrailingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
/llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp160 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 DARMUnwindOpAsm.cpp80 uint32_t Range = countTrailingOnes(Mask >> 5); // Exclude r4. in EmitRegSave()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousEnumUsageCheck.cpp82 return EnumConst->getInitVal().countTrailingOnes() == in isMaxValAllBitSetLiteral()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DSmallBitVector.h257 return countTrailingOnes(Bits); in find_first_unset()
301 return countTrailingOnes(Bits); in find_next_unset()
H A DAPInt.h1559 unsigned countTrailingOnes() const { in countTrailingOnes() function
1561 return llvm::countTrailingOnes(U.VAL); in countTrailingOnes()
H A DBitVector.h766 unsigned Result = WordIndex * BITWORD_SIZE + countTrailingOnes(Word); in next_unset_in_word()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h242 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 DHexagonGenExtract.cpp181 uint32_t T = M.countTrailingOnes(); in INITIALIZE_PASS_DEPENDENCY()
H A DHexagonISelDAGToDAG.cpp1134 uint32_t M1 = countTrailingOnes(Mask >> TZ); in ppAddrRewriteAndSrl()
/llvm-project-15.0.7/llvm/lib/Support/
H A DKnownBits.cpp484 unsigned TrailBitsKnown0 = (LHS.Zero | LHS.One).countTrailingOnes(); in mul()
485 unsigned TrailBitsKnown1 = (RHS.Zero | RHS.One).countTrailingOnes(); in mul()
H A DAPInt.cpp679 Count += llvm::countTrailingOnes(U.pVal[i]); in countTrailingOnesSlowCase()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86FloatingPoint.cpp1050 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 DX86ISelDAGToDAG.cpp489 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 DSIModeRegister.cpp204 unsigned Width = countTrailingOnes<unsigned>(InstrMode.Mask >> Offset); in insertSetreg()
H A DSIShrinkInstructions.cpp457 NewImm = countTrailingOnes(Imm); in shrinkScalarLogicOp()
H A DAMDGPUISelDAGToDAG.cpp729 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 DNVPTXISelDAGToDAG.cpp3403 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 DAArch64ISelDAGToDAG.cpp1954 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 DCombinerHelper.cpp711 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 DKnownBitsTest.cpp1962 EXPECT_EQ(NumBits, Res.Zero.countTrailingOnes()); in TEST_F()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp823 Upper.countTrailingOnes() == DstTySize) in truncate()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp932 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()

12