[llvm] [AMDGPU] Debug dump for AMDGPU resource usage (PR #122952)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 18:55:42 PST 2025


================
@@ -165,6 +174,20 @@ void MCResourceInfo::gatherResourceInfo(
   const TargetMachine &TM = MF.getTarget();
   MCSymbol *FnSym = TM.getSymbol(&MF.getFunction());
 
+  LLVM_DEBUG(dbgs() << "MCResUse: Gathering resource information for "
+                    << FnSym->getName() << "\n");
----------------
arsenm wrote:

```suggestion
                    << FnSym->getName() << '\n');
```

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


More information about the llvm-commits mailing list