[IR] remove fake binop queries for not/neg
authorSanjay Patel <spatel@rotateright.com>
Tue, 23 Oct 2018 17:06:03 +0000 (17:06 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 23 Oct 2018 17:06:03 +0000 (17:06 +0000)
commit07076cfdf63dc0599cc5f1910b825404f53a8053
tree1f9c56fe2f44ed7071778ef113dcd8b1c69e7d69
parent70b6bbe2bb7d795ab1a81226887d966c811cd72c
[IR] remove fake binop queries for not/neg

The initial motivation is that we want to remove the
fneg API because that would silently fail if we add
an actual fneg instruction to IR. The same would be
true for the integer ops, so we might as well get rid
of these too.

We have a newer 'match' API that makes checking for
these patterns simpler. It also works with vectors
that may include undef elements in constants.

If any out-of-tree users need updating, they can model
their code changes on these commits:
rL345050
rL345043
rL345042
rL345041
rL345036
rL345030

llvm-svn: 345052
llvm/include/llvm/IR/InstrTypes.h
llvm/lib/IR/Instructions.cpp