Searched refs:countLeadingOnes (Results 1 – 18 of 18) sorted by relevance
172 return Zero.countLeadingOnes(); in countMinLeadingZeros()177 return One.countLeadingOnes(); in countMinLeadingOnes()
498 unsigned countLeadingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
111 auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
1611 return BitWidth - countLeadingOnes() + 1; in getMinSignedBits()1669 unsigned countLeadingOnes() const { in countLeadingOnes() function1671 return llvm::countLeadingOnes(U.VAL << (APINT_BITS_PER_WORD - BitWidth)); in countLeadingOnes()1678 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
267 return NumBaseBits - countLeadingOnes(Bits) - 1; in find_last_unset()
322 (CurrentWord + 1) * BITWORD_SIZE - countLeadingOnes(Copy) - 1; in find_last_unset_in()
1300 return BitWidth - countLeadingOnes() + 1; in getMinSignedBits()1359 unsigned countLeadingOnes() const;1364 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
661 unsigned APInt::countLeadingOnes() const { in countLeadingOnes() function in APInt663 return llvm::countLeadingOnes(VAL << (APINT_BITS_PER_WORD - BitWidth)); in countLeadingOnes()674 unsigned Count = llvm::countLeadingOnes(pVal[i] << shift); in countLeadingOnes()680 Count += llvm::countLeadingOnes(pVal[i]); in countLeadingOnes()2028 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
436 std::size_t countLeadingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
247 unsigned CLO = countLeadingOnes(Imm); in processLogicalImmediate()
337 CTZ >= C->getBitWidth() - C->countLeadingOnes()) in SimplifyDemandedUseBits()626 BitWidth, LHSKnown.Zero.countLeadingOnes() + RHSTrailingZeros)); in SimplifyDemandedUseBits()
1187 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes(); in foldICmpShrConstConst()1549 if ((Known.Zero | Known.One).countLeadingOnes() >= SrcBits - DstBits) { in foldICmpTruncConstant()
2668 LeadingKnownOnes, C.getCaseValue()->getValue().countLeadingOnes()); in visitSwitchInst()
614 unsigned Count = llvm::countLeadingOnes(U.pVal[i] << shift); in countLeadingOnesSlowCase()620 Count += llvm::countLeadingOnes(U.pVal[i]); in countLeadingOnesSlowCase()2023 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
1693 Count = A1.countLeadingOnes(); in evaluateCLBi()
5676 unsigned ShiftAmount = C->countLeadingOnes() - 1; in setLimitsForBinOp()
1726 unsigned BitWide = 64 - countLeadingOnes(~(AndMask >> SrlImm)); in isSeveralBitsExtractOpFromShr()
11823 unsigned ZeroHi = Zeroable.countLeadingOnes(); in lowerShuffleAsByteShiftMask()15793 if (Zeroable.countLeadingOnes() < (Mask.size() - 8)) in lowerShuffleAsVTRUNCAndUnpack()17133 if ((int)Zeroable.countLeadingOnes() >= (NumElts - SubvecElts)) { in lower1BitShuffle()