[clang] [llvm] [AMDGPU] Adding the amdgpu-num-work-groups function attribute (PR #79035)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 12 04:29:57 PST 2024


================
@@ -2031,6 +2031,13 @@ def AMDGPUNumVGPR : InheritableAttr {
   let Subjects = SubjectList<[Function], ErrorDiag, "kernel functions">;
 }
 
+def AMDGPUNumWorkGroups : InheritableAttr {
+  let Spellings = [Clang<"amdgpu_num_work_groups", 0>];
----------------
arsenm wrote:

max_num? num_work_groups implies an exact match 

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


More information about the llvm-commits mailing list