[clang] [llvm] [AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (PR #102913)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 04:23:51 PDT 2024


arsenm wrote:

> If we already have per-function metadata, I'm wondering how difficult it would be to put this handling in the linker. AFAIK there's already handling for `call-graph-profile` which can inform the linker of the call-graph, so we could potentially just walk that graph, find the diameter of the register usage and then emit it in the final HSA metadata. There would still be the issue of LDS usage, but we could probably just state that LDS used by a kernel outside the current TU doesn't work for starters.

That would be the ultimate goal. We need to think harder about what the final ABI looks like, instead of creating a new symbol for every individual field 

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


More information about the llvm-commits mailing list