[PatternMatch] Use generic One,Two,ThreeOps_match classes (NFC).
authorFlorian Hahn <florian.hahn@arm.com>
Wed, 12 Sep 2018 14:52:38 +0000 (14:52 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Wed, 12 Sep 2018 14:52:38 +0000 (14:52 +0000)
commita3d806504566d3363649f8d26395d52cdb9efe63
tree1424a0d7bf7e852baf1bef0701bb1f372d9b6c32
parentebff3123a2d7c6b3d74d27c50700f0582ec45e85
[PatternMatch] Use generic One,Two,ThreeOps_match classes (NFC).

Currently we have a few duplicated matcher classes, which all do pretty
much the same thing. This patch introduces generic
One,Tow,ThreeOps_match classes which take the opcode the match as
template argument.

Reviewers: SjoerdMeijer, dneilson, spatel, arsenm

Reviewed By: SjoerdMeijer

Differential Revision: https://reviews.llvm.org/D51044

llvm-svn: 342058
llvm/include/llvm/IR/PatternMatch.h