yaxunl added a comment.

In D80858#2170328 <https://reviews.llvm.org/D80858#2170328>, @hliao wrote:

> In D80858#2169534 <https://reviews.llvm.org/D80858#2169534>, @yaxunl wrote:
>
> > Another reason is that we need to support it in rdc mode, where different 
> > TU can have static var with the same name.
>
>
> That's an issue of our current RDC support through LLVM IR instead of native 
> code. The name conflicts are introduced as we link all TUs into a single 
> module at IR level. The frontend should not be changed to support that.


I am not sure if ISA level linking would help for this. My understanding is 
that the linker will rename the internal symbols having the same name from 
different objects. It does not matter if it is llvm-link or native linker. Once 
they are renamed we can no longer find them by name.

I don't see a reason why we cannot support accessing static device variable in 
FE. We have requests for this feature from different users.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80858/new/

https://reviews.llvm.org/D80858



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to