This is an archive of the discontinued LLVM Phabricator instance.

[mlir][openacc] Add firstprivate representation
ClosedPublic

Authored by clementval on May 16 2023, 2:46 PM.

Details

Summary

Add a representation for firstprivate clause modeled on the
private representation added in D150622.
The firstprivate recipe operation has an additional mandatory
region representing a sequences of operations needed to copy
the initial value to the created private copy.

Depends on D150622

Diff Detail

Event Timeline

clementval created this revision.May 16 2023, 2:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 2:46 PM
clementval requested review of this revision.May 16 2023, 2:46 PM

Fix example

razvanlupusoru accepted this revision.May 16 2023, 2:58 PM
razvanlupusoru added inline comments.
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
479

inital -> initial

496

intial -> initial

This revision is now accepted and ready to land.May 16 2023, 2:58 PM

I forgot to write before I accepted - this looks great! Also matches what I had envisioned. Glad to see the reuse for the region verification.

This revision was automatically updated to reflect the committed changes.