[mlir][openacc] Add if and device_type to update op
authorValentin Clement <clementval@gmail.com>
Thu, 29 Oct 2020 13:54:31 +0000 (09:54 -0400)
committerclementval <clementval@gmail.com>
Thu, 29 Oct 2020 13:54:44 +0000 (09:54 -0400)
commit1ce5f8bbb6f3fb581fd4c5905e5574c8b9a09268
treea15a72717c06f414c82a2b5f03108e8f0929944f
parent75ba29ac5654b622107653a0fd33f84846b4e39f
[mlir][openacc] Add if and device_type to update op

Update op is modelling the update directive (2.14.4) from the OpenACC specs.
An if condition and a device_type list can be attached to the directive. This patch add
these two information to the current op.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D90310
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
mlir/test/Dialect/OpenACC/ops.mlir