Skip to content

Fix translation of APInt constants #752

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

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

MrSidims
Copy link
Contributor

Previously APInt constants were being stored into uint64_t value
with following encoding/decoding. Now they are being packed into
SPIRVWords array directly.

Signed-off-by: Dmitry Sidorov [email protected]

@MrSidims
Copy link
Contributor Author

@MrSidims MrSidims force-pushed the private/MrSidims/APInt branch 2 times, most recently from 2d233c2 to b64279c Compare September 23, 2020 14:37
Copy link
Contributor

@AlexeySachkov AlexeySachkov left a comment

Choose a reason for hiding this comment

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

Overall looks good to me.

I though that we would completely replace Words field of UnionType union with APInt to fully eliminate the size limit for constants, but we can do that later

@MrSidims
Copy link
Contributor Author

Overall looks good to me.

I though that we would completely replace Words field of UnionType union with APInt to fully eliminate the size limit for constants, but we can do that later

Problem here is that this requires to make a lot of reworks in encode/decode functions: APInt is mapped to just SPIRVInt, hence the default flow shall be also re-worked.

@MrSidims MrSidims force-pushed the private/MrSidims/APInt branch from b64279c to bbffd78 Compare October 1, 2020 12:53
Copy link
Contributor

@AlexeySachkov AlexeySachkov left a comment

Choose a reason for hiding this comment

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

I don't have strong objections, a few questions/comments

@MrSidims MrSidims force-pushed the private/MrSidims/APInt branch from bbffd78 to 0ae0698 Compare October 2, 2020 10:53
@MrSidims MrSidims force-pushed the private/MrSidims/APInt branch from 0ae0698 to 5223ad9 Compare October 5, 2020 09:15
Previously APInt constants were being stored into uint64_t value
with following encoding/decoding. Now they are being packed into
SPIRVWords array directly.

Signed-off-by: Dmitry Sidorov <[email protected]>
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.

5 participants