-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Move helper functions out of SemaHLSL into a common location for SemaSPIRV to use #123831
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
Comments
Keep in mind not all hlsl vector rules apply to spirv. For example half and double data type rules in hlsl will be different from spirv. |
@llvm/issue-subscribers-clang-frontend Author: Deric Cheung (Icohedron)
While working on #122992, @inbelic [mentioned](https://github.com//pull/122992#pullrequestreview-2559625948) that the semantics checks in `clang/lib/Sema/SemaSPIRV.cpp` could be simplified by using helper functions that are currently only present in `clang/lib/Sema/SemaHLSL.cpp`, such as `CheckArgTypeIsCorrect` and `CheckAllArgTypesAreCorrect`.
It would be useful to migrate the helper functions out of |
Hi! This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below. |
@llvm/issue-subscribers-good-first-issue Author: Deric Cheung (Icohedron)
While working on #122992, @inbelic [mentioned](https://github.com//pull/122992#pullrequestreview-2559625948) that the semantics checks in `clang/lib/Sema/SemaSPIRV.cpp` could be simplified by using helper functions that are currently only present in `clang/lib/Sema/SemaHLSL.cpp`, such as `CheckArgTypeIsCorrect` and `CheckAllArgTypesAreCorrect`.
It would be useful to migrate the helper functions out of |
I'd like to be assigned to this. I'll try to extract the common part with the 2 functions mentioned in the issue and the |
Hey, is this issue being worked upon by someone? Would like to work on this. |
@kunxl-gg this issue is blocked. We should remove the good first issue from this ticket. The last pr revealed this was a more complicated ask than we had considered. |
While working on #122992, @inbelic mentioned that the semantics checks in
clang/lib/Sema/SemaSPIRV.cpp
could be simplified by using helper functions that are currently only present inclang/lib/Sema/SemaHLSL.cpp
, such asCheckArgTypeIsCorrect
andCheckAllArgTypesAreCorrect
.It would be useful to migrate the helper functions out of
SemaHLSL
into a common location accessible to bothSemaHLSL
andSemaSPIRV
to make the code inSemaSPIRV
less verbose and more readable.The text was updated successfully, but these errors were encountered: