Section 2.17.9 from omp 5.0 has a few restrictions related to ORDERED construct.
- At most one threads clause can appear on an ordered construct.
- At most one simd clause can appear on an ordered construct.
- At most one depend(source) clause can appear on an ordered construct.
- Either depend(sink:vec) clauses or depend(source) clauses may appear on an ordered construct, but not both.
This patch implements them by changing the TableGen file(OMP.td).
The dependencies Simd and Threads clauses were missing semantic checks and were added.
Why is this handled on Leave and not Enter like others?