llvm-project/mlir/test/Dialect/Bufferization
Matthias Springer c1fef4e88a [mlir][bufferization] Make `TensorCopyInsertionPass` a test pass
TensorCopyInsertion should not have been exposed as a pass. This was a flaw in the original design. It is a preparation step for bufferization and certain transforms (that would otherwise be legal) are illegal between TensorCopyInsertion and actual rewrite to MemRef ops. Therefore, even if broken down as two separate steps internally, they should be exposed as a single pass.

This change affects the sparse compiler, which uses `TensorCopyInsertionPass`. A new `SparsificationAndBufferizationPass` is added to replace all passes in the sparse tensor pipeline from `TensorCopyInsertionPass` until the actual bufferization (rewrite to memref/non-tensor). It is generally unsafe to run arbitrary passes in-between, in particular passes that hoist tensor ops out of loops or change SSA use-def chains along tensor ops.

Differential Revision: https://reviews.llvm.org/D138915
2022-12-02 15:38:02 +01:00
..
Transforms [mlir][bufferization] Make `TensorCopyInsertionPass` a test pass 2022-12-02 15:38:02 +01:00
canonicalize.mlir [mlir] materialize strided memref layout as attribute 2022-08-30 17:19:58 +02:00
inlining.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Bufferization/Complex/EmitC/CF/Func/GPU tests 2022-04-20 22:17:28 -07:00
invalid.mlir [mlir][bufferization] Support general Attribute as memory space 2022-11-21 09:40:50 -05:00
ops.mlir [mlir][bufferization] Support general Attribute as memory space 2022-11-21 09:40:50 -05:00