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

[HW] Make module's doNotPrint a UnitAttr #7777

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

rwy7
Copy link
Contributor

@rwy7 rwy7 commented Nov 6, 2024

Currently, doNotPrint is a boolean attribute, but using an optional unit attribute is a more idiomatic way to represent a flag as an attribute.

Changes:

  • Switch doNotPrint over to a unit attribute
  • Replace getAttr("doNotPrint") with accessors like getDoNotPrint
  • Add doNotPrint to the HW dialect's ModuleLike interface, so we can switch even more places over to use the accessor.

Currently, doNotPrint is a boolean attribute, but using an optional unit
attribute is a more idiomatic way to represent a flag as an attribute.

Changes:
- Switch doNotPrint over to a unit attribute
- Replace getAttr("doNotPrint") with accessors like getDoNotPrint
- Add doNotPrint to the HW dialect's ModuleLike interface, so we can switch
  even more places over to use the accessor.
@rwy7 rwy7 merged commit 5179f26 into llvm:main Nov 6, 2024
4 checks passed
@rwy7 rwy7 deleted the do-not-print-as-unit-attr branch November 6, 2024 19:25
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