forked from llvm/circt
-
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.
[FIRRTL] Update NLA during prefix module pass (llvm#2030)
This change updates the `NonLocalAnchor` symbol reference to modules that are renamed in prefix module pass. The `nla` op contains reference to module symbols, which might be left invalid after module renaming. For example, `firrtl.nla @nla_2 [@top, @aardvark, @Zebra] ["test", "test1", "Zebra"]` There can be multiple copies of any module created after the prefix module pass. The `firrtl.nla` renaming is context sensitive and depends on the instance op, which is anchored to the `nla`. This renaming is also based on the assumption, that the modules in the `firrtl.nla` begin with the top level module. Otherwise, the `firrtl.nla` might be ambiguous if multiple clones of the first module is created.
- Loading branch information
Showing
2 changed files
with
97 additions
and
3 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