jhuber6 wrote:

> > You could potentially link in all the symbols and internalize them
> 
> That probably won't work. After they are internalized, they have internal 
> linkage and cannot be used to resolve newly added call of the same function.
> 
> The purpose of internalization is to allow you to optimize those functions, 
> e.g. changing their signatures. After internalization, there is no guarantee 
> they behave like the original functions.

I meant this more in this particular case, if we internalize but keep all the 
symbols, then the functions will be preserved so we can call them inside of the 
module when the AMDGPU pass is run. This would then rely on some later pass to 
strip out the unused ones.

https://github.com/llvm/llvm-project/pull/69371
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to