This is useful for transformations such as bufferization, which is looking for tensor.extract_slice/insert_slice pairs.
Also fix the documentation of the corresponding tranform op.
Paths
| Differential D152455
[mlir][tensor] Add option to fold only tensor.empty with a single use ClosedPublic Authored by springerm on Jun 8 2023, 9:04 AM.
Details Summary This is useful for transformations such as bufferization, which is looking for tensor.extract_slice/insert_slice pairs. Also fix the documentation of the corresponding tranform op.
Diff Detail
Event Timelinespringerm added a child revision: D152511: [mlir][tensor] Add pattern to rewrite tensor.generate as a constant.Jun 9 2023, 2:54 AM This revision is now accepted and ready to land.Jun 9 2023, 3:22 AM Closed by commit rG40052b08de6f: [mlir][tensor] Add option to fold only tensor.empty with a single use (authored by springerm). · Explain WhyJun 9 2023, 3:37 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 529847 mlir/include/mlir/Dialect/Tensor/TransformOps/TensorTransformOps.td
mlir/include/mlir/Dialect/Tensor/Transforms/Transforms.h
mlir/lib/Dialect/Tensor/TransformOps/TensorTransformOps.cpp
mlir/lib/Dialect/Tensor/Transforms/EmptyOpPatterns.cpp
mlir/test/Dialect/Tensor/fold-empty-op.mlir
mlir/test/lib/Dialect/Tensor/TestTensorTransforms.cpp
|