[clang] [llvm] [AMDGPU] Add per-kernel kernarg preload count (PR #211059)

Yaxun Liu via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 12:58:16 PDT 2026


================
@@ -45,6 +45,10 @@ __attribute__((amdgpu_num_vgpr(64))) // expected-no-diagnostics
 __global__ void num_vgpr_64() {
 // CHECK: define{{.*}} amdgpu_kernel void @_Z11num_vgpr_64v() [[NUM_VGPR_64:#[0-9]+]]
 }
+__attribute__((amdgpu_kernarg_preload_count(2))) // expected-no-diagnostics
----------------
yxsamliu wrote:

Agreed, this is confusing without `-verify`. I followed the local pattern here, but I’ll track removing these comments as a separate NFC cleanup.


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


More information about the llvm-commits mailing list