[mlir][openacc] Add wait attribute and variadic operand
authorValentin Clement <clementval@gmail.com>
Fri, 30 Jun 2023 17:04:17 +0000 (10:04 -0700)
committerValentin Clement <clementval@gmail.com>
Fri, 30 Jun 2023 17:04:49 +0000 (10:04 -0700)
commit61807f5c295814207f71aebf6438b9c00aedce9f
tree89fdb5219386d113ab2062a74f17566f29d3136e
parentecc7adc46ce926d51022ff5ab5ee60eb61b80972
[mlir][openacc] Add wait attribute and variadic operand

OpenACC 3.2 allowed the wait clause to the data construct. This patch
adds a unit attribute and a variadic operand to the data operation to model
the wait clause in a similar way it was added to other data operation.
The attribute models the presence of the clause without any argument. When
arguments are provided they are placed in the wait operand.

Depends on D154111

Reviewed By: razvanlupusoru

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