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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to