[clang] [HIP] Define `_OPENMP` on the device for mixed OpenMP CPU compilations (PR #176791)

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 21 09:37:40 PST 2026


================
@@ -223,6 +223,7 @@ LANGOPT(NativeInt16Type   , 1, 1, NotCompatible, "Native int 16 type support")
 LANGOPT(CUDA              , 1, 0, NotCompatible, "CUDA")
 LANGOPT(HIP               , 1, 0, NotCompatible, "HIP")
 LANGOPT(OpenMP            , 32, 0, NotCompatible, "OpenMP support and version of OpenMP (31, 40 or 45)")
+LANGOPT(OpenMPMacros      , 1, 0, NotCompatible, "Define the OpenMP Macros")
----------------
jdoerfert wrote:

`m`acro
We should name it "macro(s) only", I think. This would imply it's not (full) OpenMP.

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


More information about the cfe-commits mailing list