This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] [Flang] [Semantics] Add a missing semantic check for OMP DISTRIBUTE directive.
ClosedPublic

Authored by raghavendhra on Aug 8 2023, 6:04 PM.

Details

Summary

Added semantic support for following restriction which applies to OMP DISTRIBUTE directives

  • A list item may appear in a firstprivate or lastprivate clause but not both.

Diff Detail

Event Timeline

raghavendhra created this revision.Aug 8 2023, 6:04 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
raghavendhra requested review of this revision.Aug 8 2023, 6:04 PM
kiranchandramohan accepted this revision.Aug 9 2023, 7:55 AM

LG.
You will have to sync with @skatrak who is modifying the OmpDirectiveSets (https://reviews.llvm.org/D157493).

flang/lib/Semantics/resolve-directives.cpp
1869–1879

When we have one more of these, we can share code. No change requested.

This revision is now accepted and ready to land.Aug 9 2023, 7:55 AM