-
Notifications
You must be signed in to change notification settings - Fork 697
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
[SPIR-V] Implement SpirvType and SpirvOpaqueType #6156
[SPIR-V] Implement SpirvType and SpirvOpaqueType #6156
Conversation
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.
Generally look okay to me. I have a request for a few extra comments, and if you can split out the ConstEvaluator refactor into a separate PR, that would be nice.
Also @llvm-beanz should look at this as well (or someone else for MS) since you are making significant chagnes to SEMA.
This refactor is split out from microsoft#6156, which needs to use these methods in LowerTypeVisitor.
2155592
to
503e09e
Compare
This moves functions for evaluating constant expressions and translating LLVM AP types to SPIR-V constants into a new class. These functions need to be used from LowerTypeVisitor in #6156, so I am factoring them out to avoid duplication.
Implements hlsl-specs proposal 0011, adding `vk::SpirvType` and `vk::SpirvOpaqueType` templates which allow users to define and use SPIR-V level types.
503e09e
to
83cd745
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.
LGTM % a review from someone at MS
…o spirv-type-intrinsic
…o spirv-type-intrinsic
…o spirv-type-intrinsic
@sudonatalie @llvm-beanz I've updated this PR based on the design changes to 0011. |
LGTM @llvm-beanz Can you take another look? |
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.
Sorry for the delay in reviewing this. It looks great to me. Thank you!
Implements hlsl-specs proposal 0011, adding
vk::SpirvType
andvk::SpirvOpaqueType
templates which allow users to define and use SPIR-V level types.