OSDN Git Service

[Support] make countLeadingZeros() countTrailingZeros() countLeadingOnes() and countT...
authorShawn Landden <shawn@git.icu>
Tue, 4 Jun 2019 14:51:15 +0000 (14:51 +0000)
committerShawn Landden <shawn@git.icu>
Tue, 4 Jun 2019 14:51:15 +0000 (14:51 +0000)
commit495908d074f75af8c4b81ce124748b6b1b2d69bd
tree85ed57b6cc09484bdbae6d6894939c88b031287d
parentaa5736b2823717f6ae3c201513eddf1e2894ee01
[Support] make countLeadingZeros() countTrailingZeros() countLeadingOnes() and countTrailingOnes() return unsigned

This matches APInt's versions of these functions, and there is no need for these to be size_t.

(as well as __builtin_clzll())

Differential Revision: https://reviews.llvm.org/D60823

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362503 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/MathExtras.h
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp