[clang] [llvm] [AMDGPU] Adding the amdgpu-num-work-groups function attribute (PR #79035)
Jun Wang via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 17:30:51 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>];
+ let Args = [UnsignedArgument<"NumWorkGroupsX">, UnsignedArgument<"NumWorkGroupsY">, UnsignedArgument<"NumWorkGroupsZ">];
----------------
jwanggit86 wrote:
Changed `UnsignedArgument` to `AttrArgument`.
https://github.com/llvm/llvm-project/pull/79035
More information about the llvm-commits
mailing list