[mlir] specify the values when notifying about op replacement
authorAlex Zinenko <zinenko@google.com>
Tue, 27 Sep 2022 16:08:44 +0000 (16:08 +0000)
committerAlex Zinenko <zinenko@google.com>
Tue, 27 Sep 2022 16:22:35 +0000 (16:22 +0000)
commite8aaf75810575e389f5191e69ae3ab387d57f61a
tree2c710dd462f3541e120f336f1e829792d02a9805
parent401481daac909131762a68f177ba612b507c6e85
[mlir] specify the values when notifying about op replacement

It is useful for PatternRewriter listeners to know the values that are
replacing the op in addition to only the fact of the op being replaced
for being able to keep track of changes or for debugging.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D134748
mlir/include/mlir/IR/PatternMatch.h
mlir/lib/IR/PatternMatch.cpp
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp