forked from google/xls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable channel arrays to be used at the IR conversion boundary.
Channels that begin their existence via the `chan` constructor somewhere in the converted DSLX code were working before this change, and continue working the same way. They are encountered as `ChannelDecl` objects, which trigger the definition of a `ChannelOrArray` in the `ChannelScope`, where subsequent `Index` operations can resolve them. However, channels that are at the boundary have only `Param` objects and no `ChannelDecl` representing them in the AST. They were previously instantiated based on the `Param` in ir_converter.cc using older, array-unaware code. This change moves their instantiation into `ChannelScope` so that arrays will work. Context: google#1657 Fixes google#1657 PiperOrigin-RevId: 684617481
- Loading branch information
1 parent
83d5b9e
commit 6456292
Showing
9 changed files
with
277 additions
and
78 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
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
Oops, something went wrong.