================
@@ -0,0 +1,11 @@
+// Host-side compilation on x86 (no errors expected).
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -aux-triple nvptx64 
-fopenmp -x c -fsyntax-only -verify=host %s
+
+// Device-side compilation for targets without 128-bit float/complex support 
(no errors expected).
----------------
Fznamznon wrote:

At least for SYCL, the type won't make it to the codegen if not used from the 
device code, i.e. not used from within device code entry points or anything 
called by them. I suppose OMP/CUDA work in a similar way. If we want to 
diagnose the problematic type , see `Sema::checkTypeSupport`  and 
`Sema::targetDiag`.

https://github.com/llvm/llvm-project/pull/214497
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to