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

Reply via email to