[clang] [clang][SYCL] Disable float128 device mode diagnostic (PR #128513)

Nicolas Miller via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 13 08:32:56 PDT 2025


================
@@ -4700,7 +4700,8 @@ void Sema::AddModeAttr(Decl *D, const AttributeCommonInfo &CI,
 
   if (NewElemTy.isNull()) {
     // Only emit diagnostic on host for 128-bit mode attribute
-    if (!(DestWidth == 128 && getLangOpts().CUDAIsDevice))
+    if (!(DestWidth == 128 &&
+          (getLangOpts().CUDAIsDevice || getLangOpts().SYCLIsDevice)))
----------------
npmiller wrote:

No I'm not very familiar with this part of the compiler, and even less with OpenMP.

https://github.com/llvm/llvm-project/pull/128513


More information about the cfe-commits mailing list