This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Add more parsing/sema tests for init and shutdown directives
ClosedPublic

Authored by clementval on Nov 4 2020, 12:31 PM.

Details

Summary

This patch adds some positive and failure tests for init and shutdown directives.

Diff Detail

Event Timeline

clementval created this revision.Nov 4 2020, 12:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2020, 12:31 PM
clementval requested review of this revision.Nov 4 2020, 12:31 PM
kiranktp added inline comments.Nov 5 2020, 12:15 AM
flang/test/Semantics/acc-clause-validity.f90
76

I may be wrong here. but i do not see these restrictions in OpenACC 3.0 standard for SHUTDOWN and INIT directive.

clementval added inline comments.Nov 5 2020, 7:11 AM
flang/test/Semantics/acc-clause-validity.f90
76

There is no written restriction about the if clause on most directives but this is kind of an implicit one since there is also no rule how two if condition would be combined together. Do you combined them with a logical OR or a logical AND. Since the clause takes a condition expression one can combined multiple conditions together in a single if clause.

Is there any conclusion on this ?

Is there any conclusion on this ?

I have discussed this point with some member of the spec committee and it is not really well defined currently. This will be addressed in future version of the spec but the intention is to allow only a single if clause on all directives.

This revision is now accepted and ready to land.Jan 5 2021, 10:06 PM
clementval marked an inline comment as done.Jan 6 2021, 7:52 AM