Home
last modified time | relevance | path

Searched refs:countr_one (Results 1 – 25 of 52) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelDAGToDAG.cpp293 if (RHS.countr_one() >= ShAmtBits) { in isUnneededShiftMask()
298 << RHS.countr_one() << "\n"); in isUnneededShiftMask()
303 return (Known.Zero | RHS).countr_one() >= ShAmtBits; in isUnneededShiftMask()
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dbit.cppm
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp243 uint64_t NumOnes = llvm::countr_one(V >> StartPosition); in GetRunOfOnesStartingAt()
293 uint32_t InitialTrailingOnes = llvm::countr_one(UImm); in decomposeIntoOrrOfLogicalImmediates()
438 unsigned RunLength = countr_one(RotatedImm); in tryEorOfLogicalImmediates()
H A DAArch64ISelDAGToDAG.cpp2619 (VT == MVT::i32 ? llvm::countr_one<uint32_t>(AndImm) in isBitfieldExtractOpFromAnd()
2620 : llvm::countr_one<uint64_t>(AndImm)) - in isBitfieldExtractOpFromAnd()
3236 Width = llvm::countr_one(NonZeroBits >> DstLSB); in isBitfieldPositioningOpFromAnd()
3294 Width = llvm::countr_one(ShiftedAndImm); in isSeveralBitsPositioningOpFromShl()
3325 Width = llvm::countr_one(NonZeroBits >> DstLSB); in isBitfieldPositioningOpFromShl()
3389 int LSB = llvm::countr_one(NotKnownZero); in tryBitfieldInsertOpFromOrAndImm()
3470 llvm::countr_one(AndImm >> NumTrailingZeroInShiftedMask); in isWorthFoldingIntoOrrWithShift()
3933 if ((unsigned)llvm::countr_one(MaskImm) < Bits) in tryShiftAmountMod()
/freebsd/contrib/llvm-project/libcxx/include/__bit/
H A Dcountr.h72 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int countr_one(_Tp __t) noexcept { in countr_one() function
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h235 unsigned countMinTrailingZeros() const { return Zero.countr_one(); } in countMinTrailingZeros()
238 unsigned countMinTrailingOnes() const { return One.countr_one(); } in countMinTrailingOnes()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMUnwindOpAsm.cpp80 uint32_t Range = llvm::countr_one(Mask >> 5); // Exclude r4. in EmitRegSave()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbit49 constexpr int countr_one(T x) noexcept; // C++20
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp191 unsigned TrailingOnes = llvm::countr_one((uint64_t)Val); in extractRotateInfo()
197 unsigned UpperTrailingOnes = llvm::countr_one(Hi_32(Val)); in extractRotateInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenExtract.cpp170 uint32_t T = M.countr_one(); in INITIALIZE_PASS_DEPENDENCY()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallBitVector.h257 return llvm::countr_one(Bits); in find_first_unset()
301 return llvm::countr_one(Bits); in find_next_unset()
H A Dbit.h260 template <typename T> [[nodiscard]] int countr_one(T Value) { in countr_one() function
H A DAPInt.h1656 unsigned countr_one() const { in countr_one() function
1658 return llvm::countr_one(U.VAL); in countr_one()
1662 unsigned countTrailingOnes() const { return countr_one(); } in countTrailingOnes()
H A DBitVector.h773 unsigned Result = WordIndex * BITWORD_SIZE + llvm::countr_one(Word); in next_unset_in_word()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h241 CTO = llvm::countr_one(Imm >> I); in processLogicalImmediate()
249 CTO = CLO + llvm::countr_one(Imm) - (64 - Size); in processLogicalImmediate()
/freebsd/contrib/llvm-project/libc/src/__support/CPP/
H A Dbit.h177 countr_one(T value) { in countr_one() function
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FloatingPoint.cpp1066 unsigned N = llvm::countr_one(STReturns); in handleCall()
1655 unsigned NumSTUses = llvm::countr_one(STUses); in handleSpecialFP()
1662 unsigned NumSTDefs = llvm::countr_one(STDefs); in handleSpecialFP()
1673 unsigned NumSTPopped = llvm::countr_one(STPopped); in handleSpecialFP()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIModeRegister.cpp225 unsigned Width = llvm::countr_one<unsigned>(InstrMode.Mask >> Offset); in insertSetreg()
H A DSIShrinkInstructions.cpp554 NewImm = llvm::countr_one(Imm); in shrinkScalarLogicOp()
/freebsd/contrib/llvm-project/libc/src/__support/
H A Dbig_int.h326 DECLARE_COUNTBIT(countr_one, i) // iterating forward
1259 countr_one(T value) {
1260 return multiword::countr_one(value.val);
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp872 unsigned TrailBitsKnown0 = (LHS.Zero | LHS.One).countr_one(); in mul()
873 unsigned TrailBitsKnown1 = (RHS.Zero | RHS.One).countr_one(); in mul()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.cpp1725 int64_t NumBits = countr_one(MaskVal); in tryBFE()
1789 NumBits = llvm::countr_one(MaskVal) - ShiftAmt; in tryBFE()
1792 unsigned NumOnes = llvm::countr_one(MaskVal >> NumZeros); in tryBFE()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCInstructionSelector.cpp294 unsigned TO = llvm::countr_one<uint64_t>(Imm); in selectI64ImmDirect()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp543 unsigned NTZ = (~DemandedMask & RHSKnown.Zero).countr_one(); in SimplifyDemandedUseBits()
586 unsigned NTZ = (~DemandedMask & RHSKnown.Zero).countr_one(); in SimplifyDemandedUseBits()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp890 if (Upper.getActiveBits() > DstTySize || Upper.countr_one() == DstTySize) in truncate()
2117 (Max.countr_one() < BitWidth - LCPLength ? 1 : 0); in getUnsignedPopCountRange()

123