This is an archive of the discontinued LLVM Phabricator instance.

[openacc] Add attribute to hold declare data clause information
ClosedPublic

Authored by razvanlupusoru on Jul 18 2023, 1:50 PM.

Details

Summary

For variables in declare clauses, their producing operation should be
marked with the data clause for ease of lookup and consistency
verification. Thus add an attribute that can be used for this purpose
plus verification that declare data operation matches the declare
data clause on variable.

Diff Detail

Event Timeline

razvanlupusoru created this revision.Jul 18 2023, 1:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2023, 1:50 PM
razvanlupusoru requested review of this revision.Jul 18 2023, 1:50 PM
This revision is now accepted and ready to land.Jul 18 2023, 2:12 PM
razvanlupusoru added inline comments.Jul 18 2023, 8:29 PM
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
1150

I will fix copy-paste variable naming error here.

Rebase. Fix variable name. Run clang-format.