[clang] [OpenMP] Patch for Support to loop bind clause : Checking Parent Region (PR #76938)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 4 04:09:25 PST 2024


================
@@ -5072,6 +5072,18 @@ static bool checkNestingOfRegions(Sema &SemaRef, const DSAStackTy *Stack,
         CurrentRegion != OMPD_cancellation_point &&
         CurrentRegion != OMPD_cancel && CurrentRegion != OMPD_scan)
       return false;
+    // Checks needed for mapping "loop" construct. Please check mapLoopConstruct
+    // for a detailed explanation
+    if (SemaRef.LangOpts.OpenMP >= 50 && CurrentRegion == OMPD_loop &&
+        ((BindKind == OMPC_BIND_parallel) || (BindKind == OMPC_BIND_teams)) &&
----------------
alexey-bataev wrote:

Drop extra parens

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


More information about the cfe-commits mailing list