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] Clean up instances in ExtractClasses. #5395

Merged
merged 3 commits into from
Jun 16, 2023

Conversation

mikeurbach
Copy link
Contributor

After classes are extracted from FIRRTL modules, the property ports of the module are removed. This patch extends the pass to also update instances of mutated modules, so their instantiations remain correct. It also removes modules that only existed for properties.

@mikeurbach
Copy link
Contributor Author

This is currently based on #5394.

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

lib/Dialect/FIRRTL/Transforms/ExtractClasses.cpp Outdated Show resolved Hide resolved
test/Dialect/FIRRTL/extract-classes.mlir Outdated Show resolved Hide resolved
Base automatically changed from mikeurbach/firrtl-extract-classes-pass to main June 15, 2023 02:49
After classes are extracted from FIRRTL modules, the property ports of
the module are removed. This patch extends the pass to also update
instances of mutated modules, so their instantiations remain
correct. It also removes modules that only existed for properties.
@mikeurbach mikeurbach force-pushed the mikeurbach/firrtl-extract-classes-cleanup branch from 5549542 to b6d6a08 Compare June 16, 2023 04:21
@mikeurbach mikeurbach merged commit 1651ddd into main Jun 16, 2023
@mikeurbach mikeurbach deleted the mikeurbach/firrtl-extract-classes-cleanup branch June 16, 2023 15:50
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.

3 participants