[clang] [HLSL] Add support for SV_GroupIndex in SPIR-V (PR #130672)
Steven Perron via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 12:17:31 PDT 2025
================
@@ -1,7 +1,8 @@
-// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s | FileCheck %s
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s | FileCheck %s --check-prefixes=CHECK,CHECK-DXIL -DTARGET=dx
+// RUN: %clang_cc1 -triple spirv-unknown-vulkan-compute -x hlsl -emit-llvm -disable-llvm-passes -o - -hlsl-entry main %s | FileCheck %s --check-prefixes=CHECK,CHECK-SPIRV -DTARGET=spv
-[numthreads(1,1,1)]
-void main(unsigned GI : SV_GroupIndex) {
+[numthreads(1, 1, 1)] void main(unsigned GI : SV_GroupIndex)
+{
----------------
s-perron wrote:
Can you undo this change? It is common to put the attribute in the previous line.
https://github.com/llvm/llvm-project/pull/130672
More information about the cfe-commits
mailing list