reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/APInt.h
 1626       return llvm::countLeadingOnes(U.VAL << (APINT_BITS_PER_WORD - BitWidth));
include/llvm/ADT/BitVector.h
  322             (CurrentWord + 1) * BITWORD_SIZE - countLeadingOnes(Copy) - 1;
include/llvm/ADT/SmallBitVector.h
  267       return NumBaseBits - countLeadingOnes(Bits) - 1;
lib/Support/APInt.cpp
  614   unsigned Count = llvm::countLeadingOnes(U.pVal[i] << shift);
  620         Count += llvm::countLeadingOnes(U.pVal[i]);
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
 1690   unsigned BitWide = 64 - countLeadingOnes(~(AndMask >> SrlImm));
lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h
  247     unsigned CLO = countLeadingOnes(Imm);
lib/Target/ARM/MCTargetDesc/ARMUnwindOpAsm.cpp
  111       auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB));
tools/clang/tools/extra/clangd/SourceCode.cpp
   68     size_t UTF8Length = llvm::countLeadingOnes(C);
unittests/Support/MathExtrasTest.cpp
  238     EXPECT_EQ(31u - i, countLeadingOnes(0xFFFFFFFF ^ (1 << i)));
  242     EXPECT_EQ(63u - i, countLeadingOnes(0xFFFFFFFFFFFFFFFFULL ^ (1LL << i)));
  246     EXPECT_EQ(31u - i, countLeadingOnes(0xFFFFFFFF ^ (1 << i)));