rjmccall added a comment.

In D57188#1374890 <https://reviews.llvm.org/D57188#1374890>, @yaxunl wrote:

> This change causes regressions for CUDA/HIP. As single-source language, 
> CUDA/HIP code contains both device and host code. It has separate compilation 
> for host and device.
>  In host compilation, device function is parsed but not emitted in IR. The 
> device function may have _Float16 argument, which is fine if device target 
> supports it. Host compilation
>  should not diagnose use of _Float16 in device functions. However, current 
> implementation diagnose any _Float16 usage in host compilation.


Can this be reasonably delayed using the existing diagnostic-delay mechanism, 
or is there a problem where the diagnostics aren't necessarily bound to a 
function definition?


Repository:
  rL LLVM

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

https://reviews.llvm.org/D57188



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

Reply via email to