diff options
author | Rahul Joshi <jurahul@google.com> | 2020-11-09 08:23:55 -0800 |
---|---|---|
committer | Rahul Joshi <jurahul@google.com> | 2020-11-09 11:08:08 -0800 |
commit | 8b5a3e46326f646c3cca187058c2ef71910daeb0 (patch) | |
tree | 97ccfba25513f8e69d7d9d80672fde8a837601c3 /mlir/test/Examples/Toy/Ch7/shape_inference.mlir | |
parent | d657f7cd30ed391a619e2cd4d4f73281e3ffa499 (diff) | |
download | llvm-8b5a3e46326f646c3cca187058c2ef71910daeb0.zip llvm-8b5a3e46326f646c3cca187058c2ef71910daeb0.tar.gz llvm-8b5a3e46326f646c3cca187058c2ef71910daeb0.tar.bz2 |
[MLIR] Change FuncOp assembly syntax to print visibility inline instead of in attrib dict.
- Change syntax for FuncOp to be `func <visibility>? @name` instead of printing the
visibility in the attribute dictionary.
- Since printFunctionLikeOp() and parseFunctionLikeOp() are also used by other
operations, make the "inline visibility" an opt-in feature.
- Updated unit test to use and check the new syntax.
Differential Revision: https://reviews.llvm.org/D90859
Diffstat (limited to 'mlir/test/Examples/Toy/Ch7/shape_inference.mlir')
-rw-r--r-- | mlir/test/Examples/Toy/Ch7/shape_inference.mlir | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mlir/test/Examples/Toy/Ch7/shape_inference.mlir b/mlir/test/Examples/Toy/Ch7/shape_inference.mlir index 8d67945..a27673c 100644 --- a/mlir/test/Examples/Toy/Ch7/shape_inference.mlir +++ b/mlir/test/Examples/Toy/Ch7/shape_inference.mlir @@ -2,8 +2,7 @@ // Check the result of inlining+shape inference on an input module. -func @multiply_transpose(%arg0: tensor<*xf64>, %arg1: tensor<*xf64>) -> tensor<*xf64> - attributes { sym_visibility = "private" } { +func private @multiply_transpose(%arg0: tensor<*xf64>, %arg1: tensor<*xf64>) -> tensor<*xf64> { %0 = toy.transpose(%arg0 : tensor<*xf64>) to tensor<*xf64> %1 = toy.transpose(%arg1 : tensor<*xf64>) to tensor<*xf64> %2 = toy.mul %0, %1 : tensor<*xf64> |