Skip to content
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

[FIRRTL] LowerLayers: Update innerrefs in extracted verbatim's #8094

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

dtzSiFive
Copy link
Contributor

This continues to not address lack of global updating, but fixes use of verbatims that are extracted along with their targets.

Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

test/Dialect/FIRRTL/lower-layers.mlir Outdated Show resolved Hide resolved
@@ -699,6 +703,18 @@ LogicalResult LowerLayersPass::runOnModuleBody(FModuleOp moduleOp,
hw::InnerRefAttr::get(mapped->second.second, targetRef.getName()));
}

// Update verbatims that target operations extracted alongside.
mlir::AttrTypeReplacer replacer;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't aware of this. Nice.

This continues to not address lack of global updating,
but fixes use of verbatims that are extracted along with
their targets.
@dtzSiFive dtzSiFive force-pushed the feature/lower-layers-verbatim-innerref branch from 2edaba6 to d83fd12 Compare January 17, 2025 21:05
@dtzSiFive dtzSiFive merged commit ec34415 into llvm:main Jan 21, 2025
5 checks passed
@dtzSiFive dtzSiFive deleted the feature/lower-layers-verbatim-innerref branch January 21, 2025 17:06
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