yaxunl added a comment.

In D118153#3270122 <https://reviews.llvm.org/D118153#3270122>, @tra wrote:

> LGTM.
>
> Do we need to do anything special about `__managed__` vars?

Right `__managed__` var is special. Its address is set by runtime, therefore it 
is not a constant. nvcc does not treat it as constant either. 
https://godbolt.org/z/jK534MxfG I will fix it.

BTW I just found a regression related to templates in 
CodeGenCUDA/host-used-device-var.cu. I will fix that and update this patch.


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

https://reviews.llvm.org/D118153

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

Reply via email to