[APInt][PatternMatch] Add 'is non-positive' predicate
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 3 Dec 2019 18:17:51 +0000 (21:17 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 3 Dec 2019 18:34:12 +0000 (21:34 +0300)
commit444ac34182d562db2cb3b7d93d0d63acca1a6c9a
tree7a2ad1ed55f77457290fec7d2903d0d910a3d8d7
parent898df29c5b2ebbc4a24143e476d8e9a54569d2e5
[APInt][PatternMatch] Add 'is non-positive' predicate

It will be useful for implementing the fold mentioned in
https://bugs.llvm.org/show_bug.cgi?id=44100#c4
llvm/include/llvm/ADT/APInt.h
llvm/include/llvm/IR/PatternMatch.h
llvm/unittests/ADT/APIntTest.cpp
llvm/unittests/IR/PatternMatch.cpp