[mlir] Modify LinalgStructuredInterface to allow the computation block to have argume...
authorOleg Shyshkov <shyshkov@google.com>
Thu, 22 Sep 2022 18:05:35 +0000 (18:05 +0000)
committerOleg Shyshkov <shyshkov@google.com>
Thu, 22 Sep 2022 18:46:33 +0000 (18:46 +0000)
commit91563c419e57e3e22de96122247ea27540b14659
tree90d9e949ccf2133fa049e242857b395251788ae6
parent21b03bf9706138b8b8f0b0ab06df763acad17704
[mlir] Modify LinalgStructuredInterface to allow the computation block to have arguments only for a subset of operands.

Summary:
Currently there is an expectations that there is a corresponsing block argument
for each operand. For some operation, it leads to unused arguments. For example,
in `map`, only input operands are used for the computation.

Differential Revision: https://reviews.llvm.org/D134444
mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td
mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp