Skip to content

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 <schuyler.eldridge@sifive.com>
Changae the `LowerXMR` pass to use the new `HierPathBuilder` utility.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
@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.

2 participants