[mlir][Linalg] Refactor in preparation for automatic Linalg "named" ops.
authorNicolas Vasilache <ntv@google.com>
Wed, 12 Feb 2020 19:41:11 +0000 (14:41 -0500)
committerNicolas Vasilache <ntv@google.com>
Wed, 12 Feb 2020 19:47:40 +0000 (14:47 -0500)
commitbfaf535791897f3cc2af40d4f5a677489ad25940
tree195149813806138bf6fdba9544e074e31d4c6d1a
parent654086cbf548c8571affcb24f4a4a1cf54988756
[mlir][Linalg] Refactor in preparation for automatic Linalg "named" ops.

This revision prepares the ground for declaratively defining Linalg "named" ops.
Such named ops form the backbone of operations that are ubiquitous in the ML
application domain.

This revision closely related to the definition of a "Tensor Computation
Primitives Dialect" and demonstrates that ops can be expressed as declarative
configurations of the `linalg.generic` op.

Differential Revision: https://reviews.llvm.org/D74491
mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h
mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
mlir/include/mlir/Dialect/Linalg/IR/LinalgTraits.h
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp