-
Notifications
You must be signed in to change notification settings - Fork 243
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
Fix translation of APInt constants #752
Conversation
2d233c2
to
b64279c
Compare
There was a problem hiding this 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
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. |
b64279c
to
bbffd78
Compare
There was a problem hiding this 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
bbffd78
to
0ae0698
Compare
0ae0698
to
5223ad9
Compare
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]>
5223ad9
to
85d271a
Compare
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]