Home
last modified time | relevance | path

Searched refs:countr_zero (Results 1 – 25 of 149) sorted by relevance

123456

/freebsd/contrib/llvm-project/libc/src/__support/CPP/
H A Dbit.h81 countr_zero(T value) { in countr_zero() function
87 countr_zero(T value) { in countr_zero() function
107 ADD_SPECIALIZATION(countr_zero, unsigned short, __builtin_ctzs) in ADD_SPECIALIZATION() argument
109 ADD_SPECIALIZATION(countr_zero, unsigned int, __builtin_ctz) in ADD_SPECIALIZATION()
110 ADD_SPECIALIZATION(countr_zero, unsigned long, __builtin_ctzl) in ADD_SPECIALIZATION()
111 ADD_SPECIALIZATION(countr_zero, unsigned long long, __builtin_ctzll) in ADD_SPECIALIZATION()
178 return cpp::countr_zero<T>(static_cast<T>(~value)); in countr_one()
/freebsd/contrib/llvm-project/libc/src/__support/GPU/
H A Dallocator.cpp273 if (gpu::get_lane_id() == static_cast<uint32_t>(cpp::countr_zero(match))) in allocate()
276 before = gpu::shuffle(mask, cpp::countr_zero(match), before); in allocate()
410 if (gpu::get_lane_id() == uint32_t(cpp::countr_zero(uniform))) in try_lock()
413 result = gpu::shuffle(lane_mask, cpp::countr_zero(uniform), result); in try_lock()
414 count = gpu::shuffle(lane_mask, cpp::countr_zero(uniform), count); in try_lock()
423 if (gpu::get_lane_id() == uint32_t(cpp::countr_zero(uniform))) in try_lock()
436 if (gpu::get_lane_id() == uint32_t(cpp::countr_zero(mask)) && in unlock()
475 lane_mask, cpp::countr_zero(available & uniform), candidate); in find_slab()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAddressingModes.h121 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 Dcountr.h67 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int countr_zero(_Tp __t) noexcept { in countr_zero() function
73 …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 DRISCVMatInt.cpp144 ShiftAmount = llvm::countr_zero((uint64_t)Val); in generateInstSeqImpl()
265 unsigned TrailingZeros = llvm::countr_zero((uint64_t)Val); in generateInstSeq()
359 TmpSeq.emplace_back(RISCV::BSETI, llvm::countr_zero(Hi)); in generateInstSeq()
387 TmpSeq.emplace_back(RISCV::BCLRI, llvm::countr_zero(Hi)); in generateInstSeq()
519 unsigned TzLo = llvm::countr_zero((uint64_t)LoVal); in generateTwoRegInstSeq()
520 unsigned TzHi = llvm::countr_zero(Tmp); in generateTwoRegInstSeq()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTargetBuiltins.h360 EltTypeShift = llvm::countr_zero(EltTypeMask); in SVETypeFlags()
361 MemEltTypeShift = llvm::countr_zero(MemEltTypeMask); in SVETypeFlags()
362 MergeTypeShift = llvm::countr_zero(MergeTypeMask); in SVETypeFlags()
363 SplatOperandMaskShift = llvm::countr_zero(SplatOperandMask); in SVETypeFlags()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp275 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/libc/src/__support/
H A Dmath_extras.h143 : cpp::countr_zero(static_cast<T>(~value)) + 1; in first_trailing_zero()
149 return value == 0 ? 0 : cpp::countr_zero(value) + 1; in first_trailing_one()
H A Dbig_int.h325 DECLARE_COUNTBIT(countr_zero, i) // iterating forward
1238 countr_zero(const T &value) {
1239 return multiword::countr_zero(value.val);
1379 : cpp::countr_zero(~value) + 1;
1386 return value == 0 ? 0 : cpp::countr_zero(value) + 1;
/freebsd/contrib/llvm-project/libc/src/__support/HashTable/
H A Dbitmask.h47 return cpp::countr_zero<T>(word) / WORD_STRIDE; in lowest_set_bit_nonzero()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/Utils/
H A DARMBaseInfo.cpp20 assert(llvm::countr_zero((unsigned)BlockMask) != 0 && "Mask is already full"); in expandPredBlockMask()
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dbit.cppm
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp626 unsigned CTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits()
628 if (match(I->getOperand(1), m_APInt(C)) && C->countr_zero() == CTZ) { in SimplifyDemandedUseBits()
674 if (DemandedMask.countr_zero() >= ShiftAmt) { in SimplifyDemandedUseBits()
676 unsigned NumHiDemandedBits = BitWidth - DemandedMask.countr_zero(); in SimplifyDemandedUseBits()
758 unsigned NumHiDemandedBits = BitWidth - DemandedMask.countr_zero(); in SimplifyDemandedUseBits()
784 Factor->countr_zero() >= ShiftAmt) { in SimplifyDemandedUseBits()
812 unsigned NumHiDemandedBits = BitWidth - DemandedMask.countr_zero(); in SimplifyDemandedUseBits()
867 unsigned RHSTrailingZeros = SA->countr_zero(); in SimplifyDemandedUseBits()
927 unsigned NTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits()
1081 unsigned CTZ = DemandedMask.countr_zero(); in SimplifyDemandedUseBits()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCELFExtras.h31 const int Shift = llvm::countr_zero(OffsetMask); in encodeCrel()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A Dbit.h157 template <typename T> [[nodiscard]] int countr_zero(T Val) { in countr_zero() function
263 return llvm::countr_zero<T>(~Value); in countr_one()
H A DSparseBitVector.h131 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 DSmallBitVector.h235 return llvm::countr_zero(Bits); in find_first()
284 return llvm::countr_zero(Bits); in find_next()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBasicBlockInfo.h83 Bits = llvm::countr_zero(Size); in internalKnownBits()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DExecutionDomainFix.h105 return llvm::countr_zero(AvailableDomains); in getFirstDomain()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsAnalyzeImmediate.cpp46 unsigned Shamt = llvm::countr_zero(Imm); in GetInstSeqLsSLL()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h267 unsigned countMaxTrailingZeros() const { return One.countr_zero(); } in countMaxTrailingZeros()
270 unsigned countMaxTrailingOnes() const { return Zero.countr_zero(); } in countMaxTrailingOnes()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DDivisionByConstantInfo.cpp136 unsigned PreShift = D.countr_zero(); in get()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbit47 constexpr int countr_zero(T x) noexcept; // C++20
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/generic/
H A DFMod.h246 int tail_zeros_m_y = cpp::countr_zero(m_y); in eval_internal()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FloatingPoint.cpp950 unsigned KReg = llvm::countr_zero(Kills); in adjustLiveRegs()
951 unsigned DReg = llvm::countr_zero(Defs); in adjustLiveRegs()
975 unsigned KReg = llvm::countr_zero(Kills); in adjustLiveRegs()
983 unsigned DReg = llvm::countr_zero(Defs); in adjustLiveRegs()
1749 unsigned FPReg = llvm::countr_zero(FPKills); in handleSpecialFP()

123456