[llvm] [AMDGPU] Replace dynamic VGPR feature with attribute (PR #133444)
    Diana Picus via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Apr 23 02:22:39 PDT 2025
    
    
  
================
@@ -199,8 +199,13 @@ unsigned getMaxVGPRs(const TargetMachine &TM, const Function &F) {
   if (!TM.getTargetTriple().isAMDGCN())
     return 128;
 
+  bool IsDynamicVGPR = false;
+  if (F.hasFnAttribute("amdgpu-dynamic-vgpr"))
+    IsDynamicVGPR = F.getFnAttribute("amdgpu-dynamic-vgpr").getValueAsBool();
----------------
rovka wrote:
Thanks, that looks pretty good, I'll update the patch soon :)
https://github.com/llvm/llvm-project/pull/133444
    
    
More information about the llvm-commits
mailing list