[llvm] [AMDGPU][NPM] Port AMDGPUArgumentUsageInfo to NPM (PR #170886)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 7 09:58:07 PST 2025


================
@@ -168,32 +172,68 @@ struct AMDGPUFunctionArgInfo {
   static AMDGPUFunctionArgInfo fixedABILayout();
 };
 
-class AMDGPUArgumentUsageInfo : public ImmutablePass {
+class AMDGPUArgumentUsageInfo {
 private:
   DenseMap<const Function *, AMDGPUFunctionArgInfo> ArgInfoMap;
 
 public:
-  static char ID;
-
   static const AMDGPUFunctionArgInfo ExternFunctionInfo;
   static const AMDGPUFunctionArgInfo FixedABIFunctionInfo;
 
-  AMDGPUArgumentUsageInfo() : ImmutablePass(ID) { }
+  bool doInitialization(Module &M);
+  bool doFinalization(Module &M);
----------------
arsenm wrote:

Shouldn't copy the old PM method names here

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


More information about the llvm-commits mailing list