[OPENMP]Fix PR46347: several ordered directives in a single region.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 16 Jun 2020 17:16:08 +0000 (13:16 -0400)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 16 Jun 2020 19:53:14 +0000 (15:53 -0400)
commit3488e8c21cec8bac7dabd8f6b7c642dbace31d65
tree505f73934bed6f2b70872730b156730f578d3469
parentff628f5f5ede319a170d586ce97a349fcb2b81f6
[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
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/ordered_messages.cpp