[mlir][linalg][transform] Add structured.replace op
authorMatthias Springer <springerm@google.com>
Wed, 30 Nov 2022 17:27:30 +0000 (18:27 +0100)
committerMatthias Springer <springerm@google.com>
Thu, 1 Dec 2022 08:04:35 +0000 (09:04 +0100)
commit504a7516a1d1b459375a551d0b4fa0201428680b
tree1db46104d44982d5fdb5e244dff539dceb4368fd
parent652592c5cadf7093b288779df1e77ae6afcde6c0
[mlir][linalg][transform] Add structured.replace op

This op is useful for debugging/experiments and allows users to replace ops (without arguments + IsolatedFromAbove) with the given op in the region of transform op.

Differential Revision: https://reviews.llvm.org/D139026
mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.h
mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
mlir/test/Dialect/Linalg/transform-op-replace.mlir [new file with mode: 0644]