[mlir] Return new Operation from `Rewriter::replaceOpWithNewOp`
authorVladislav Vinogradov <vlad.vinogradov@intel.com>
Tue, 2 Feb 2021 18:33:08 +0000 (18:33 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 2 Feb 2021 18:33:13 +0000 (18:33 +0000)
commit67dfe9c8d70c1242c1e91e3bafc710781ac2a585
tree0dde30d500c28bc727cab522924ad75bc66a6f6f
parent39047f6c2e5e8999b012cda1a92447bb615a6d1b
[mlir] Return new Operation from `Rewriter::replaceOpWithNewOp`

It will allow to perform additional manipulation with the newly created Operation.
For example, custom attributes propagation/changes.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D95525
mlir/include/mlir/IR/PatternMatch.h