[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 4 09:55:49 PDT 2024


================
@@ -13004,13 +13004,34 @@ StmtResult SemaOpenMP::ActOnOpenMPTargetUpdateDirective(
                                           Clauses, AStmt);
 }
 
+// This checks whether num_teams clause only has one expression.
+static bool checkNumTeamsClauseSingleExpr(SemaBase &SemaRef,
----------------
jdoerfert wrote:

Pass the maximal number of expressions as a parameter since you also need to check the ompx_bare version has at most 3. The diagnosis message then needs to print the maximum, maybe also mention ompx_bare.

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


More information about the cfe-commits mailing list