Home
last modified time | relevance | path

Searched refs:countl_one (Results 1 – 25 of 29) 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.h103 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int countl_one(_Tp __t) noexcept { in countl_one() function
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h237 unsigned countMinLeadingZeros() const { return Zero.countl_one(); } in countMinLeadingZeros()
240 unsigned countMinLeadingOnes() const { return One.countl_one(); } in countMinLeadingOnes()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h434 unsigned LO = countl_one(); in isNegatedPowerOf2()
1574 unsigned countl_one() const { in countl_one() function
1578 return llvm::countl_one(U.VAL << (APINT_BITS_PER_WORD - BitWidth)); in countl_one()
1583 unsigned countLeadingOnes() const { return countl_one(); } in countLeadingOnes()
1588 return isNegative() ? countl_one() : countl_zero(); in getNumSignBits()
H A Dbit.h290 /// Ex. countl_one(0xFF0FFF00) == 8.
294 template <typename T> [[nodiscard]] int countl_one(T Value) {
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/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/lib/Support/
H A DKnownBits.cpp83 unsigned NumBits = MinVal.trunc(BitWidth - 1).countl_one(); in computeForAddSub()
88 KnownOut.One.setHighBits(MinVal.countl_one()); in computeForAddSub()
119 unsigned NumBits = MinVal.trunc(BitWidth - 1).countl_one(); in computeForAddSub()
169 unsigned N = (Zero | Val).countl_one(); in makeGE()
H A DAPInt.cpp657 unsigned Count = llvm::countl_one(U.pVal[i] << shift); in countLeadingOnesSlowCase()
663 Count += llvm::countl_one(U.pVal[i]); in countLeadingOnesSlowCase()
1970 Overflow = ShAmt >= countl_one(); in sshl_ov()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp160 unsigned LeadingOnes = llvm::countl_one((uint64_t)Val); in extractRotateInfo()
168 unsigned LowerLeadingOnes = llvm::countl_one(Lo_32(Val)); in extractRotateInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVE.h362 return llvm::countl_one(Val); // (m)1 in val2MImm()
/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.h175 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/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp837 return std::max(FirstAnswer, Mask.countl_one()); in computeNumSignBits()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp1587 if (isAllNegative() && OtherMax.ule(Min.countl_one())) { in shl()
1949 ConstantRange CR1 = ConstantRange(APInt(BitWidth, Lower.countl_one()), in ctpop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1089 CTZ >= C->getBitWidth() - C->countl_one()) in SimplifyDemandedUseBits()
H A DInstCombineCompares.cpp997 Shift = AP1.countl_one() - AP2.countl_one(); in foldICmpShrConstConst()
1468 if ((Known.Zero | Known.One).countl_one() >= SrcBits - DstBits) { in foldICmpTruncConstant()
H A DInstructionCombining.cpp3837 std::min(LeadingKnownOnes, C.getCaseValue()->getValue().countl_one()); in visitSwitchInst()
H A DInstCombineAndOrXor.cpp2145 if (C->countl_one() < LastOneMath) in canonicalizeLogicFirst()
/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()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonConstPropagation.cpp1691 Count = A1.countl_one(); in evaluateCLBi()

12