[llvm] [AMDGPU] Change scope of resource usage info symbols (PR #114810)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 06:18:56 PST 2024


jhuber6 wrote:

> I should add that none of the resource information symbols are currently (i.e., at the time of writing) used for object linking and only reproduces the prior functionality of resolving module scope resource information. I guess whether these are to be made local or not depends on whether the object linking solution with resource info is going to be immediately bespoke, or will use these symbols directly (either way I expect these symbols to be used, whether directly or through some bespoke resource info linking structure/ABI).

I'm wondering what the best way to handle this would be. My guess would be a struct of metadata per function, then we emit that something in the ELF (Maybe a separate section). Then we can probably re-use the profile call-graph support to just create edges between functions and look up their metadata.

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


More information about the llvm-commits mailing list