[clang] [clang][sema] Suppress unsupported 128-bit mode attribute diagnostic for OpenMP device compilation (PR #214497)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 14 07:52:27 PDT 2026


================
@@ -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).
----------------
jhuber6 wrote:

Offloading languages are basically woefully optimistic about types. They declare all the types to match, which can result in things that are mutually incompatible (i.e. long double giving you fp80 on a GPU which cannot codegen it). There's tons of hacks around stuff like this.

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


More information about the cfe-commits mailing list