This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Accept !$acc end loop
ClosedPublic

Authored by clementval on Aug 28 2023, 1:36 PM.

Details

Summary

Some compilers accept !$acc end loop associated with an !$acc loop
directive. This patch updates the acc loop parser to accept it as well.
The parser is also updated to be stricter on the following statement
to match the OpenACC combined construct parser.
The rewrite canonicalization is not a rewrite anymore and the naming
will be updated in a follow up patch for the Loop and Combined constructs.

Diff Detail

Event Timeline

clementval created this revision.Aug 28 2023, 1:36 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a subscriber: Anastasia. · View Herald Transcript
clementval requested review of this revision.Aug 28 2023, 1:36 PM

Add missing test file

razvanlupusoru accepted this revision.Aug 28 2023, 4:59 PM

Looks great to me!

This revision is now accepted and ready to land.Aug 28 2023, 4:59 PM
This revision was automatically updated to reflect the committed changes.