summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Object.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-04-07 17:52:40 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-04-07 17:52:40 +0000
commitbad648a23e15829a7210cd194e3d3f3ea13a91f8 (patch)
treed67aa77ea4dd1694dffb934fd47d82bd04445b20 /llvm/lib/Object/Object.cpp
parent3db93ac5d6d05b809da1f99379f8fb4a8c27fd0a (diff)
downloadbcm5719-llvm-bad648a23e15829a7210cd194e3d3f3ea13a91f8.tar.gz
bcm5719-llvm-bad648a23e15829a7210cd194e3d3f3ea13a91f8.zip
[ConstantRange] Add isAllNegative() and isAllNonNegative() methods
Add isAllNegative() and isAllNonNegative() methods to ConstantRange, which determine whether all values in the constant range are negative/non-negative. This is useful for replacing KnownBits isNegative() and isNonNegative() calls when changing code to use constant ranges. Differential Revision: https://reviews.llvm.org/D60264 llvm-svn: 357871
Diffstat (limited to 'llvm/lib/Object/Object.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud