[mlir] Add a ViewLikeOpInterface
authorLei Zhang <antiagainst@google.com>
Wed, 22 Apr 2020 15:16:34 +0000 (11:16 -0400)
committerLei Zhang <antiagainst@google.com>
Fri, 24 Apr 2020 14:02:56 +0000 (10:02 -0400)
commit2458cd27f1dc29d32a2e81b0fb71245f9de31aa5
tree9c5056f01783c42f5f962da066ebc8cca1be1990
parent0efb958bde3ca7e24f591b87554c53a323016c63
[mlir] Add a ViewLikeOpInterface

This can help provide a common interface for view-like
ops so that for example Linalg's dependency analysis
can avoid relying on concrete ops.

Differential Revision: https://reviews.llvm.org/D78645
14 files changed:
mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h
mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
mlir/include/mlir/Dialect/StandardOps/IR/Ops.h
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/include/mlir/Interfaces/CMakeLists.txt
mlir/include/mlir/Interfaces/ViewLikeInterface.h [new file with mode: 0644]
mlir/include/mlir/Interfaces/ViewLikeInterface.td [new file with mode: 0644]
mlir/lib/Dialect/Linalg/Analysis/DependenceAnalysis.cpp
mlir/lib/Dialect/Linalg/IR/CMakeLists.txt
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/lib/Dialect/StandardOps/CMakeLists.txt
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/lib/Interfaces/CMakeLists.txt
mlir/lib/Interfaces/ViewLikeInterface.cpp [new file with mode: 0644]