[mlir][Linalg] Refactor Linalg op initTensors support - NFC
authorNicolas Vasilache <ntv@google.com>
Tue, 29 Sep 2020 12:23:37 +0000 (08:23 -0400)
committerNicolas Vasilache <ntv@google.com>
Tue, 29 Sep 2020 13:56:38 +0000 (09:56 -0400)
commit6b649570cbc44dd775d9657805cc60b2075d8011
tree803dbd8639453fef7943ce82770940ec21c73066
parent113114a5da60ef30731046f50fc1d67ff87897fc
[mlir][Linalg] Refactor Linalg op initTensors support - NFC

Manually-defined named ops do not currently support `init_tensors` or return values and may never support them. Add extra interface to the StructuredOpInterface so that we can still write op-agnostic transformations based on StructuredOpInterface.

This is an NFC extension in preparation for tiling on tensors.

Differential Revision: https://reviews.llvm.org/D88481
mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td
mlir/include/mlir/Dialect/Linalg/IR/LinalgTraits.h
mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp