| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsISelDAGToDAG.cpp | 293 if (RHS.countr_one() >= ShAmtBits) { in isUnneededShiftMask() 298 << RHS.countr_one() << "\n"); in isUnneededShiftMask() 303 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 | 2619 (VT == MVT::i32 ? llvm::countr_one<uint32_t>(AndImm) in isBitfieldExtractOpFromAnd() 2620 : llvm::countr_one<uint64_t>(AndImm)) - in isBitfieldExtractOpFromAnd() 3236 Width = llvm::countr_one(NonZeroBits >> DstLSB); in isBitfieldPositioningOpFromAnd() 3294 Width = llvm::countr_one(ShiftedAndImm); in isSeveralBitsPositioningOpFromShl() 3325 Width = llvm::countr_one(NonZeroBits >> DstLSB); in isBitfieldPositioningOpFromShl() 3389 int LSB = llvm::countr_one(NotKnownZero); in tryBitfieldInsertOpFromOrAndImm() 3470 llvm::countr_one(AndImm >> NumTrailingZeroInShiftedMask); in isWorthFoldingIntoOrrWithShift() 3933 if ((unsigned)llvm::countr_one(MaskImm) < Bits) in tryShiftAmountMod()
|
| /freebsd/contrib/llvm-project/libcxx/include/__bit/ |
| H A D | countr.h | 72 [[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 | 235 unsigned countMinTrailingZeros() const { return Zero.countr_one(); } in countMinTrailingZeros() 238 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 | 191 unsigned TrailingOnes = llvm::countr_one((uint64_t)Val); in extractRotateInfo() 197 unsigned UpperTrailingOnes = llvm::countr_one(Hi_32(Val)); in extractRotateInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonGenExtract.cpp | 170 uint32_t T = M.countr_one(); in INITIALIZE_PASS_DEPENDENCY()
|
| /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 | 260 template <typename T> [[nodiscard]] int countr_one(T Value) { in countr_one() function
|
| H A D | APInt.h | 1656 unsigned countr_one() const { in countr_one() function 1658 return llvm::countr_one(U.VAL); in countr_one() 1662 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/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/libc/src/__support/CPP/ |
| H A D | bit.h | 177 countr_one(T value) { in countr_one() function
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86FloatingPoint.cpp | 1066 unsigned N = llvm::countr_one(STReturns); in handleCall() 1655 unsigned NumSTUses = llvm::countr_one(STUses); in handleSpecialFP() 1662 unsigned NumSTDefs = llvm::countr_one(STDefs); in handleSpecialFP() 1673 unsigned NumSTPopped = llvm::countr_one(STPopped); in handleSpecialFP()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SIModeRegister.cpp | 225 unsigned Width = llvm::countr_one<unsigned>(InstrMode.Mask >> Offset); in insertSetreg()
|
| H A D | SIShrinkInstructions.cpp | 554 NewImm = llvm::countr_one(Imm); in shrinkScalarLogicOp()
|
| /freebsd/contrib/llvm-project/libc/src/__support/ |
| H A D | big_int.h | 326 DECLARE_COUNTBIT(countr_one, i) // iterating forward 1259 countr_one(T value) { 1260 return multiword::countr_one(value.val);
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 872 unsigned TrailBitsKnown0 = (LHS.Zero | LHS.One).countr_one(); in mul() 873 unsigned TrailBitsKnown1 = (RHS.Zero | RHS.One).countr_one(); in mul()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelDAGToDAG.cpp | 1725 int64_t NumBits = countr_one(MaskVal); in tryBFE() 1789 NumBits = llvm::countr_one(MaskVal) - ShiftAmt; in tryBFE() 1792 unsigned NumOnes = llvm::countr_one(MaskVal >> NumZeros); in tryBFE()
|
| /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 | 543 unsigned NTZ = (~DemandedMask & RHSKnown.Zero).countr_one(); in SimplifyDemandedUseBits() 586 unsigned NTZ = (~DemandedMask & RHSKnown.Zero).countr_one(); in SimplifyDemandedUseBits()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 890 if (Upper.getActiveBits() > DstTySize || Upper.countr_one() == DstTySize) in truncate() 2117 (Max.countr_one() < BitWidth - LCPLength ? 1 : 0); in getUnsignedPopCountRange()
|