[all-commits] [llvm/llvm-project] 3488e8: [OPENMP]Fix PR46347: several ordered directives in...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Jun 16 12:56:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3488e8c21cec8bac7dabd8f6b7c642dbace31d65
      https://github.com/llvm/llvm-project/commit/3488e8c21cec8bac7dabd8f6b7c642dbace31d65
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/ordered_messages.cpp

  Log Message:
  -----------
  [OPENMP]Fix PR46347: several ordered directives in a single region.

Summary:
According to OpenMP, During execution of an iteration of a worksharing-loop or a loop nest within a worksharing-loop, simd, or worksharing-loop SIMD region, a thread must not execute more than one ordered region corresponding to an ordered construct without a depend clause.
Need to report an error in this case.

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, cfe-commits, caomhin

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81951




More information about the All-commits mailing list