This is an archive of the discontinued LLVM Phabricator instance.

[mlir][openacc] Add missing operands for acc.data operation
ClosedPublic

Authored by clementval on Sep 17 2020, 5:02 PM.

Details

Summary

Add missing operands to represent copyin with readonly modifier, copyout with zero modifier
and create with zero modifier.

Diff Detail

Event Timeline

clementval created this revision.Sep 17 2020, 5:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 17 2020, 5:02 PM
clementval requested review of this revision.Sep 17 2020, 5:02 PM
ftynse accepted this revision.Sep 18 2020, 1:27 AM
ftynse added inline comments.
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
439

Ultra-nit: that's a lot of space taken on stack (8 x sizeof(intptr_t) x number of operand groups). I'd take something like 2 for SmallVector stack-allocated size here unless some lists expect very long lists of values.

This revision is now accepted and ready to land.Sep 18 2020, 1:27 AM
clementval marked an inline comment as done.Sep 18 2020, 8:51 AM
clementval added inline comments.
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
439

Sure! didn't think about it when adding new variables here.

clementval marked an inline comment as done.

Rebase + review comment

This revision was landed with ongoing or failed builds.Sep 18 2020, 8:52 AM
This revision was automatically updated to reflect the committed changes.