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

Fix synthesis of vectors with small integers. #1395

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

schweitzpgi
Copy link
Collaborator

@schweitzpgi schweitzpgi commented Mar 14, 2024

The constant array op is using at ArrayAttr, which does not naturally support integral sizes less than i32. This patch upcasts the short values to i32 to get around the issue. Another approach would be to have the constant array op take a DenseArrayAttr, which does support the shorter integral types. Might need a custom parser/pretty printer if we go that route?

Fix #1384

The constant array op is using at ArrayAttr, which does not naturally
support integral sizes less than i32. This patch upcasts the short
values to i32 to get around the issue. Another approach would be to
have the constant array op take a DenseArrayAttr, which does support
the shorter integral types. Might need a custom parser/pretty printer
if we go that route?
@schweitzpgi schweitzpgi changed the title Fix #1348 - synthesis of vectors with small integers. Fix #1384 - synthesis of vectors with small integers. Mar 14, 2024
Copy link
Collaborator

@1tnguyen 1tnguyen left a comment

Choose a reason for hiding this comment

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

LGTM.

@schweitzpgi schweitzpgi enabled auto-merge (squash) March 14, 2024 02:03
@schweitzpgi
Copy link
Collaborator Author

schweitzpgi commented Mar 14, 2024

/ok to test

Command Bot: Processing...

@schweitzpgi schweitzpgi merged commit 30e1d3b into NVIDIA:main Mar 14, 2024
133 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2024
@bettinaheim bettinaheim changed the title Fix #1384 - synthesis of vectors with small integers. Fix synthesis of vectors with small integers. Apr 17, 2024
@bettinaheim bettinaheim added the bug fix To be listed under Bug Fixes in the release notes label Apr 17, 2024
@bettinaheim bettinaheim added this to the release 0.7.1 milestone Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fix To be listed under Bug Fixes in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QuakeSynthesizer cannot handle std::vector<char> argument type
3 participants