This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Fix ambiguity in the self clause parsing
ClosedPublic

Authored by clementval on Oct 26 2020, 12:40 PM.

Details

Summary

In the OpenACC specification, there are two different self clause. One for the
update directive with a var-list argument. This clause is a synonym of the host clause.
The second self clause is present for most of the compute construct and takes an optional
condition. To solve this ambiguity, the self clause for the update directive is directly
translated to a host clause during the parsing. The self clause in AccClause refers always
to the compute construct clause.

Diff Detail

Event Timeline

clementval created this revision.Oct 26 2020, 12:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2020, 12:40 PM
clementval requested review of this revision.Oct 26 2020, 12:40 PM
clementval added a project: Restricted Project.Oct 26 2020, 12:41 PM
This revision is now accepted and ready to land.Oct 27 2020, 10:22 AM