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

[Firtool] Move the remaining pass additions into lib #6094

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

SpriteOvO
Copy link
Member

Context: #6036 (comment)

Copy link
Contributor

@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

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

Thanks for working on this, I think this is a good refactoring to do.

However, see my comments about createHWExportModuleHierarchyPass, I think we need to be careful here to maintain the previous behavior.

include/circt/Dialect/SV/SVPasses.h Outdated Show resolved Hide resolved
include/circt/Firtool/Firtool.h Outdated Show resolved Hide resolved
lib/Firtool/Firtool.cpp Outdated Show resolved Hide resolved
@SpriteOvO
Copy link
Member Author

@mikeurbach Thanks for your review ^^, I have updated this PR according to your suggestions.

@mikeurbach mikeurbach dismissed their stale review September 12, 2023 19:40

Dismissed after latest updates.

Copy link
Contributor

@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

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

I think this looks good now. I would like to get some other eyes on it as well. @nandor @youngar I think you two looked at the initial creation of lib/Firtool, any gotchas we're missing here?

@SpriteOvO
Copy link
Member Author

Oh, I forgot to say, in the latest commit, I made the populatePrepareForExportVerilog function private to users by moving it into a detail namespace and calling it inside populateExport{,Split}Verilog, so that users are no longer required to call it manually before export.

@mikeurbach
Copy link
Contributor

Oh, I forgot to say, in the latest commit, I made the populatePrepareForExportVerilog function private to users by moving it into a detail namespace and calling it inside populateExport{,Split}Verilog, so that users are no longer required to call it manually before export.

I like this. It makes sense to me--if you're using the firtool pipeline, when you go to export verilog, some of those preparation transformations are required for correctness.

@sequencer
Copy link
Contributor

Any chance to get this PR in?

Copy link
Contributor

@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

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

Sorry, I thought I had marked approved. I think this is ready to go, except it seems some merge conflicts exist. Someone must have added a new pass :/ All the more reason to get this merged.

@SpriteOvO
Copy link
Member Author

@mikeurbach I have rebased the PR, and will merge it once the CI are all green. Thank you again!

@SpriteOvO SpriteOvO merged commit 7fdad47 into llvm:main Sep 19, 2023
@SpriteOvO SpriteOvO deleted the firtool-lib-more-fn branch September 19, 2023 09:45
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