-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIRRTL][FIRParser] Defer inner symbols to post-processing, fix race. (…
…#7584) Adding inner symbols, specifically to module ports, mutates the attribute dictionary and that races / breaks concurrent access to properties (e.g., port names and types) commonly inspected during parsing other module bodies (e.g., InstanceOp's). Avoid this by instead gathering a list of operations and their intended target as "fixups" to be processed after the original (possibly parallel) parsing has completed and it is safe to do so. This could be parallellized (per-module fixups) but is not expected to have sufficient work to justify the overhead.
- Loading branch information
Showing
1 changed file
with
96 additions
and
20 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