[clang] [llvm] [AMDGPU] Adding the amdgpu-num-work-groups function attribute (PR #79035)
Erich Keane via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 12 07:09:02 PST 2024
================
@@ -2705,6 +2705,30 @@ An error will be given if:
}];
}
+def AMDGPUNumWorkGroupsDocs : Documentation {
+ let Category = DocCatAMDGPUAttributes;
+ let Content = [{
+The number of work groups specifies the number of work groups when the kernel
+is dispatched.
+
+Clang supports the
+``__attribute__((amdgpu_num_work_groups(<x>, <y>, <z>)))`` attribute for the
----------------
erichkeane wrote:
I think we prefer spelling it `[[clang::...]]` now in documentation. I personally would prefer we move everyone to that as well.
https://github.com/llvm/llvm-project/pull/79035
More information about the llvm-commits
mailing list