|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
gen/lib/Target/XCore/XCoreGenDAGISel.inc 2512 return getI32Imm(32 - countLeadingZeros((uint32_t)N->getZExtValue()),
include/llvm/ADT/APInt.h 1611 return llvm::countLeadingZeros(U.VAL) - unusedBits;
include/llvm/ADT/BitVector.h 259 return (CurrentWord + 1) * BITWORD_SIZE - countLeadingZeros(Copy) - 1;
include/llvm/ADT/SmallBitVector.h 242 return NumBaseBits - countLeadingZeros(Bits) - 1;
316 return NumBaseBits - countLeadingZeros(Bits) - 1;
include/llvm/ADT/SparseBitVector.h 140 countLeadingZeros(Bits[Idx]) - 1;
include/llvm/MCA/Support.h 101 return (std::numeric_limits<uint64_t>::digits - countLeadingZeros(Mask)) - 1;
include/llvm/Support/MathExtras.h 286 return countLeadingZeros(Val, ZB_Undefined) ^
502 return countLeadingZeros<T>(~Value, ZB);
586 return 31 - countLeadingZeros(Value);
592 return 63 - countLeadingZeros(Value);
599 return 32 - countLeadingZeros(Value - 1);
605 return 64 - countLeadingZeros(Value - 1);
686 return 1ull << (63 - countLeadingZeros(A, ZB_Undefined));
include/llvm/Support/ScaledNumber.h 88 int Shift = 64 - Width - countLeadingZeros(Digits);
195 int32_t LocalFloor = sizeof(Digits) * 8 - countLeadingZeros(Digits) - 1;
307 int32_t ShiftL = std::min<int32_t>(countLeadingZeros(LDigits), ScaleDiff);
428 static int countLeadingZeros32(uint32_t N) { return countLeadingZeros(N); }
429 static int countLeadingZeros64(uint64_t N) { return countLeadingZeros(N); }
lib/Analysis/BlockFrequencyInfoImpl.cpp 238 Shift = 33 - countLeadingZeros(Total);
lib/Analysis/VectorUtils.cpp 477 llvm::countLeadingZeros(LeaderDemandedBits);
lib/CodeGen/SelectionDAG/DAGCombiner.cpp14727 unsigned NotMaskLZ = countLeadingZeros(NotMask);
lib/Support/APInt.cpp 594 Count += llvm::countLeadingZeros(V);
1326 unsigned shift = countLeadingZeros(v[n-1]);
lib/Support/NativeFormatting.cpp 139 unsigned Nibbles = (64 - countLeadingZeros(N) + 3) / 4;
lib/Support/ScaledNumber.cpp 47 unsigned LeadingZeros = countLeadingZeros(Upper);
65 if (int Zeros = countLeadingZeros(Dividend64)) {
97 if (int Zeros = countLeadingZeros(Dividend)) {
lib/Target/AArch64/AArch64ExpandImm.cpp 273 unsigned LZ = countLeadingZeros(Imm);
lib/Target/AArch64/AArch64ISelLowering.cpp 9251 unsigned LZ = countLeadingZeros((uint64_t)Val);
lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h 300 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f));
329 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f));
lib/Target/AMDGPU/AMDGPUSubtarget.h 457 return countLeadingZeros(MaxWaveScratchSize) + getWavefrontSizeLog2();
lib/Target/ARM/ARMISelDAGToDAG.cpp 2732 unsigned MSB = 31 - countLeadingZeros(And_imm);
lib/Target/ARM/ARMISelLowering.cpp 4257 unsigned ShiftBits = countLeadingZeros(Mask);
11957 uint32_t C3 = countLeadingZeros(C1);
11981 uint32_t C3 = countLeadingZeros(C1);
11993 uint32_t Leading = countLeadingZeros(C1);
12524 unsigned Width = (32 - countLeadingZeros(~InvMask)) - LSB;
13781 uint32_t MaskedBits = countLeadingZeros(AndMask);
lib/Target/ARM/MCTargetDesc/ARMAddressingModes.h 291 unsigned RotAmt = countLeadingZeros(V);
lib/Target/ARM/MCTargetDesc/ARMInstPrinter.cpp 743 int32_t width = (32 - countLeadingZeros(v)) - lsb;
lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp 1705 uint32_t msb = (32 - countLeadingZeros (v)) - 1;
lib/Target/ARM/MCTargetDesc/ARMUnwindOpAsm.cpp 110 auto RangeMSB = 32 - countLeadingZeros(Regs);
lib/Target/ARM/Thumb2InstrInfo.cpp 327 unsigned RotAmt = countLeadingZeros(ThisVal);
344 unsigned RotAmt = countLeadingZeros(ThisVal);
534 unsigned RotAmt = countLeadingZeros<unsigned>(Offset);
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp 1128 uint32_t LZ = countLeadingZeros(Mask);
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h 67 MB = countLeadingZeros(Val);
69 ME = countLeadingZeros((Val - 1) ^ Val);
75 ME = countLeadingZeros(Val) - 1;
77 MB = countLeadingZeros((Val - 1) ^ Val) + 1;
lib/Target/PowerPC/PPCMIPeephole.cpp 179 return 48 + countLeadingZeros(Imm);
lib/Target/SystemZ/SystemZISelLowering.cpp 2258 unsigned HighShift = 63 - countLeadingZeros(Mask);
lib/Target/X86/X86ISelDAGToDAG.cpp 1711 unsigned MaskLZ = countLeadingZeros(Mask);
5029 unsigned LeadingZeros = countLeadingZeros(Mask);
lib/Target/XCore/XCoreISelDAGToDAG.cpp 58 int msksize = 32 - countLeadingZeros(value);
140 SDValue MskSize = getI32Imm(32 - countLeadingZeros((uint32_t)Val), dl);
lib/Transforms/Utils/SimplifyCFG.cpp 992 unsigned Offset = 32 - countLeadingZeros(Max);
tools/clang/lib/AST/Type.cpp 159 return 64 - llvm::countLeadingZeros(TotalSize);
tools/lld/ELF/Writer.cpp 1121 return countLeadingZeros(a->sortRank ^ b->sortRank);
unittests/Support/MathExtrasTest.cpp 41 EXPECT_EQ(8u, countLeadingZeros(Z8));
42 EXPECT_EQ(16u, countLeadingZeros(Z16));
43 EXPECT_EQ(32u, countLeadingZeros(Z32));
44 EXPECT_EQ(64u, countLeadingZeros(Z64));
50 EXPECT_EQ(2u, countLeadingZeros(NZ8));
51 EXPECT_EQ(10u, countLeadingZeros(NZ16));
52 EXPECT_EQ(26u, countLeadingZeros(NZ32));
53 EXPECT_EQ(58u, countLeadingZeros(NZ64));
55 EXPECT_EQ(8u, countLeadingZeros(0x00F000FFu));
56 EXPECT_EQ(8u, countLeadingZeros(0x00F12345u));
58 EXPECT_EQ(31 - i, countLeadingZeros(1u << i));
61 EXPECT_EQ(8u, countLeadingZeros(0x00F1234500F12345ULL));
62 EXPECT_EQ(1u, countLeadingZeros(1ULL << 62));
64 EXPECT_EQ(63 - i, countLeadingZeros(1ULL << i));