[TableGen] Allow additional result patterns not directly used for replacement
authorLei Zhang <antiagainst@google.com>
Wed, 3 Apr 2019 19:29:14 +0000 (12:29 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 4 Apr 2019 02:20:22 +0000 (19:20 -0700)
commitb9e3b2107b785da5c6b5247a220a31d4c3c7e418
tree31d7a7313ff165b0d60ce4f7b6986dc3accd7197
parent13bb8f491a1cb429226768cfd4ca6bcea3b938dd
[TableGen] Allow additional result patterns not directly used for replacement

    This CL looses the requirement that all result patterns in a rewrite rule must
    replace a result of the root op in the source pattern. Now only the last N
    result pattern-generated ops are used to replace a N-result source op.

    This allows to generate additional ops to aid building up final ops used to
    replace the source op.

--

PiperOrigin-RevId: 241783192
mlir/include/mlir/IR/OpBase.td
mlir/test/mlir-tblgen/pattern-multi-result-op.td
mlir/test/mlir-tblgen/pattern-tAttr.td
mlir/tools/mlir-tblgen/RewriterGen.cpp