8000 [FIRRTL] LowerLayers: do not emit duplicate bindfile includes by rwy7 · Pull Request #8521 · llvm/circt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[FIRRTL] LowerLayers: do not emit duplicate bindfile includes #8521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025

Conversation

rwy7
Copy link
Contributor
@rwy7 rwy7 commented May 30, 2025

When emitting bindfiles for a module, that bindfile will include the bindfiles of any module instantiated directly under it.

If a module is instantiated multiple times, we'll emit duplicate include statements. This PR modifies the bindfile creation code to avoid emitting duplicate include statements.

Fixes: #8519

@rwy7 rwy7 requested review from darthscsi and seldridge as code owners May 30, 2025 16:01
When emitting bindfiles for a module, that bindfile will include the bindfiles
of any module instantiated directly under it.

If a module is instantiated multiple times, we'll emit duplicate include
statements. This PR modifies the bindfile creation code to avoid emitting
duplicate include statements.
@rwy7 rwy7 force-pushed the fix-layer-bind-file-duplicate-includes branch from 9d20356 to e7935a0 Compare May 30, 2025 18:04
@rwy7 rwy7 merged commit 7d08b89 into llvm:main May 30, 2025
5 checks passed
@rwy7 rwy7 deleted the fix-layer-bind-file-duplicate-includes branch May 30, 2025 22:51
@rwy7 rwy7 added the FIRRTL Involving the `firrtl` dialect label May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FIRRTL Involving the `firrtl` dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[firtool] Duplicate include directives for layers-*.sv files after dedup
2 participants
0