This is an archive of the discontinued LLVM Phabricator instance.

[mlir][openacc] Add wait operation
ClosedPublic

Authored by clementval on Sep 22 2020, 5:33 PM.

Details

Summary

This patch introduce the wait operation that represent the OpenACC wait directive.

Diff Detail

Event Timeline

clementval created this revision.Sep 22 2020, 5:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2020, 5:33 PM
clementval requested review of this revision.Sep 22 2020, 5:33 PM
mehdi_amini added inline comments.Sep 22 2020, 10:41 PM
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
887

Can't this be expressed with the declarative assembly?

clementval added inline comments.Sep 23 2020, 5:56 AM
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
887

I’ll give it a try.

Rebase + switch to assemblyFormat

newline at end of file

clementval marked an inline comment as done.Sep 23 2020, 11:32 AM
clementval added inline comments.
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
887

Switched to assembly format in the new version of the patch.

Remove change not needed after switch to assembly format.

rriddle added inline comments.Sep 28 2020, 9:58 AM
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
343

Are these necessary?

mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
823

Missing a return on each of these errors.

clementval marked 2 inline comments as done.

Address review comments

mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
343

Was using these in the error message but they are not really necessary here. I just removed them.

ftynse accepted this revision.Sep 29 2020, 4:54 AM
ftynse added inline comments.
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
825

Nit: waitOp.waitOperands().size() == 0 -> waitOp.waitOperands().empty()

This revision is now accepted and ready to land.Sep 29 2020, 4:54 AM
This revision was landed with ongoing or failed builds.Sep 29 2020, 7:39 AM
This revision was automatically updated to reflect the committed changes.