| /freebsd-14.2/contrib/llvm-project/libcxx/include/__bit/ |
| H A D | countr.h | 41 _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr int countr_zero(_Tp __t) noexcept { in countr_zero() function 64 …return __t != numeric_limits<_Tp>::max() ? std::countr_zero(static_cast<_Tp>(~__t)) : numeric_limi… in countr_one()
|
| /freebsd-14.2/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-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVMatInt.cpp | 113 ShiftAmount = llvm::countr_zero((uint64_t)Val); in generateInstSeqImpl() 232 unsigned TrailingZeros = llvm::countr_zero((uint64_t)Val); in generateInstSeq() 356 unsigned Bit = llvm::countr_zero(Hi); in generateInstSeq() 453 unsigned TzLo = llvm::countr_zero((uint64_t)LoVal); in generateTwoRegInstSeq() 454 unsigned TzHi = llvm::countr_zero(Tmp); in generateTwoRegInstSeq()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/modules/std/ |
| H A D | bit.inc | 33 using std::countr_zero;
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMBasicBlockInfo.h | 83 Bits = llvm::countr_zero(Size); in internalKnownBits()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 613 unsigned CTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 615 if (match(I->getOperand(1), m_APInt(C)) && C->countr_zero() == CTZ) { in SimplifyDemandedUseBits() 653 if (DemandedMask.countr_zero() >= ShiftAmt && in SimplifyDemandedUseBits() 708 unsigned NumHiDemandedBits = BitWidth - DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 754 unsigned NumHiDemandedBits = BitWidth - DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 819 unsigned RHSTrailingZeros = SA->countr_zero(); in SimplifyDemandedUseBits() 910 unsigned NTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 1024 unsigned CTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits() 1036 unsigned CTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | ExecutionDomainFix.h | 105 return llvm::countr_zero(AvailableDomains); in getFirstDomain()
|
| /freebsd-14.2/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 | 433 unsigned TZ = countr_zero(); in isNegatedPowerOf2() 493 return (Ones + LeadZ + countr_zero()) == BitWidth; in isShiftedMask() 1583 unsigned countr_zero() const { in countr_zero() function 1585 unsigned TrailingZeros = llvm::countr_zero(U.VAL); in countr_zero() 1591 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-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 265 unsigned countMaxTrailingZeros() const { return One.countr_zero(); } in countMaxTrailingZeros() 268 unsigned countMaxTrailingOnes() const { return Zero.countr_zero(); } in countMaxTrailingOnes()
|
| H A D | MathExtras.h | 282 MaskIdx = llvm::countr_zero(Value); in isShiftedMask_32() 295 MaskIdx = llvm::countr_zero(Value); in isShiftedMask_64()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInstrInfoZb.td | 74 return CurDAG->getTargetConstant(llvm::countr_zero(N->getZExtValue()), 140 return CurDAG->getTargetConstant(llvm::countr_zero(~N->getZExtValue()), 172 return C > 3 && (C >> llvm::countr_zero(C)) == 3; 177 return C > 5 && (C >> llvm::countr_zero(C)) == 5; 182 return C > 9 && (C >> llvm::countr_zero(C)) == 9; 188 unsigned Shift = llvm::countr_zero(C); 195 unsigned Shift = llvm::countr_zero(C); 202 unsigned Shift = llvm::countr_zero(C); 264 unsigned TrailingZeros = Imm.countr_zero();
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsAnalyzeImmediate.cpp | 46 unsigned Shamt = llvm::countr_zero(Imm); in GetInstSeqLsSLL()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | DivisionByConstantInfo.cpp | 135 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() 2363 unsigned lsb = llvm::countr_zero(parts[i]); in tcLSB()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/ |
| H A D | bit | 47 constexpr int countr_zero(T x) noexcept; // C++20
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-mca/Views/ |
| H A D | ResourcePressureView.cpp | 62 R2VIndex += llvm::countr_zero(RR.second); in onEvent()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86FloatingPoint.cpp | 932 unsigned KReg = llvm::countr_zero(Kills); in adjustLiveRegs() 933 unsigned DReg = llvm::countr_zero(Defs); in adjustLiveRegs() 957 unsigned KReg = llvm::countr_zero(Kills); in adjustLiveRegs() 965 unsigned DReg = llvm::countr_zero(Defs); in adjustLiveRegs() 1729 unsigned FPReg = llvm::countr_zero(FPKills); in handleSpecialFP()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUImageIntrinsicOptimizer.cpp | 231 unsigned NewMaskVal = 1 << countr_zero(DMaskVal); in optimizeSection()
|