[mlir][Linalg] Make printer/parser have the same behavior.
authorHanhan Wang <hanchung@google.com>
Mon, 14 Jun 2021 20:38:21 +0000 (13:38 -0700)
committerHanhan Wang <hanchung@google.com>
Mon, 14 Jun 2021 20:38:30 +0000 (13:38 -0700)
commite3bc4dbe8e75faf13798028fcb7710675d8c05ed
tree11c92f451c315f8eeb92240bbb2be6466962b9fe
parente0c382a9d5a0e2689b97186736ebc82e17c5f822
[mlir][Linalg] Make printer/parser have the same behavior.

The parser of generic op did not recognize the output from mlir-opt when there
are multiple outputs. One would wrap the result types with braces, and one would
not. The patch makes the behavior the same.

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D104256
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/bufferize.mlir
mlir/test/Dialect/Linalg/canonicalize.mlir
mlir/test/Dialect/Linalg/invalid.mlir
mlir/test/Dialect/Linalg/roundtrip.mlir
mlir/test/Dialect/Linalg/vectorization.mlir