[openacc] Add attribute to hold declare data clause information
authorRazvan Lupusoru <rlupusoru@nvidia.com>
Tue, 18 Jul 2023 20:39:51 +0000 (13:39 -0700)
committerRazvan Lupusoru <rlupusoru@nvidia.com>
Wed, 19 Jul 2023 14:54:57 +0000 (07:54 -0700)
commit132c376a337e0001e997714bd8e8a69944861d86
tree219623c58fa0d8e7d8c3643a88f6f4cee079fbf5
parentf9d1895d65a1f18fbcbd7c39ce6a4ab35d3e8778
[openacc] Add attribute to hold declare data clause information

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.

Reviewed By: clementval

Differential Revision: https://reviews.llvm.org/D155640
mlir/include/mlir/Dialect/OpenACC/OpenACC.h
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
mlir/test/Dialect/OpenACC/ops.mlir