[clang] [llvm] [AMDGPU] Adding the amdgpu-num-work-groups function attribute (PR #79035)
Jun Wang via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 16 17:28:05 PST 2024
================
@@ -1108,3 +1108,8 @@ void GCNUserSGPRUsageInfo::allocKernargPreloadSGPRs(unsigned NumSGPRs) {
unsigned GCNUserSGPRUsageInfo::getNumFreeUserSGPRs() {
return AMDGPU::getMaxNumUserSGPRs(ST) - NumUsedUserSGPRs;
}
+
+SmallVector<unsigned>
----------------
jwanggit86 wrote:
This function calls `getIntegerVecAttribute()` which returns `SmallVector`. If change this to std::array<3>, the other function has to be changed as well.
https://github.com/llvm/llvm-project/pull/79035
More information about the cfe-commits
mailing list