Searched refs:countLeadingOnes (Results 1 – 21 of 21) sorted by relevance
158 unsigned LeadingOnes = countLeadingOnes((uint64_t)Val); in extractRotateInfo()166 unsigned LowerLeadingOnes = countLeadingOnes(Lo_32(Val)); in extractRotateInfo()
244 return Zero.countLeadingOnes(); in countMinLeadingZeros()249 return One.countLeadingOnes(); in countMinLeadingOnes()
340 template <typename T> unsigned countLeadingOnes(T Value) { in countLeadingOnes() function
114 auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
446 unsigned LO = countLeadingOnes(); in isNegatedPowerOf2()1568 unsigned countLeadingOnes() const { in countLeadingOnes() function1572 return llvm::countLeadingOnes(U.VAL << (APINT_BITS_PER_WORD - BitWidth)); in countLeadingOnes()1580 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
270 return NumBaseBits - countLeadingOnes(Bits) - 1; in find_last_unset()
284 (CurrentWord + 1) * BITWORD_SIZE - countLeadingOnes(Copy) - 1; in find_last_unset_in()
454 return countLeadingOnes(Val); // (m)1 in val2MImm()
248 unsigned CLO = countLeadingOnes(Imm); in processLogicalImmediate()
108 unsigned N = (Zero | Val).countLeadingOnes(); in makeGE()
649 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()
812 BitWidth, LHSKnown.Zero.countLeadingOnes() + RHSTrailingZeros)); in SimplifyDemandedUseBits()968 CTZ >= C->getBitWidth() - C->countLeadingOnes()) in SimplifyDemandedUseBits()
1061 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes(); in foldICmpShrConstConst()1478 if ((Known.Zero | Known.One).countLeadingOnes() >= SrcBits - DstBits) { in foldICmpTruncConstant()
3249 LeadingKnownOnes, C.getCaseValue()->getValue().countLeadingOnes()); in visitSwitchInst()
1913 if (C->countLeadingOnes() < LastOneMath) in canonicalizeLogicFirst()
753 return std::max(FirstAnswer, Mask.countLeadingOnes()); in computeNumSignBits()
1682 unsigned MinLeadingZeros = KB->getKnownZeroes(ExtSrc).countLeadingOnes(); in matchCombineShlOfExtend()
942 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()
1692 Count = A1.countLeadingOnes(); in evaluateCLBi()
7158 unsigned ShiftAmount = C->countLeadingOnes() - 1; in setLimitsForBinOp()
11253 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()