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

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 23 09:25:54 PDT 2024


jhuber6 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.

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


More information about the cfe-commits mailing list