[all-commits] [llvm/llvm-project] 9a3740: [OPENMP50]Add restrictions for memory order clause...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Feb 11 07:17:06 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a3740c33919287fd9aa4e0c6f761619e84c62a7
      https://github.com/llvm/llvm-project/commit/9a3740c33919287fd9aa4e0c6f761619e84c62a7
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-02-11 (Tue, 11 Feb 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/atomic_ast_print.cpp
    M clang/test/OpenMP/atomic_messages.cpp
    M clang/test/OpenMP/atomic_read_codegen.c
    M clang/test/OpenMP/atomic_update_codegen.cpp
    M clang/test/OpenMP/atomic_write_codegen.c

  Log Message:
  -----------
  [OPENMP50]Add restrictions for memory order clauses in atomic directive.

Added restrictions for atomic directive.
1. If atomic-clause is read then memory-order-clause must not be acq_rel or release.
2. If atomic-clause is write then memory-order-clause must not be
   acq_rel or acquire.
3. If atomic-clause is update or not present then memory-order-clause
   must not be acq_rel or acquire.




More information about the All-commits mailing list