[clang-tools-extra] [llvm] [clang] [OpenMP] atomic compare weak : Parser & AST support (PR #79475)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 26 07:29:15 PST 2024


================
@@ -13202,6 +13204,29 @@ StmtResult Sema::ActOnOpenMPAtomicDirective(ArrayRef<OMPClause *> Clauses,
       E = Checker.getE();
       D = Checker.getD();
       CE = Checker.getCond();
+      /* The weak clause may only appear if the resulting atomic operation is
+       * an atomic conditional update for which the comparison tests for
+       * equality.
+       * It was not possible to do this check in
+       * OpenMPAtomicCompareChecker::checkStmt() as the check for OMPC_weak
+       * could not be performed (Clauses are not available).
+       */
----------------
alexey-bataev wrote:

Use ะก++ style of comments

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


More information about the cfe-commits mailing list