Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Verif][NFC] Use auto-generated constructors for all passes #7754

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

fabianschuiki
Copy link
Contributor

Drop the let constructor line from the Verif pass definitions. This causes TableGen to automatically generate the constructors for these passes, and also handle pass options if we ever decide to add them.

This requires adding a ...Pass to the end of each pass def to produce a constructor name of the form create...Pass().

Verified

This commit was signed with the committer’s verified signature.
fabianschuiki Fabian Schuiki
Drop the `let constructor` line from the Verif pass definitions. This
causes TableGen to automatically generate the constructors for these
passes, and also handle pass options if we ever decide to add them.

This requires adding a `...Pass` to the end of each pass def to produce
a constructor name of the form `create...Pass()`.
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

Thanks for this cleanup. This would be great to roll out everywhere.

@@ -1,4 +1,4 @@
//===-- Passes.td - Verif pass definition file ----------------*- tablegen -*-===//
//===-- Passes.td - Verif pass definition file -------------*- tablegen -*-===//
Copy link
Member

Choose a reason for hiding this comment

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

💯

@fabianschuiki fabianschuiki changed the title [Verif][NFC] Used auto-generated constructors for all passes [Verif][NFC] Use auto-generated constructors for all passes Oct 31, 2024
@fabianschuiki fabianschuiki merged commit 9d92072 into main Oct 31, 2024
4 checks passed
@fabianschuiki fabianschuiki deleted the fschuiki/verif-pass-ctors branch October 31, 2024 03:06
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants