-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[HLSL] implement SV_GroupThreadId
semantic
#70122
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
Closed
Labels
backend:SPIR-V
clang:codegen
IR generation bugs: mangling, exceptions, etc.
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
HLSL
HLSL Language Support
Comments
I'll work on this task. |
lizhengxing
added a commit
to lizhengxing/llvm-project
that referenced
this issue
Nov 26, 2024
Support SV_GroupThreadId attribute. Translate it into dx.thread.id.in.group in clang codeGen. Fixes: llvm#70122
lizhengxing
added a commit
to lizhengxing/llvm-project
that referenced
this issue
Dec 6, 2024
Support SV_GroupThreadId attribute. Translate it into dx.thread.id.in.group in clang codeGen. Fixes: llvm#70122
lizhengxing
added a commit
to lizhengxing/llvm-project
that referenced
this issue
Dec 6, 2024
The HLSL SV_GroupThreadID semantic attribute is lowered into @llvm.spv.thread.id.in.group intrinsic in LLVM IR for SPIR-V target. In the SPIR-V backend, this is now correctly translated to a `LocalInvocationId` builtin variable. Fixes llvm#70122
lizhengxing
added a commit
to lizhengxing/llvm-project
that referenced
this issue
Dec 10, 2024
Support SV_GroupThreadId attribute. Translate it into dx.thread.id.in.group in clang codeGen. Fixes: llvm#70122
lizhengxing
added a commit
to lizhengxing/llvm-project
that referenced
this issue
Dec 10, 2024
The HLSL SV_GroupThreadID semantic attribute is lowered into @llvm.spv.thread.id.in.group intrinsic in LLVM IR for SPIR-V target. In the SPIR-V backend, this is now correctly translated to a `LocalInvocationId` builtin variable. Fixes llvm#70122
spall
pushed a commit
that referenced
this issue
Dec 10, 2024
Support HLSL SV_GroupThreadId attribute. For `directx` target, translate it into `dx.thread.id.in.group` in clang codeGen and lower `dx.thread.id.in.group` to `dx.op.threadIdInGroup` in LLVM DirectX backend. For `spir-v` target, translate it into `spv.thread.id.in.group` in clang codeGen and lower `spv.thread.id.in.group` to a `LocalInvocationId` builtin variable in LLVM SPIR-V backend. Fixes: #70122
@llvm/issue-subscribers-clang-codegen Author: Chris B (llvm-beanz)
Implement the HLSL `SV_GroupThreadId` semantic for entry parameter declarations:
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sv-groupthreadid |
@llvm/issue-subscribers-clang-frontend Author: Chris B (llvm-beanz)
Implement the HLSL `SV_GroupThreadId` semantic for entry parameter declarations:
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sv-groupthreadid |
This was referenced Feb 8, 2025
12 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backend:SPIR-V
clang:codegen
IR generation bugs: mangling, exceptions, etc.
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
HLSL
HLSL Language Support
Implement the HLSL
SV_GroupThreadId
semantic for entry parameter declarations:https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sv-groupthreadid
The text was updated successfully, but these errors were encountered: