-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MLIR] Prefix tuple field keys with _
See @1258.
- Loading branch information
Showing
4 changed files
with
37 additions
and
13 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: 5 additions & 5 deletions
10
tests/test_backend/test_mlir/golds/simple_aggregates_tuple.mlir
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
module attributes {circt.loweringOptions = "locationInfoStyle=none"} { | ||
hw.module @simple_aggregates_tuple(%a: !hw.struct<0: i8, 1: i8>) -> (y: !hw.struct<0: i8, 1: i8>) { | ||
%0 = hw.struct_extract %a["0"] : !hw.struct<0: i8, 1: i8> | ||
hw.module @simple_aggregates_tuple(%a: !hw.struct<_0: i8, _1: i8>) -> (y: !hw.struct<_0: i8, _1: i8>) { | ||
%0 = hw.struct_extract %a["_0"] : !hw.struct<_0: i8, _1: i8> | ||
%2 = hw.constant -1 : i8 | ||
%1 = comb.xor %2, %0 : i8 | ||
%3 = hw.struct_extract %a["1"] : !hw.struct<0: i8, 1: i8> | ||
%3 = hw.struct_extract %a["_1"] : !hw.struct<_0: i8, _1: i8> | ||
%4 = comb.xor %2, %3 : i8 | ||
%5 = hw.struct_create (%1, %4) : !hw.struct<0: i8, 1: i8> | ||
hw.output %5 : !hw.struct<0: i8, 1: i8> | ||
%5 = hw.struct_create (%1, %4) : !hw.struct<_0: i8, _1: i8> | ||
hw.output %5 : !hw.struct<_0: i8, _1: i8> | ||
} | ||
} |
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,9 @@ | ||
// Generated by CIRCT circtorg-0.0.0-1773-g7abbc4313 | ||
module simple_aggregates_tuple( | ||
input struct packed {logic [7:0] _0; logic [7:0] _1; } a, | ||
output struct packed {logic [7:0] _0; logic [7:0] _1; } y | ||
); | ||
|
||
assign y = '{_0: (~a._0), _1: (~a._1)}; | ||
endmodule | ||
|
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