Home
last modified time | relevance | path

Searched refs:countLeadingOnes (Results 1 – 21 of 21) sorted by relevance

/openbsd/src/gnu/llvm/llvm/lib/Target/RISCV/MCTargetDesc/
DRISCVMatInt.cpp158 unsigned LeadingOnes = countLeadingOnes((uint64_t)Val); in extractRotateInfo()
166 unsigned LowerLeadingOnes = countLeadingOnes(Lo_32(Val)); in extractRotateInfo()
/openbsd/src/gnu/llvm/llvm/include/llvm/Support/
DKnownBits.h244 return Zero.countLeadingOnes(); in countMinLeadingZeros()
249 return One.countLeadingOnes(); in countMinLeadingOnes()
DMathExtras.h340 template <typename T> unsigned countLeadingOnes(T Value) { in countLeadingOnes() function
/openbsd/src/gnu/llvm/llvm/lib/Target/ARM/MCTargetDesc/
DARMUnwindOpAsm.cpp114 auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
/openbsd/src/gnu/llvm/llvm/include/llvm/ADT/
DAPInt.h446 unsigned LO = countLeadingOnes(); in isNegatedPowerOf2()
1568 unsigned countLeadingOnes() const { in countLeadingOnes() function
1572 return llvm::countLeadingOnes(U.VAL << (APINT_BITS_PER_WORD - BitWidth)); in countLeadingOnes()
1580 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
DSmallBitVector.h270 return NumBaseBits - countLeadingOnes(Bits) - 1; in find_last_unset()
DBitVector.h284 (CurrentWord + 1) * BITWORD_SIZE - countLeadingOnes(Copy) - 1; in find_last_unset_in()
/openbsd/src/gnu/llvm/llvm/lib/Target/VE/
DVE.h454 return countLeadingOnes(Val); // (m)1 in val2MImm()
/openbsd/src/gnu/llvm/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AddressingModes.h248 unsigned CLO = countLeadingOnes(Imm); in processLogicalImmediate()
/openbsd/src/gnu/llvm/llvm/lib/Support/
DKnownBits.cpp108 unsigned N = (Zero | Val).countLeadingOnes(); in makeGE()
DAPInt.cpp649 unsigned Count = llvm::countLeadingOnes(U.pVal[i] << shift); in countLeadingOnesSlowCase()
655 Count += llvm::countLeadingOnes(U.pVal[i]); in countLeadingOnesSlowCase()
1994 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp812 BitWidth, LHSKnown.Zero.countLeadingOnes() + RHSTrailingZeros)); in SimplifyDemandedUseBits()
968 CTZ >= C->getBitWidth() - C->countLeadingOnes()) in SimplifyDemandedUseBits()
DInstCombineCompares.cpp1061 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes(); in foldICmpShrConstConst()
1478 if ((Known.Zero | Known.One).countLeadingOnes() >= SrcBits - DstBits) { in foldICmpTruncConstant()
DInstructionCombining.cpp3249 LeadingKnownOnes, C.getCaseValue()->getValue().countLeadingOnes()); in visitSwitchInst()
DInstCombineAndOrXor.cpp1913 if (C->countLeadingOnes() < LastOneMath) in canonicalizeLogicFirst()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
DGISelKnownBits.cpp753 return std::max(FirstAnswer, Mask.countLeadingOnes()); in computeNumSignBits()
DCombinerHelper.cpp1682 unsigned MinLeadingZeros = KB->getKnownZeroes(ExtSrc).countLeadingOnes(); in matchCombineShlOfExtend()
/openbsd/src/gnu/llvm/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp942 unsigned LO = countLeadingOnes<uint64_t>(Imm); in selectI64ImmDirect()
970 unsigned FO = countLeadingOnes<uint64_t>(Imm << LZ); in selectI64ImmDirect()
1171 unsigned FO = countLeadingOnes<uint64_t>(LZ == 64 ? 0 : (Imm << LZ)); in selectI64ImmDirectPrefix()
/openbsd/src/gnu/llvm/llvm/lib/Target/Hexagon/
DHexagonConstPropagation.cpp1692 Count = A1.countLeadingOnes(); in evaluateCLBi()
/openbsd/src/gnu/llvm/llvm/lib/Analysis/
DValueTracking.cpp7158 unsigned ShiftAmount = C->countLeadingOnes() - 1; in setLimitsForBinOp()
/openbsd/src/gnu/llvm/llvm/lib/Target/X86/
DX86ISelLowering.cpp11253 unsigned NumUpperUndefsOrZeros = UndefOrZeroMask.countLeadingOnes(); in LowerBUILD_VECTOR()
11258 bool UndefUpper = UndefMask.countLeadingOnes() >= UpperElems; in LowerBUILD_VECTOR()
13882 unsigned ZeroHi = Zeroable.countLeadingOnes(); in lowerShuffleAsByteShiftMask()
17925 if (Zeroable.countLeadingOnes() < (Mask.size() - 8)) in lowerShuffleAsVTRUNCAndUnpack()
19510 if ((int)Zeroable.countLeadingOnes() >= (NumElts - SubvecElts)) { in lower1BitShuffle()