Home
last modified time | relevance | path

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

123456

/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.h69 [[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 DRISCVMatInt.cpp114 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 DTargetBuiltins.h259 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 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/llvm/lib/Target/ARM/Utils/
H A DARMBaseInfo.cpp22 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/include/llvm/MC/
H A DMCELFExtras.h31 const int Shift = llvm::countr_zero(OffsetMask); in encodeCrel()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp611 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 DARMBasicBlockInfo.h83 Bits = llvm::countr_zero(Size); in internalKnownBits()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A Dbit.h215 template <typename T> [[nodiscard]] int countr_zero(T Val) {
310 return llvm::countr_zero<T>(~Value);
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 DAPInt.h435 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 DSmallBitVector.h235 return llvm::countr_zero(Bits); in find_first()
284 return llvm::countr_zero(Bits); in find_next()
H A DConcurrentHashtable.h118 countr_zero(PowerOf2Ceil(EstimatedSize / InitialNumberOfBuckets)) >> in MultiThreadAllocator()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DExecutionDomainFix.h105 return llvm::countr_zero(AvailableDomains); in getFirstDomain()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h263 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 DMipsAnalyzeImmediate.cpp46 unsigned Shamt = llvm::countr_zero(Imm); in GetInstSeqLsSLL()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbit47 constexpr int countr_zero(T x) noexcept; // C++20
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DDivisionByConstantInfo.cpp136 unsigned PreShift = D.countr_zero(); in get()
H A DAPInt.cpp171 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 DResourcePressureView.cpp62 R2VIndex += llvm::countr_zero(RR.second); in onEvent()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FloatingPoint.cpp933 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 DAMDGPUImageIntrinsicOptimizer.cpp231 unsigned NewMaskVal = 1 << countr_zero(DMaskVal); in optimizeSection()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp274 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()

123456