[PATCH] D110714: [Flang][openmp] Added semantic checks for atomic construct

Peixin Qiao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 7 19:53:00 PST 2021


peixin added a comment.

I think the following check is not correct. I guess you referred to C/C++ code format.

`In atomic update statement, the statements must be of the form x = x operator expr or x = expr operator x.`

According to OpenMP 5.0 Spec 2.17.7 at page 238, the update-statement has one of the following forms:
x = x operator expr
x = expr operator x
x = intrinsic_procedure_name (x, expr_list)
x = intrinsic_procedure_name (expr_list, x)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110714/new/

https://reviews.llvm.org/D110714



More information about the llvm-commits mailing list