[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)
commit669775f9db794741c8b15dc06c730afe95ce44f2
tree6664f271c67d211377f4686ec11249d3030fb7c8
parentd6de9426ee956740c024d01ae7bac014ab3e94c1
[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

llvm-svn: 362503
llvm/include/llvm/Support/MathExtras.h
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp