HomePhabricator

[Support] make countLeadingZeros() and countTrailingZeros() return unsigned

Authored by shawnl on May 26 2019, 6:49 AM.

Description

[Support] make countLeadingZeros() and countTrailingZeros() return unsigned

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

(as well as __builtin_clzll())

llvm-svn: 361724

Details

Committed
shawnlMay 26 2019, 6:49 AM
Parents
rGd0f13e618faf: [ValueTracking] Base computeOverflowForUnsignedMul() on ConstantRange code; NFCI
Branches
Unknown
Tags
Unknown