OSDN Git Service

[APInt] Add an isNullValue method to check for all bits being zero. Use it in a coupl...
authorCraig Topper <craig.topper@gmail.com>
Fri, 28 Apr 2017 21:48:06 +0000 (21:48 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 28 Apr 2017 21:48:06 +0000 (21:48 +0000)
commit242ed359a8b9441d685228ba18ceb582b3b2a136
tree69ecf15182e2cc981b2c38dc5584220631c36c28
parent00cdeeedbab3bedd7450a6cb335c295821589866
[APInt] Add an isNullValue method to check for all bits being zero. Use it in a couple internal methods where it makes more sense than isMinValue or !getBoolValue. NFC

I used Null rather than Zero to match the getNullValue method name.

There are some other places outside APInt where isNullValue would be more readable than isMinValue even though they do the same thing. I'll update those in future patches.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301695 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h