-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ConcretizeStructAnnotation to deal with deps of default parametri…
…c exprs. This partially fixes #1523, and the IR converter test added here is a derivative of the code in that issue, which is completely fixed by this change. PiperOrigin-RevId: 671166194
- Loading branch information
1 parent
72048d6
commit afc720d
Showing
3 changed files
with
63 additions
and
6 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
12 changes: 12 additions & 0 deletions
12
xls/dslx/ir_convert/testdata/ir_converter_test_ParametricDefaultInStruct.ir
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,12 @@ | ||
package test_module | ||
|
||
file_number 0 "test_module.x" | ||
|
||
fn __test_module__make_zero_foo__5() -> (bits[5], bits[6]) { | ||
X: bits[32] = literal(value=5, id=1) | ||
ret literal.2: (bits[5], bits[6]) = literal(value=(0, 0), id=2) | ||
} | ||
|
||
fn __test_module__test() -> (bits[5], bits[6]) { | ||
ret invoke.3: (bits[5], bits[6]) = invoke(to_apply=__test_module__make_zero_foo__5, id=3) | ||
} |
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