[Support] Use functions from bit.h (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 22 Jan 2023 18:41:13 +0000 (10:41 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 22 Jan 2023 18:41:13 +0000 (10:41 -0800)
commit8e4dc4cfb81e8baf4692d78226fcac6e47acc133
tree3131e97bb0c6ac3ab473f0da16dd798291753d81
parentdd8ecde00b3b3d8d0f80d7df43393f583d782413
[Support] Use functions from bit.h (NFC)

This patch makes the following replacements:

  countLeadingZeros  -> llvm::countl_zero
  countTrailingZeros -> llvm::countr_zero
  countPopulation    -> llvm::popcount
llvm/include/llvm/Support/MathExtras.h