[mlir][openacc] Add acc.serial operation
authorValentin Clement <clementval@gmail.com>
Thu, 13 Apr 2023 17:35:37 +0000 (10:35 -0700)
committerValentin Clement <clementval@gmail.com>
Thu, 13 Apr 2023 17:35:56 +0000 (10:35 -0700)
commitf8330c1482bc57fd62e2e496052b30067f3188bd
tree85181b56f83170c578633b4ff1ae2836fea403b3
parent8c63dc6f6dc0f905acbcbf7f67c60af8d3cbe5a2
[mlir][openacc] Add acc.serial operation

The acc.serial operation models the OpenACC serial construct.
The serial construct defines a region of a program that is to be
executed sequentially on the current device.
The operation is modelled on the acc.parallel operation and will
receive similar updates when the data operands operations will
be implemented.

Reviewed By: PeteSteinfeld

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