llvm-project
e07c1e71 - [flang][OpenMP] Move unique clauses to allowedOnceClauses in OMP.td (#204995)

Commit
23 days ago
[flang][OpenMP] Move unique clauses to allowedOnceClauses in OMP.td (#204995) Many unique clauses were listed in "allowedClauses", which turned off the single-occurrence check in flang. Move these clauses to the right category to enable this check. One exception to this is the IF clause: the IF clause is unique for all non-compound directives, but is repeatable on compound ones with the restriction that at most one IF clause can apply to any of the constituents. This restriction is currently not enforced correctly in flang, and so the IF clause was left unchanged. Although this change is applied to a file shared between flang and clang, clang does not use these categories for its checks, and hence is not affected by this patch.
Author
Parents
Loading