[llvm-branch-commits] [clang] [HLSL] Add implicit binding attribute to resource arrays (PR #152452)

Joshua Batista via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 7 11:13:41 PDT 2025


================
@@ -34,6 +34,10 @@ RWBuffer<float> UAV1 : register(u2), UAV2 : register(u4);
 // CHECK: HLSLResourceBindingAttr {{.*}} "" "space5"
 RWBuffer<float> UAV3 : register(space5);
 
+// CHECK: VarDecl {{.*}} UAV_Array 'RWBuffer<float>[10]'
----------------
bob80905 wrote:

Should we add a test case where HLSLVkBindingAttr already exists (I presume an explicit binding case), we check for HLSLVkBindingAttr, and check NOT that the new attr is added?

https://github.com/llvm/llvm-project/pull/152452


More information about the llvm-branch-commits mailing list