/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
H A D | ARMAddressingModes.h | 121 unsigned TZ = llvm::countr_zero(Imm); in getSOImmValRotate() 134 unsigned TZ2 = llvm::countr_zero(Imm & ~63U); in getSOImmValRotate() 216 return llvm::countr_zero(Imm); in getThumbImmValShift() 235 return llvm::countr_zero(Imm); in getThumbImm16ValShift() 324 unsigned RotAmt = llvm::countr_zero(V); in getT2SOImmValRotate()
|
/freebsd/contrib/llvm-project/libcxx/include/__bit/ |
H A D | countr.h | 69 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int countr_zero(_Tp __t) noexcept { in countr_zero() function 75 …return __t != numeric_limits<_Tp>::max() ? std::countr_zero(static_cast<_Tp>(~__t)) : numeric_limi… in countr_one()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMatInt.cpp | 114 ShiftAmount = llvm::countr_zero((uint64_t)Val); in generateInstSeqImpl() 235 unsigned TrailingZeros = llvm::countr_zero((uint64_t)Val); in generateInstSeq() 329 TmpSeq.emplace_back(RISCV::BSETI, llvm::countr_zero(Hi)); in generateInstSeq() 350 TmpSeq.emplace_back(RISCV::BCLRI, llvm::countr_zero(Hi)); in generateInstSeq() 482 unsigned TzLo = llvm::countr_zero((uint64_t)LoVal); in generateTwoRegInstSeq() 483 unsigned TzHi = llvm::countr_zero(Tmp); in generateTwoRegInstSeq()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | TargetBuiltins.h | 259 EltTypeShift = llvm::countr_zero(EltTypeMask); in SVETypeFlags() 260 MemEltTypeShift = llvm::countr_zero(MemEltTypeMask); in SVETypeFlags() 261 MergeTypeShift = llvm::countr_zero(MergeTypeMask); in SVETypeFlags() 262 SplatOperandMaskShift = llvm::countr_zero(SplatOperandMask); in SVETypeFlags()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ExpandImm.cpp | 275 uint32_t Position = llvm::countr_zero(RemainingBits); in maximalLogicalImmWithin() 428 uint64_t SmallOnes = RepeatedOnesTable[countr_zero(SmallSize)]; in tryEorOfLogicalImmediates() 435 int Rotation = countr_zero(RunStarts); in tryEorOfLogicalImmediates() 457 Rotation += countr_zero(rotr<uint64_t>(RunStarts, Rotation) & ~1); in tryEorOfLogicalImmediates() 494 unsigned TZ = llvm::countr_zero(Imm); in expandMOVImmSimple()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/Utils/ |
H A D | ARMBaseInfo.cpp | 22 assert(llvm::countr_zero((unsigned)BlockMask) != 0 && "Mask is already full"); in expandPredBlockMask()
|
/freebsd/contrib/llvm-project/libcxx/modules/std/ |
H A D | bit.cppm |
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCELFExtras.h | 31 const int Shift = llvm::countr_zero(OffsetMask); in encodeCrel()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 611 unsigned CTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 613 if (match(I->getOperand(1), m_APInt(C)) && C->countr_zero() == CTZ) { in SimplifyDemandedUseBits() 659 if (DemandedMask.countr_zero() >= ShiftAmt) { in SimplifyDemandedUseBits() 661 unsigned NumHiDemandedBits = BitWidth - DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 743 unsigned NumHiDemandedBits = BitWidth - DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 788 unsigned NumHiDemandedBits = BitWidth - DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 843 unsigned RHSTrailingZeros = SA->countr_zero(); in SimplifyDemandedUseBits() 924 unsigned NTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 1075 unsigned CTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 1087 unsigned CTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMBasicBlockInfo.h | 83 Bits = llvm::countr_zero(Size); in internalKnownBits()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | bit.h | 215 template <typename T> [[nodiscard]] int countr_zero(T Val) { 310 return llvm::countr_zero<T>(~Value);
|
H A D | SparseBitVector.h | 131 return i * BITWORD_SIZE + llvm::countr_zero(Bits[i]); in find_first() 162 return WordPos * BITWORD_SIZE + llvm::countr_zero(Copy); in find_next() 167 return i * BITWORD_SIZE + llvm::countr_zero(Bits[i]); in find_next()
|
H A D | APInt.h | 435 unsigned TZ = countr_zero(); in isNegatedPowerOf2() 495 return (Ones + LeadZ + countr_zero()) == BitWidth; in isShiftedMask() 1598 unsigned countr_zero() const { in countr_zero() function 1600 unsigned TrailingZeros = llvm::countr_zero(U.VAL); in countr_zero() 1606 unsigned countTrailingZeros() const { return countr_zero(); } in countTrailingZeros()
|
H A D | SmallBitVector.h | 235 return llvm::countr_zero(Bits); in find_first() 284 return llvm::countr_zero(Bits); in find_next()
|
H A D | ConcurrentHashtable.h | 118 countr_zero(PowerOf2Ceil(EstimatedSize / InitialNumberOfBuckets)) >> in MultiThreadAllocator()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | ExecutionDomainFix.h | 105 return llvm::countr_zero(AvailableDomains); in getFirstDomain()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 263 unsigned countMaxTrailingZeros() const { return One.countr_zero(); } in countMaxTrailingZeros() 266 unsigned countMaxTrailingOnes() const { return Zero.countr_zero(); } in countMaxTrailingOnes()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsAnalyzeImmediate.cpp | 46 unsigned Shamt = llvm::countr_zero(Imm); in GetInstSeqLsSLL()
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | bit | 47 constexpr int countr_zero(T x) noexcept; // C++20
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | DivisionByConstantInfo.cpp | 136 unsigned PreShift = D.countr_zero(); in get()
|
H A D | APInt.cpp | 171 const unsigned TrailingZeroes = countr_zero(); in isAligned() 677 Count += llvm::countr_zero(U.pVal[i]); in countTrailingZerosSlowCase() 778 unsigned Pow2_A = A.countr_zero(); in GreatestCommonDivisor() 779 unsigned Pow2_B = B.countr_zero(); in GreatestCommonDivisor() 800 A.lshrInPlace(A.countr_zero() - Pow2); in GreatestCommonDivisor() 803 B.lshrInPlace(B.countr_zero() - Pow2); in GreatestCommonDivisor() 2352 unsigned lsb = llvm::countr_zero(parts[i]); in tcLSB()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/Views/ |
H A D | ResourcePressureView.cpp | 62 R2VIndex += llvm::countr_zero(RR.second); in onEvent()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FloatingPoint.cpp | 933 unsigned KReg = llvm::countr_zero(Kills); in adjustLiveRegs() 934 unsigned DReg = llvm::countr_zero(Defs); in adjustLiveRegs() 958 unsigned KReg = llvm::countr_zero(Kills); in adjustLiveRegs() 966 unsigned DReg = llvm::countr_zero(Defs); in adjustLiveRegs() 1731 unsigned FPReg = llvm::countr_zero(FPKills); in handleSpecialFP()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUImageIntrinsicOptimizer.cpp | 231 unsigned NewMaskVal = 1 << countr_zero(DMaskVal); in optimizeSection()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/ |
H A D | RISCVInstructionSelector.cpp | 274 unsigned Trailing = Mask.countr_zero(); in selectSHXADDOp() 316 unsigned Trailing = Mask.countr_zero(); in selectSHXADDOp() 366 unsigned Trailing = Mask.countr_zero(); in selectSHXADD_UWOp() 843 MIB.addImm(llvm::countr_zero(C)); in renderTrailingZeros()
|