This is an archive of the discontinued LLVM Phabricator instance.

[mlir][openacc] Add attributes to parallel op async, wait and self clauses
ClosedPublic

Authored by clementval on Sep 20 2020, 12:04 PM.

Details

Summary

Add attributes for the async, wait and self clauses. These clauses can be present without
values. When this is the case they are modelled with an attribute instead of operands.

Diff Detail

Event Timeline

clementval created this revision.Sep 20 2020, 12:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2020, 12:04 PM
clementval requested review of this revision.Sep 20 2020, 12:04 PM
ftynse added inline comments.Sep 21 2020, 1:27 AM
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
97

Unit attributes give extra semantics to the operation by their mere presence, there is no point in explicitly marking them optional as they can be omitted in any case.

Also, all other names in this op use camelCase rather than snake_case.

Remove optional from attr since it makes no sense. Switch from snake_case to camelCase.

clementval marked an inline comment as done.Sep 21 2020, 7:39 AM
clementval added inline comments.
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
97

Sure, I should have think twice before sending the patch :-) I pushed a new version.

ftynse accepted this revision.Sep 21 2020, 8:17 AM
This revision is now accepted and ready to land.Sep 21 2020, 8:17 AM
This revision was automatically updated to reflect the committed changes.
clementval marked an inline comment as done.