[clang] [llvm] [HLSL][SPIR-V] Add SV_DispatchThreadID semantic support (PR #82536)
Natalie Chouinard via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 26 13:02:49 PST 2024
================
@@ -1427,6 +1432,8 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
.addUse(I.getOperand(2).getReg())
.addUse(I.getOperand(3).getReg());
break;
+ case Intrinsic::dx_thread_id:
+ return selectDXThreadId(ResVReg, ResType, I);
----------------
sudonatalie wrote:
Thanks, I was surprised that it worked but didn't know whether that indicated it was by design or accident. I added an analogous SPIR-V intrinsic.
https://github.com/llvm/llvm-project/pull/82536
More information about the cfe-commits
mailing list