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] Allow default builders for hw.wire. #5728

Merged
merged 1 commit into from
Jul 30, 2023

Conversation

mikeurbach
Copy link
Contributor

This allows the generated Python bindings to generate a useful constructor, which is impossible otherwise.

This allows the generated Python bindings to generate a useful
constructor, which is impossible otherwise.
@mikeurbach
Copy link
Contributor Author

@fabianschuiki I think you added this originally, is there any reason to prevent the default builders? Among other things, if the default builders exist, the generated Python code for this op will have a useful constructor.

Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

There might have been some overload resolution ambiguity with StringAttrOrRef, but I think that went away again. LGTM since the tests pass 😃

I wish the builders create by TableGen would accept something like StringAttrOrRef to make it easier to pass in attribute and non-attribute values .

@mikeurbach mikeurbach merged commit 87a940b into main Jul 30, 2023
5 checks passed
@mikeurbach mikeurbach deleted the mikeurbach/hw-wire-default-builder branch July 30, 2023 21:24
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