Jan =?utf-8?q?André?= Reuter <[email protected]>,
Jan =?utf-8?q?André?= Reuter <[email protected]>,
Jan =?utf-8?q?André?= Reuter <[email protected]>,
Jan =?utf-8?q?André?= Reuter <[email protected]>,
Jan =?utf-8?q?André?= Reuter <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


================
@@ -7366,17 +7366,50 @@ static void emitCommonOMPTeamsDirective(CodeGenFunction 
&CGF,
           CGF, S, *CS->getCapturedDecl()->param_begin(), InnermostKind,
           CodeGen);
 
-  const auto *NT = S.getSingleClause<OMPNumTeamsClause>();
-  const auto *TL = S.getSingleClause<OMPThreadLimitClause>();
-  if (NT || TL) {
-    const Expr *NumTeams = NT ? NT->getNumTeams().front() : nullptr;
-    const Expr *ThreadLimit = TL ? TL->getThreadLimit().front() : nullptr;
+  OMPTeamsScope Scope(CGF, S);
+  auto &&ParallelLeague = [&S](CodeGenFunction &CGF, PrePostActionTy &) {
----------------
alexey-bataev wrote:

```suggestion
  auto ParallelLeague = [&S](CodeGenFunction &CGF, PrePostActionTy &) {
```

https://github.com/llvm/llvm-project/pull/207444
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to