diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-07 17:52:40 +0000 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-07 17:52:40 +0000 |
| commit | bad648a23e15829a7210cd194e3d3f3ea13a91f8 (patch) | |
| tree | d67aa77ea4dd1694dffb934fd47d82bd04445b20 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
| parent | 3db93ac5d6d05b809da1f99379f8fb4a8c27fd0a (diff) | |
| download | llvm-bad648a23e15829a7210cd194e3d3f3ea13a91f8.zip llvm-bad648a23e15829a7210cd194e3d3f3ea13a91f8.tar.gz llvm-bad648a23e15829a7210cd194e3d3f3ea13a91f8.tar.bz2 | |
[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 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions
