Home
last modified time | relevance | path

Searched refs:countr_one (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelDAGToDAG.cpp338 if (RHS.countr_one() >= ShAmtBits) { in isUnneededShiftMask()
343 << RHS.countr_one() << "\n"); in isUnneededShiftMask()
348 return (Known.Zero | RHS).countr_one() >= ShAmtBits; in isUnneededShiftMask()
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dbit.cppm
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp243 uint64_t NumOnes = llvm::countr_one(V >> StartPosition); in GetRunOfOnesStartingAt()
293 uint32_t InitialTrailingOnes = llvm::countr_one(UImm); in decomposeIntoOrrOfLogicalImmediates()
438 unsigned RunLength = countr_one(RotatedImm); in tryEorOfLogicalImmediates()
H A DAArch64ISelDAGToDAG.cpp2519 (VT == MVT::i32 ? llvm::countr_one<uint32_t>(AndImm) in isBitfieldExtractOpFromAnd()
2520 : llvm::countr_one<uint64_t>(AndImm)) - in isBitfieldExtractOpFromAnd()
3134 Width = llvm::countr_one(NonZeroBits >> DstLSB); in isBitfieldPositioningOpFromAnd()
3192 Width = llvm::countr_one(ShiftedAndImm); in isSeveralBitsPositioningOpFromShl()
3223 Width = llvm::countr_one(NonZeroBits >> DstLSB); in isBitfieldPositioningOpFromShl()
3287 int LSB = llvm::countr_one(NotKnownZero); in tryBitfieldInsertOpFromOrAndImm()
3368 llvm::countr_one(AndImm >> NumTrailingZeroInShiftedMask); in isWorthFoldingIntoOrrWithShift()
3831 if ((unsigned)llvm::countr_one(MaskImm) < Bits) in tryShiftAmountMod()
/freebsd/contrib/llvm-project/libcxx/include/__bit/
H A Dcountr.h74 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int countr_one(_Tp __t) noexcept { in countr_one() function
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h231 unsigned countMinTrailingZeros() const { return Zero.countr_one(); } in countMinTrailingZeros()
234 unsigned countMinTrailingOnes() const { return One.countr_one(); } in countMinTrailingOnes()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMUnwindOpAsm.cpp80 uint32_t Range = llvm::countr_one(Mask >> 5); // Exclude r4. in EmitRegSave()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbit49 constexpr int countr_one(T x) noexcept; // C++20
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp161 unsigned TrailingOnes = llvm::countr_one((uint64_t)Val); in extractRotateInfo()
167 unsigned UpperTrailingOnes = llvm::countr_one(Hi_32(Val)); in extractRotateInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h241 CTO = llvm::countr_one(Imm >> I); in processLogicalImmediate()
249 CTO = CLO + llvm::countr_one(Imm) - (64 - Size); in processLogicalImmediate()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallBitVector.h257 return llvm::countr_one(Bits); in find_first_unset()
301 return llvm::countr_one(Bits); in find_next_unset()
H A Dbit.h303 /// Ex. countr_one(0x00FF00FF) == 8.
307 template <typename T> [[nodiscard]] int countr_one(T Value) {
H A DAPInt.h1615 unsigned countr_one() const { in countr_one() function
1617 return llvm::countr_one(U.VAL); in countr_one()
1621 unsigned countTrailingOnes() const { return countr_one(); } in countTrailingOnes()
H A DBitVector.h773 unsigned Result = WordIndex * BITWORD_SIZE + llvm::countr_one(Word); in next_unset_in_word()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenExtract.cpp181 uint32_t T = M.countr_one(); in INITIALIZE_PASS_DEPENDENCY()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FloatingPoint.cpp1049 unsigned N = llvm::countr_one(STReturns); in handleCall()
1638 unsigned NumSTUses = llvm::countr_one(STUses); in handleSpecialFP()
1645 unsigned NumSTDefs = llvm::countr_one(STDefs); in handleSpecialFP()
1655 unsigned NumSTPopped = llvm::countr_one(STPopped); in handleSpecialFP()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIModeRegister.cpp226 unsigned Width = llvm::countr_one<unsigned>(InstrMode.Mask >> Offset); in insertSetreg()
H A DSIShrinkInstructions.cpp526 NewImm = llvm::countr_one(Imm); in shrinkScalarLogicOp()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp865 unsigned TrailBitsKnown0 = (LHS.Zero | LHS.One).countr_one(); in mul()
866 unsigned TrailBitsKnown1 = (RHS.Zero | RHS.One).countr_one(); in mul()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCInstructionSelector.cpp294 unsigned TO = llvm::countr_one<uint64_t>(Imm); in selectI64ImmDirect()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp537 unsigned NTZ = (~DemandedMask & RHSKnown.Zero).countr_one(); in SimplifyDemandedUseBits()
580 unsigned NTZ = (~DemandedMask & RHSKnown.Zero).countr_one(); in SimplifyDemandedUseBits()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp879 if (Upper.getActiveBits() > DstTySize || Upper.countr_one() == DstTySize) in truncate()
1932 (Max.countr_one() < BitWidth - LCPLength ? 1 : 0); in getUnsignedPopCountRange()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.cpp3509 int64_t NumBits = countr_one(MaskVal); in tryBFE()
3573 NumBits = llvm::countr_one(MaskVal) - ShiftAmt; in tryBFE()
3576 unsigned NumOnes = llvm::countr_one(MaskVal >> NumZeros); in tryBFE()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp1023 unsigned TO = llvm::countr_one<uint64_t>(Imm); in selectI64ImmDirect()
1264 unsigned TO = llvm::countr_one<uint64_t>(Imm); in selectI64ImmDirectPrefix()
5120 unsigned MB = 64 - llvm::countr_one(Imm64); in tryAsSingleRLDCL()
5134 unsigned MB = 64 - llvm::countr_one(Imm64); in tryAsSingleRLDICL()
5184 unsigned MB = 63 - llvm::countr_one(~Imm64); in tryAsSingleRLDICR()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoXCV.td722 llvm::countr_one(N->getZExtValue()) + 1,

12