This is an archive of the discontinued LLVM Phabricator instance.

[Flang][OpenMP] Fix issue in only a single nowait clause can appear on a sections directive.
ClosedPublic

Authored by sameeranjoshi on Sep 30 2020, 4:51 AM.

Details

Summary

The OpenMP 5.0 standard restricts nowait clause to appear only once on sections
directive.
See OpenMP 5.0

  • 2.8.1
  • point 3 in restrictions.

Added a test with fix.

Diff Detail

Event Timeline

sameeranjoshi created this revision.Sep 30 2020, 4:51 AM
sameeranjoshi requested review of this revision.Sep 30 2020, 4:51 AM
This revision is now accepted and ready to land.Sep 30 2020, 5:34 AM
clementval added inline comments.Sep 30 2020, 6:44 AM
flang/lib/Semantics/check-omp-structure.cpp
130

This should probably be done with TableGen but we can check that in another revision

Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2020, 3:53 AM

An XFAIL was resolved when rebased and fixed in the commit.