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

Vikram Hegde via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 12 23:00:19 PDT 2025


================
@@ -93,6 +93,13 @@ FUNCTION_PASS_WITH_PARAMS(
     parseAMDGPUAtomicOptimizerStrategy, "strategy=dpp|iterative|none")
 #undef FUNCTION_PASS_WITH_PARAMS
 
+#ifndef MACHINE_FUNCTION_ANALYSIS
+#define MACHINE_FUNCTION_ANALYSIS(NAME, CREATE_PASS)
+#endif
+
+MACHINE_FUNCTION_ANALYSIS("amdgpu-resource-usage", AMDGPUResourceUsageAnalysis(static_cast<const GCNTargetMachine *>(this)))
+#undef MACHINE_FUNCTION_ANALYSIS
----------------
vikramRH wrote:

will adapt this to use target subclass

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


More information about the llvm-commits mailing list