[llvm] AMDGPU: Propagate amdgpu-max-num-workgroups attribute (PR #113018)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 16:01:40 PDT 2024
================
@@ -179,6 +179,11 @@ class AMDGPUInformationCache : public InformationCache {
return {ST.getMinFlatWorkGroupSize(), ST.getMaxFlatWorkGroupSize()};
}
+ SmallVector<unsigned> getMaxNumWorkGroups(const Function &F) {
+ const GCNSubtarget &ST = TM.getSubtarget<GCNSubtarget>(F);
----------------
arsenm wrote:
This is attributor boilerplate like the other subtarget queries
https://github.com/llvm/llvm-project/pull/113018
More information about the llvm-commits
mailing list