-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mlir printing and parsing fix (#199)
- Loading branch information
1 parent
55261e4
commit e5d03ea
Showing
4 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/filecheck/mlir-conversion/with-bindings/symbol_tests.xdsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// RUN: xdsl-opt -t mlir %s | mlir-opt --mlir-print-op-generic > %t-1 && xdsl-opt -t mlir %s | mlir-opt --mlir-print-op-generic > %t-2 && diff %t-1 %t-2 | ||
|
||
// Tests if the non generic form can be printed. | ||
|
||
// CHECK: module { | ||
builtin.module() { | ||
func.func() ["function_type" = !fun<[], []>, "symbol" = @some_symbol, "sym_name" = "symbol_attr", "sym_visibility" = "private"] {} | ||
|
||
func.func() ["function_type" = !fun<[], []>, "value1" = !tensor<[-1 : !index], !i32>, "sym_name" = "unranked_tensor_type", "sym_visibility" = "private"] {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters