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][OMIR] Add omir output file option to firtool. NFC. #2028

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

prithayan
Copy link
Contributor

This commit adds the option output-omir to specify the output file for OMIR output json.

@prithayan prithayan changed the title [FIRRTL[OMIR] Add omir output file option to firtool. NFC. [FIRRTL][OMIR] Add omir output file option to firtool. NFC. Oct 22, 2021
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.

This looks sane. (Also this fixes an issue where I've been manually writing the annotation in order to test these PRs. 😂 )

One consideration: currently the behavior in the pass is to use the OMIRFileAnnotation if no pass option was provided. I'd propose changing that (follow-up patch is fine) so that that case is an error. Specifying both --output-omir and OMIRFileAnnotation should be an error, IMO.

@prithayan
Copy link
Contributor Author

Thanks @seldridge , Will merge this now.

@prithayan prithayan merged commit 47bd2df into llvm:main Oct 22, 2021
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