This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Fix semantic check for wait and atomic directives
ClosedPublic

Authored by clementval on Sep 30 2020, 6:50 PM.

Details

Summary

wait and atomic directives are represented by OpenACCWaitConstruct, OpenACCAtmicConstruct in the parser. Those contrsuct were
not taken into account in the semantic check so far.

Diff Detail

Event Timeline

clementval created this revision.Sep 30 2020, 6:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 30 2020, 6:50 PM
clementval requested review of this revision.Sep 30 2020, 6:50 PM
flang/test/Semantics/acc-clause-validity.f90
457

should this be an array element or subarray?

clementval added inline comments.Oct 1 2020, 7:11 AM
flang/test/Semantics/acc-clause-validity.f90
457

Yes. Will update the test. Anyway I'll need to add a check to enforce that in a follow-up patch.

SouraVX added a project: Restricted Project.Oct 7 2020, 8:13 AM
SouraVX added a subscriber: SouraVX.

Remove cache from this revsion

@kiranchandramohan I removed the cache directive changes from this patch since I'm working on a more complex patch that will cover the specific restriction for cache.

clementval retitled this revision from [flang][openacc] Fix semantic check for wait, cache and atomic directives to [flang][openacc] Fix semantic check for wait and atomic directives.Oct 22 2020, 8:18 AM
clementval edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Oct 23 2020, 6:41 AM