| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCTargetDesc.h | 82 MB = llvm::countl_zero(Val); in isRunOfOnes() 84 ME = llvm::countl_zero((Val - 1) ^ Val); in isRunOfOnes() 90 ME = llvm::countl_zero(Val) - 1; in isRunOfOnes() 92 MB = llvm::countl_zero((Val - 1) ^ Val) + 1; in isRunOfOnes() 106 MB = llvm::countl_zero(Val); in isRunOfOnes64() 108 ME = llvm::countl_zero((Val - 1) ^ Val); in isRunOfOnes64() 114 ME = llvm::countl_zero(Val) - 1; in isRunOfOnes64() 116 MB = llvm::countl_zero((Val - 1) ^ Val) + 1; in isRunOfOnes64()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/__bit/ |
| H A D | countl.h | 87 _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr int countl_zero(_Tp __t) noexcept { in countl_zero() function 93 …return __t != numeric_limits<_Tp>::max() ? std::countl_zero(static_cast<_Tp>(~__t)) : numeric_limi… in countl_one()
|
| H A D | bit_log2.h | 27 return numeric_limits<_Tp>::digits - 1 - std::countl_zero(__t); in __bit_log2()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | ScaledNumber.cpp | 47 unsigned LeadingZeros = llvm::countl_zero(Upper); in multiply64() 65 if (int Zeros = llvm::countl_zero(Dividend64)) { in divide32() 97 if (int Zeros = llvm::countl_zero(Dividend)) { in divide64()
|
| H A D | APInt.cpp | 637 Count += llvm::countl_zero(V); in countLeadingZerosSlowCase() 1329 unsigned shift = llvm::countl_zero(v[n - 1]); in KnuthDiv() 1978 if (countl_zero() + RHS.countl_zero() + 2 <= BitWidth) { in umul_ov() 2004 Overflow = ShAmt >= countl_zero(); in sshl_ov() 2020 Overflow = ShAmt > countl_zero(); in ushl_ov() 2983 return A.getBitWidth() - ((A ^ B).countl_zero() + 1); in GetMostSignificantDifferentBit()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | bit.h | 281 template <typename T> [[nodiscard]] int countl_zero(T Val) { 297 return llvm::countl_zero<T>(~Value); 320 return std::numeric_limits<T>::digits - llvm::countl_zero(Value);
|
| H A D | APInt.h | 1457 unsigned getActiveBits() const { return BitWidth - countl_zero(); } in getActiveBits() 1542 unsigned countl_zero() const { in countl_zero() function 1545 return llvm::countl_zero(U.VAL) - unusedBits; in countl_zero() 1550 unsigned countLeadingZeros() const { return countl_zero(); } in countLeadingZeros() 1573 return isNegative() ? countl_one() : countl_zero(); in getNumSignBits()
|
| H A D | SmallBitVector.h | 245 return NumBaseBits - llvm::countl_zero(Bits) - 1; in find_last() 319 return NumBaseBits - llvm::countl_zero(Bits) - 1; in find_prev()
|
| H A D | ConcurrentHashtable.h | 148 size_t LeadingZerosNumber = countl_zero(HashMask); in MultiThreadAllocator()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | MathExtras.h | 314 return 31 - llvm::countl_zero(Value); in Log2_32() 320 return 63 - llvm::countl_zero(Value); in Log2_64() 327 return 32 - llvm::countl_zero(Value - 1); in Log2_32_Ceil() 333 return 64 - llvm::countl_zero(Value - 1); in Log2_64_Ceil()
|
| H A D | KnownBits.h | 271 unsigned countMaxLeadingZeros() const { return One.countl_zero(); } in countMaxLeadingZeros() 274 unsigned countMaxLeadingOnes() const { return Zero.countl_zero(); } in countMaxLeadingOnes()
|
| H A D | ScaledNumber.h | 308 int32_t ShiftL = std::min<int32_t>(llvm::countl_zero(LDigits), ScaleDiff); in matchScales() 429 static int countLeadingZeros32(uint32_t N) { return llvm::countl_zero(N); } in countLeadingZeros32() 430 static int countLeadingZeros64(uint64_t N) { return llvm::countl_zero(N); } in countLeadingZeros64()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/modules/std/ |
| H A D | bit.inc | 31 using std::countl_zero;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 188 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyDemandedUseBits() 431 C->ule(DemandedMask.countl_zero())) { in SimplifyDemandedUseBits() 532 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyDemandedUseBits() 574 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyDemandedUseBits() 686 if (unsigned CTLZ = DemandedMask.countl_zero()) { in SimplifyDemandedUseBits() 705 if (DemandedMask.countl_zero() >= ShiftAmt) { in SimplifyDemandedUseBits() 777 if (DemandedMask.countl_zero() <= ShiftAmt) in SimplifyDemandedUseBits() 909 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyDemandedUseBits() 1169 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyMultipleUseDemandedBits() 1188 unsigned NLZ = DemandedMask.countl_zero(); in SimplifyMultipleUseDemandedBits()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | BDCE.cpp | 116 if (Demanded.countl_zero() >= (DestBitSize - SrcBitSize)) { in bitTrackingDCE()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 1485 unsigned EqualLeadingBits = (Min ^ Max).countl_zero(); in shl() 1503 if (OtherMax.ugt(Max.countl_zero())) in shl() 1732 APInt(getBitWidth(), (getUpper() - 1).countl_zero()), in ctlz() 1733 APInt(getBitWidth(), (getLower() + 1).countl_zero() + 1)); in ctlz() 1737 APInt(getBitWidth(), getLower().countl_zero() + 1)); in ctlz() 1745 return getNonEmpty(APInt(getBitWidth(), getUnsignedMax().countl_zero()), in ctlz() 1746 APInt(getBitWidth(), getUnsignedMin().countl_zero() + 1)); in ctlz() 1762 unsigned LCPLength = (Lower ^ (Upper - 1)).countl_zero(); in getUnsignedCountTrailingZerosRange() 1828 unsigned LCPLength = (Lower ^ Max).countl_zero(); in getUnsignedPopCountRange()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/ |
| H A D | bit | 43 constexpr int countl_zero(T x) noexcept; // C++20
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64AddressingModes.h | 300 int len = 31 - llvm::countl_zero((N << 6) | (~imms & 0x3f)); in decodeLogicalImmediate() 329 int len = 31 - llvm::countl_zero((N << 6) | (~imms & 0x3f)); in isValidDecodeLogicalImmediate()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VE.h | 363 return llvm::countl_zero(Val) | 0x40; // (m)0 in val2MImm()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | Integral.h | 147 return llvm::countl_zero<ReprT>(V);
|
| H A D | IntegralAP.h | 146 unsigned countLeadingZeros() const { return V.countl_zero(); } in countLeadingZeros()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMAddressingModes.h | 291 unsigned RotAmt = llvm::countl_zero(V); in getT2SOImmValRotateVal()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/ |
| H A D | PPCInstructionSelector.cpp | 279 uint32_t LoLZ = llvm::countl_zero<uint32_t>(Lo_32(Imm)); in findContiguousZerosAtLeast() 293 unsigned LZ = llvm::countl_zero<uint64_t>(Imm); in selectI64ImmDirect()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | Thumb2InstrInfo.cpp | 399 unsigned RotAmt = llvm::countl_zero(ThisVal); in emitT2RegPlusImmediate() 604 unsigned RotAmt = llvm::countl_zero<unsigned>(Offset); in rewriteT2FrameIndex()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ExpandImm.cpp | 493 unsigned LZ = llvm::countl_zero(Imm); in expandMOVImmSimple()
|