-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIRRTL][LowerToHW] Copy InnerSymAttrs to lowered ops (#5928)
This change ensures that when lowering InnerSymbol operations, we copy the existing inner symbol to the target, as well as properly adding a symbol on fieldID 0 when required. This fixes an assumption of symbol name uniqueness, and they are now uniqued in the module's symbol namespace. A side effect of this change is that the used symbol names are always of the form `@sym_1`. This also fixes a bug where an `InnerSymAttr` was assumed to target field ID 0, and could result in an incorrect lowering of the `DontTouch` annotation.
- Loading branch information
Showing
5 changed files
with
120 additions
and
105 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
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.