Skip to content

[FIRRTL][HW] Factor HierPath builder util out of LowerXMR #8409

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 2 commits into from
Apr 14, 2025

Conversation

seldridge
Copy link
Member

Factor a utility out of FIRRTL's LowerXMR pass which is used for
creating hw::HierPathOps. This does some useful things like caching and
creates the ops in order as opposed to in reverse order. Refactor
LowerXMR to use this utility.

Context: I am planning to use this in LowerLayers and this is the
prerequisite work to make it a utility.

@seldridge seldridge requested a review from darthscsi as a code owner April 10, 2025 23:11
@seldridge seldridge requested review from rwy7 and youngar April 10, 2025 23:12
Add a utility for building `hw::HierPathOp`s at a specific location in the
IR in a sane order and reusing ops when possible.  This is added because
this is a pattern that is used in `LowerXMR` and I'd like to reuse it in
`LowerLayers`.

Signed-off-by: Schuyler Eldridge <[email protected]>
Changae the `LowerXMR` pass to use the new `HierPathBuilder` utility.

Signed-off-by: Schuyler Eldridge <[email protected]>
@seldridge seldridge force-pushed the dev/seldridge/hw-factor-out-hierpath-builder branch from febc89c to 3057138 Compare April 14, 2025 17:08
@seldridge seldridge merged commit 3057138 into main Apr 14, 2025
5 checks passed
@seldridge seldridge deleted the dev/seldridge/hw-factor-out-hierpath-builder branch April 14, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant