Home
last modified time | relevance | path

Searched refs:countl_one (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dbit.cppm
/freebsd/contrib/llvm-project/libcxx/include/__bit/
H A Dcountl.h67 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int countl_one(_Tp __t) noexcept { in countl_one() function
/freebsd/contrib/llvm-project/libc/src/__support/wchar/
H A Dcharacter_converter.cpp60 uint8_t num_ones = static_cast<uint8_t>(cpp::countl_one(utf8_byte)); in push()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h241 unsigned countMinLeadingZeros() const { return Zero.countl_one(); } in countMinLeadingZeros()
244 unsigned countMinLeadingOnes() const { return One.countl_one(); } in countMinLeadingOnes()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMUnwindOpAsm.cpp114 auto RangeLen = llvm::countl_one(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbit45 constexpr int countl_one(T x) noexcept; // C++20
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h454 unsigned LO = countl_one(); in isNegatedPowerOf2()
1615 unsigned countl_one() const { in countl_one() function
1619 return llvm::countl_one(U.VAL << (APINT_BITS_PER_WORD - BitWidth)); in countl_one()
1624 unsigned countLeadingOnes() const { return countl_one(); } in countLeadingOnes()
1629 return isNegative() ? countl_one() : countl_zero(); in getNumSignBits()
H A Dbit.h247 template <typename T> [[nodiscard]] int countl_one(T Value) { in countl_one() function
H A DSmallBitVector.h270 return NumBaseBits - llvm::countl_one(Bits) - 1; in find_last_unset()
H A DBitVector.h291 (CurrentWord + 1) * BITWORD_SIZE - llvm::countl_one(Copy) - 1; in find_last_unset_in()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp92 unsigned NumBits = MinVal.trunc(BitWidth - 1).countl_one(); in computeForAddSub()
97 KnownOut.One.setHighBits(MinVal.countl_one()); in computeForAddSub()
128 unsigned NumBits = MinVal.trunc(BitWidth - 1).countl_one(); in computeForAddSub()
178 unsigned N = (Zero | Val).countl_one(); in makeGE()
H A DAPInt.cpp688 unsigned Count = llvm::countl_one(U.pVal[i] << shift); in countLeadingOnesSlowCase()
694 Count += llvm::countl_one(U.pVal[i]); in countLeadingOnesSlowCase()
2000 Overflow = ShAmt >= countl_one(); in sshl_ov()
/freebsd/contrib/llvm-project/libc/src/__support/
H A Dmath_extras.h129 : cpp::countl_one(value) + 1; in first_leading_zero()
H A Dbig_int.h328 DECLARE_COUNTBIT(countl_one, N - i - 1) // iterating backward
1252 countl_one(T value) {
1253 return multiword::countl_one(value.val);
1364 : cpp::countl_one(value) + 1;
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp190 unsigned LeadingOnes = llvm::countl_one((uint64_t)Val); in extractRotateInfo()
198 unsigned LowerLeadingOnes = llvm::countl_one(Lo_32(Val)); in extractRotateInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVE.h363 return llvm::countl_one(Val); // (m)1 in val2MImm()
/freebsd/contrib/llvm-project/libc/src/__support/CPP/
H A Dbit.h164 countl_one(T value) { in countl_one() function
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCInstructionSelector.cpp295 unsigned LO = llvm::countl_one<uint64_t>(Imm); in selectI64ImmDirect()
319 unsigned FO = llvm::countl_one<uint64_t>(Imm << LZ); in selectI64ImmDirect()
/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dformatter_output.h158 std::size_t __bytes = std::countl_one(static_cast<unsigned char>(__value.__data[0])); in requires()
H A Dunicode.h163 switch (std::countl_one(static_cast<unsigned char>(*__first_))) { in __consume()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h247 unsigned CLO = llvm::countl_one(Imm); in processLogicalImmediate()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp1669 if (isAllNegative() && OtherMax.ule(Min.countl_one())) { in shl()
2134 ConstantRange CR1 = ConstantRange(APInt(BitWidth, Lower.countl_one()), in ctpop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1095 CTZ >= C->getBitWidth() - C->countl_one()) in SimplifyDemandedUseBits()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelValueTracking.cpp2046 return std::max(FirstAnswer, Mask.countl_one()); in computeNumSignBits()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp1024 unsigned LO = llvm::countl_one<uint64_t>(Imm); in selectI64ImmDirect()
1052 unsigned FO = llvm::countl_one<uint64_t>(Imm << LZ); in selectI64ImmDirect()
1265 unsigned FO = llvm::countl_one<uint64_t>(LZ == 64 ? 0 : (Imm << LZ)); in selectI64ImmDirectPrefix()

12