/openbsd/gnu/llvm/llvm/lib/Target/PowerPC/MCTargetDesc/ |
H A D | PPCMCTargetDesc.h | 63 MB = countLeadingZeros(Val); in isRunOfOnes() 65 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes() 71 ME = countLeadingZeros(Val) - 1; in isRunOfOnes() 73 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes() 87 MB = countLeadingZeros(Val); in isRunOfOnes64() 89 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes64() 95 ME = countLeadingZeros(Val) - 1; in isRunOfOnes64() 97 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes64()
|
/openbsd/gnu/llvm/llvm/lib/Support/ |
H A D | ScaledNumber.cpp | 47 unsigned LeadingZeros = countLeadingZeros(Upper); in multiply64() 65 if (int Zeros = countLeadingZeros(Dividend64)) { in divide32() 97 if (int Zeros = countLeadingZeros(Dividend)) { in divide64()
|
H A D | APInt.cpp | 629 Count += llvm::countLeadingZeros(V); in countLeadingZerosSlowCase() 1321 unsigned shift = countLeadingZeros(v[n-1]); in KnuthDiv() 1970 if (countLeadingZeros() + RHS.countLeadingZeros() + 2 <= BitWidth) { in umul_ov() 1992 Overflow = ShAmt.uge(countLeadingZeros()); in sshl_ov() 2004 Overflow = ShAmt.ugt(countLeadingZeros()); in ushl_ov() 2964 return A.getBitWidth() - ((A ^ B).countLeadingZeros() + 1); in GetMostSignificantDifferentBit()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 171 unsigned NLZ = DemandedMask.countLeadingZeros(); in SimplifyDemandedUseBits() 396 C->ule(DemandedMask.countLeadingZeros())) { in SimplifyDemandedUseBits() 511 unsigned NLZ = DemandedMask.countLeadingZeros(); in SimplifyDemandedUseBits() 542 unsigned NLZ = DemandedMask.countLeadingZeros(); in SimplifyDemandedUseBits() 667 if (unsigned CTLZ = DemandedMask.countLeadingZeros()) { in SimplifyDemandedUseBits() 686 if (DemandedMask.countLeadingZeros() >= ShiftAmt) { in SimplifyDemandedUseBits() 760 if (DemandedMask.countLeadingZeros() <= ShiftAmt) in SimplifyDemandedUseBits() 900 unsigned NLZ = DemandedMask.countLeadingZeros(); in SimplifyDemandedUseBits() 1074 unsigned NLZ = DemandedMask.countLeadingZeros(); in SimplifyMultipleUseDemandedBits() 1090 unsigned NLZ = DemandedMask.countLeadingZeros(); in SimplifyMultipleUseDemandedBits()
|
/openbsd/gnu/llvm/llvm/include/llvm/Support/ |
H A D | ScaledNumber.h | 88 int Shift = 64 - Width - countLeadingZeros(Digits); 195 int32_t LocalFloor = sizeof(Digits) * 8 - countLeadingZeros(Digits) - 1; in getLgImpl() 307 int32_t ShiftL = std::min<int32_t>(countLeadingZeros(LDigits), ScaleDiff); in matchScales() 428 static int countLeadingZeros32(uint32_t N) { return countLeadingZeros(N); } in countLeadingZeros32() 429 static int countLeadingZeros64(uint64_t N) { return countLeadingZeros(N); } in countLeadingZeros64()
|
H A D | KnownBits.h | 284 return One.countLeadingZeros(); in countMaxLeadingZeros() 289 return Zero.countLeadingZeros(); in countMaxLeadingOnes()
|
H A D | MathExtras.h | 89 template <typename T> unsigned countLeadingZeros(T Val) { in countLeadingZeros() function
|
/openbsd/gnu/llvm/llvm/include/llvm/MCA/ |
H A D | Support.h | 102 return (std::numeric_limits<uint64_t>::digits - countLeadingZeros(Mask)) - 1; in getResourceStateIndex()
|
/openbsd/gnu/llvm/clang/lib/AST/Interp/ |
H A D | Integral.h | 138 unsigned countLeadingZeros() const { 139 return llvm::countLeadingZeros<ReprT>(V);
|
H A D | Boolean.h | 84 unsigned countLeadingZeros() const { return V ? 0 : 1; } in countLeadingZeros() function
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/ |
H A D | BDCE.cpp | 119 if (Demanded.countLeadingZeros() >= (DestBitSize - SrcBitSize)) { in bitTrackingDCE()
|
/openbsd/gnu/llvm/llvm/include/llvm/ADT/ |
H A D | APInt.h | 1463 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); } in getActiveBits() 1552 unsigned countLeadingZeros() const { in countLeadingZeros() function 1555 return llvm::countLeadingZeros(U.VAL) - unusedBits; in countLeadingZeros() 1580 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
|
H A D | SmallBitVector.h | 245 return NumBaseBits - countLeadingZeros(Bits) - 1; in find_last() 319 return NumBaseBits - countLeadingZeros(Bits) - 1; in find_prev()
|
H A D | SparseBitVector.h | 141 countLeadingZeros(Bits[Idx]) - 1; in find_last()
|
H A D | BitVector.h | 246 return (CurrentWord + 1) * BITWORD_SIZE - countLeadingZeros(Copy) - 1; in find_last_in()
|
/openbsd/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UndefResultChecker.cpp | 73 return (unsigned)RHS->getZExtValue() > LHS->countLeadingZeros(); in isLeftShiftResultUnrepresentable()
|
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64AddressingModes.h | 301 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f)); in decodeLogicalImmediate() 330 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f)); in isValidDecodeLogicalImmediate()
|
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/ |
H A D | AArch64ExpandImm.cpp | 271 unsigned LZ = countLeadingZeros(Imm); in expandMOVImmSimple()
|
/openbsd/gnu/llvm/llvm/lib/Target/VE/ |
H A D | VE.h | 455 return countLeadingZeros(Val) | 0x40; // (m)0 in val2MImm()
|
/openbsd/gnu/llvm/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMatInt.cpp | 205 unsigned LeadingZeros = countLeadingZeros((uint64_t)Val); in generateInstSeq()
|
/openbsd/gnu/llvm/llvm/lib/Target/PowerPC/GISel/ |
H A D | PPCInstructionSelector.cpp | 270 uint32_t LoLZ = countLeadingZeros<uint32_t>(Lo_32(Imm)); in findContiguousZerosAtLeast() 284 unsigned LZ = countLeadingZeros<uint64_t>(Imm); in selectI64ImmDirect()
|
/openbsd/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
H A D | BasicValueFactory.cpp | 291 if (V1.isSigned() && Amt > V1.countLeadingZeros()) in evalAPSInt()
|
/openbsd/gnu/llvm/llvm/lib/Target/ARM/MCTargetDesc/ |
H A D | ARMAddressingModes.h | 305 unsigned RotAmt = countLeadingZeros(V); in getT2SOImmValRotateVal()
|
/openbsd/gnu/llvm/llvm/lib/Target/ARM/ |
H A D | Thumb2InstrInfo.cpp | 401 unsigned RotAmt = countLeadingZeros(ThisVal); in emitT2RegPlusImmediate() 606 unsigned RotAmt = countLeadingZeros<unsigned>(Offset); in rewriteT2FrameIndex()
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/ |
H A D | GCNSubtarget.h | 286 return countLeadingZeros(getMaxWaveScratchSize()) + getWavefrontSizeLog2(); in getKnownHighZeroBitsForFrameIndex()
|