OSDN Git Service

[Support] make countLeadingZeros() and countTrailingZeros() return unsigned
authorShawn Landden <shawn@git.icu>
Sun, 26 May 2019 13:49:58 +0000 (13:49 +0000)
committerShawn Landden <shawn@git.icu>
Sun, 26 May 2019 13:49:58 +0000 (13:49 +0000)
commitca6009d9a02538dc01f654bf68f1cd355849a9c6
treeea597a307a1a2e1a0fe2c6e48d75f47d7a21e653
parent279974865d83e493d5dcfeffa5e62990b99e1fc7
[Support] make countLeadingZeros() and countTrailingZeros() return unsigned

This matches countLeadingOnes() and countTrailingOnes(), and
APInt's countLeadingZeros() and countTrailingZeros().

(as well as __builtin_clzll())

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