/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsISelDAGToDAG.cpp | 338 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 D | bit.cppm |
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ExpandImm.cpp | 243 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 D | AArch64ISelDAGToDAG.cpp | 2519 (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 D | countr.h | 74 [[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 D | KnownBits.h | 231 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 D | ARMUnwindOpAsm.cpp | 80 uint32_t Range = llvm::countr_one(Mask >> 5); // Exclude r4. in EmitRegSave()
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | bit | 49 constexpr int countr_one(T x) noexcept; // C++20
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMatInt.cpp | 161 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 D | AArch64AddressingModes.h | 241 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 D | SmallBitVector.h | 257 return llvm::countr_one(Bits); in find_first_unset() 301 return llvm::countr_one(Bits); in find_next_unset()
|
H A D | bit.h | 303 /// Ex. countr_one(0x00FF00FF) == 8. 307 template <typename T> [[nodiscard]] int countr_one(T Value) {
|
H A D | APInt.h | 1615 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 D | BitVector.h | 773 unsigned Result = WordIndex * BITWORD_SIZE + llvm::countr_one(Word); in next_unset_in_word()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonGenExtract.cpp | 181 uint32_t T = M.countr_one(); in INITIALIZE_PASS_DEPENDENCY()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FloatingPoint.cpp | 1049 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 D | SIModeRegister.cpp | 226 unsigned Width = llvm::countr_one<unsigned>(InstrMode.Mask >> Offset); in insertSetreg()
|
H A D | SIShrinkInstructions.cpp | 526 NewImm = llvm::countr_one(Imm); in shrinkScalarLogicOp()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | KnownBits.cpp | 865 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 D | PPCInstructionSelector.cpp | 294 unsigned TO = llvm::countr_one<uint64_t>(Imm); in selectI64ImmDirect()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 537 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 D | ConstantRange.cpp | 879 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 D | NVPTXISelDAGToDAG.cpp | 3509 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 D | PPCISelDAGToDAG.cpp | 1023 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 D | RISCVInstrInfoXCV.td | 722 llvm::countr_one(N->getZExtValue()) + 1,
|