Open
Description
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 in clang/lib/Sema/SemaHLSL.cpp
, such as CheckArgTypeIsCorrect
and CheckAllArgTypesAreCorrect
.
It would be useful to migrate the helper functions out of SemaHLSL
into a common location accessible to both SemaHLSL
and SemaSPIRV
to make the code in SemaSPIRV
less verbose and more readable.
Metadata
Metadata
Assignees
Type
Projects
Status
Ready
Milestone
Relationships
Development
No branches or pull requests
Activity
reflect
HLSL function #122992farzonl commentedon Jan 21, 2025
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.
llvmbot commentedon Jan 28, 2025
@llvm/issue-subscribers-clang-frontend
Author: Deric Cheung (Icohedron)
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.[-][HLSL] Move helper functions out of SemaHLSL into a common location for SemaSPIRV to use[/-][+]Move helper functions out of SemaHLSL into a common location for SemaSPIRV to use[/+]llvmbot commentedon Jan 28, 2025
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:
test/
create fine-grained testing targets, so you can e.g. usemake check-clang-ast
to only run Clang's AST tests.git clang-format HEAD~1
to format your changes.If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
llvmbot commentedon Jan 28, 2025
@llvm/issue-subscribers-good-first-issue
Author: Deric Cheung (Icohedron)
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.bassiounix commentedon Jan 30, 2025
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
SemaSPIRV.cpp
.kunxl-gg commentedon Mar 13, 2025
Hey, is this issue being worked upon by someone? Would like to work on this.
farzonl commentedon Mar 13, 2025
@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.