OSDN Git Service

[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)
commit6e614234d5d208c537a379cadb4fa02b468e339f
tree40c96b91a24a6cab575840d6d96c6c9cb3ea1280
parentc04985c6062bf9365de28be5f6e20f24b55fedaf
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345052 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/InstrTypes.h
lib/IR/Instructions.cpp