[PATCH] D127855: [OpenMP] Basic parse and sema support for modifiers in order clause

Sandeep via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 9 20:53:03 PST 2022


sandeepkosuri added inline comments.


================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:10634
   "OpenMP constructs may not be nested inside an atomic region">;
+def err_omp_prohibited_region_order
+    : Error<"construct %0 not allowed in a region associated with a directive "
----------------
ABataev wrote:
> Do you have the test for this error message?
I forgot to add a test for this, I will do it. Thanks for noticing.


================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:875
+  /// false - otherwise.
+  bool HasOrderConcurrent() const {
+    if (const SharingMapTy *Top = getTopOfStackOrNull())
----------------
ABataev wrote:
> `isOrderConcurrent`
This function is never used, So I will remove this altogether. Thanks for pointing this out.


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

https://reviews.llvm.org/D127855



More information about the cfe-commits mailing list