[Openmp-commits] [PATCH] D106509: [OpenMP][OpenACC] Implement `ompx_hold` map type modifier extension in Clang (1/2)

Alexey Bataev via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Aug 12 04:01:24 PDT 2021


ABataev added inline comments.


================
Comment at: clang/include/clang/Driver/Options.td:2382-2385
+def fopenmp_extensions : Flag<["-"], "fopenmp-extensions">, Group<f_Group>,
+                         Flags<[CC1Option, NoArgumentUnused]>;
+def fno_openmp_extensions : Flag<["-"], "fno-openmp-extensions">, Group<f_Group>,
+                            Flags<[NoArgumentUnused]>;
----------------
Use marshalling, if possible


================
Comment at: clang/lib/Basic/OpenMPKinds.cpp:64
+      return OMPC_MAP_MODIFIER_unknown;
+    if (!LangOpts.OpenMPExtensions && Type == OMPC_MAP_MODIFIER_ompx_hold)
       return OMPC_MAP_MODIFIER_unknown;
----------------
I would enable this since OpenMP 5.2, since in 5.2 `ompx_` is officially allowed extension format.


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

https://reviews.llvm.org/D106509



More information about the Openmp-commits mailing list