You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[OpenMP] atomic compare weak : Parser & AST support (#79475)
This is a support for " #pragma omp atomic compare weak". It has Parser
& AST support for now.
---------
Authored-by: Sunil Kuravinakop <[email protected]>
"expect lvalue for result value|expect scalar value|expect integer value|unexpected 'else' statement|expect '==' operator|expect an assignment statement 'v = x'|"
11043
11043
"expect a 'if' statement|expect no more than two statements|expect a compound statement|expect 'else' statement|expect a form 'r = x == e; if (r) ...'}0">;
11044
11044
def err_omp_atomic_fail_wrong_or_no_clauses : Error<"expected a memory order clause">;
11045
-
def err_omp_atomic_fail_no_compare : Error<"expected 'compare' clause with the 'fail' modifier">;
11045
+
def err_omp_atomic_no_compare : Error<"expected 'compare' clause with the '%0' modifier">;
11046
+
def err_omp_atomic_weak_no_equality : Error<"expected '==' operator for 'weak' clause">;
11046
11047
def err_omp_atomic_several_clauses : Error<
11047
11048
"directive '#pragma omp atomic' cannot contain more than one 'read', 'write', 'update', 'capture', or 'compare' clause">;
0 commit comments