[clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause. (PR #174646)
Zahira Ammarguellat via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 13 07:18:52 PST 2026
================
@@ -12477,6 +12465,10 @@ 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">;
+def err_omp_transparent_invalid_value : Error<"invalid value for transparent clause,"
+ " expected one of: omp_not_impex, omp_import, omp_export, omp_impex">;
+def err_omp_transparent_invalid_type : Error<
+ "transparent clause cannot be applied to type: %0">;
----------------
zahiraam wrote:
Looks like we can't using a modifier when the diag argument is a `QualType`. It's crashing here: https://github.com/llvm/llvm-project/blob/main/clang/lib/AST/ASTDiagnostic.cpp#L427
https://github.com/llvm/llvm-project/pull/174646
More information about the cfe-commits
mailing list