[flang-commits] [PATCH] D82177: [flang][OpenMP] Enhance parser support for flush construct to OpenMP 5.0

Kiran Chandramohan via Phabricator via flang-commits flang-commits at lists.llvm.org
Sat Jun 20 02:05:10 PDT 2020


kiranchandramohan added a comment.

Two comments.

1.

memory-order-clause is defined for both atomic and flush instructions. We already have MemoryOrder
defined in the parse-tree for atomic in 4.5. In 4.5 memory-order can only be seq_cst. In 5.0 memory-order 
for atomic can be seq_cst, acq_rel, release, acquire, relaxed. For flush it is only a subset and the allowed
values are only acq_rel, release, acquire.

Would it make sense to have a common definition for memory-order-clause and handle the fact that it
can only be a subset in semantics?

2.

Flush is 2.17.8 (not 2.18.8) as part of the OpenMP 5.0 specification here. Is there a newer document?
https://www.openmp.org/wp-content/uploads/OpenMP-API-Specification-5.0.pdf


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82177





More information about the flang-commits mailing list