[mlir][interfaces][NFC] Move DestinationStyleOpInterface to mlir/Interfaces
authorMatthias Springer <springerm@google.com>
Tue, 18 Oct 2022 15:23:42 +0000 (17:23 +0200)
committerMatthias Springer <springerm@google.com>
Tue, 18 Oct 2022 15:39:06 +0000 (17:39 +0200)
commitcfc9ddaafc5d4c2b293c8e6b7c9244c4844c7c89
treeaa8478bbe326bdc47978b395708c9f75393d20a3
parent44027f390854f3088bf85c5c4d8cf1405dd4bb4c
[mlir][interfaces][NFC] Move DestinationStyleOpInterface to mlir/Interfaces

This is the second (and final) step of making "destination style" usable without depending on the Linalg dialect. (The first step was D135129.)

This change allows us to provide default bufferization implementations for all destination-style ops. It also allows us to simplify `TilingInterface`. (E.g., `getDestinationOperands` can be removed.)

Differential Revision: https://reviews.llvm.org/D136179
17 files changed:
mlir/include/mlir/Dialect/Linalg/IR/Linalg.h
mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.h
mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td
mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
mlir/include/mlir/Interfaces/CMakeLists.txt
mlir/include/mlir/Interfaces/DestinationStyleOpInterface.h [new file with mode: 0644]
mlir/include/mlir/Interfaces/DestinationStyleOpInterface.td [new file with mode: 0644]
mlir/lib/Dialect/Linalg/IR/CMakeLists.txt
mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
mlir/lib/Dialect/Linalg/Transforms/BufferizableOpInterfaceImpl.cpp
mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
mlir/lib/Interfaces/CMakeLists.txt
mlir/lib/Interfaces/DestinationStyleOpInterface.cpp [new file with mode: 0644]
mlir/test/lib/Dialect/Test/CMakeLists.txt
mlir/test/lib/Dialect/Test/TestOps.td
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel