[clang] [llvm] [AMDGPU] Move AMDGPUAttributor earlier with lowering kernel attributes (PR #177432)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 26 09:14:57 PST 2026


================
@@ -1660,7 +2003,24 @@ static bool runImpl(Module &M, AnalysisGetter &AG, TargetMachine &TM,
     }
   }
 
-  return A.run() == ChangeStatus::CHANGED;
+  bool Changed = A.run() == ChangeStatus::CHANGED;
+
+  // Kernel attribute lowering (merged from AMDGPULowerKernelAttributesPass)
----------------
arsenm wrote:

This is just moving the code into the pass, which is still functionally a different pass. This isn't really using the frame work. The framework should be used to identify the call sites and do the rewrite instead of the old manual way 

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


More information about the llvm-commits mailing list