Page MenuHomePhabricator

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

Authored by sameeranjoshi on Wed, Sep 30, 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.Wed, Sep 30, 4:51 AM
sameeranjoshi requested review of this revision.Wed, Sep 30, 4:51 AM
This revision is now accepted and ready to land.Wed, Sep 30, 5:34 AM
clementval added inline comments.Wed, Sep 30, 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 TranscriptWed, Oct 14, 3:53 AM

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