[llvm] [AMDGPU][NewPM] Port "AMDGPUResourceUsageAnalysis" to NPM (PR #130959)

Vikram Hegde via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 28 03:06:09 PDT 2025


================
@@ -44,23 +45,43 @@ struct AMDGPUResourceUsageAnalysis : public MachineFunctionPass {
     SmallVector<const Function *, 16> Callees;
   };
 
-  AMDGPUResourceUsageAnalysis() : MachineFunctionPass(ID) {}
+  SIFunctionResourceInfo
+  analyzeResourceUsage(const MachineFunction &MF,
+                       uint32_t AssumedStackSizeForDynamicSizeObjects,
+                       uint32_t AssumedStackSizeForExternalCall) const;
+};
+
+struct AMDGPUResourceUsageAnalysisWrapperPass : public MachineFunctionPass {
+  using ResultT = AMDGPUResourceUsageAnalysisImpl::SIFunctionResourceInfo;
----------------
vikramRH wrote:

renamed to "FunctionResourceInfo"

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


More information about the llvm-commits mailing list