[clang] [Clang][OpenMP] Add parsing for dims modifier in num_teams and thread_limit (PR #206412)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 30 06:30:34 PDT 2026


================
@@ -12792,9 +12792,11 @@ def warn_omp_unterminated_declare_target : Warning<
   "expected '#pragma omp end declare target' at end of file to match '#pragma omp %0'">,
   InGroup<SourceUsesOpenMP>;
 def err_ompx_bare_no_grid : Error<
-  "'ompx_bare' clauses requires explicit grid size via 'num_teams' and 'thread_limit' clauses">;
-def err_omp_multi_expr_not_allowed: Error<"only one expression allowed in '%0' clause">;
-def err_ompx_more_than_three_expr_not_allowed: Error<"at most three expressions are allowed in '%0' clause in 'target teams ompx_bare' construct">;
+  "'ompx_bare' clause requires explicit grid size via 'num_teams' and 'thread_limit' clauses">;
+def err_ompx_bare_no_dims : Error<
+  "'ompx_bare' clause cannot be specified with 'dims' modifier in 'num_teams' and 'thread_limit' clauses">;
+def err_omp_multi_expr_not_allowed : Error<"only one expression allowed in '%0' clause">;
----------------
alexey-bataev wrote:

Unused

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


More information about the cfe-commits mailing list