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

Aaron Ballman via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 08:49:05 PDT 2026


================
@@ -8607,6 +8610,10 @@ void Sema::ProcessDeclAttributeList(
       Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
           << A << A->isRegularKeywordAttribute() << ExpectedKernelFunction;
       D->setInvalidDecl();
+    } else if (const auto *A = D->getAttr<AMDGPUKernargPreloadCountAttr>()) {
----------------
AaronBallman wrote:

The FIXME above the block of code is getting closer to being a requirement, just in case you feel like being nerd sniped into doing some refactoring work before working on this PR. :-D

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


More information about the llvm-commits mailing list