[mlir][openacc] Accept acc.serial has parent of acc.yield op
authorValentin Clement <clementval@gmail.com>
Thu, 13 Apr 2023 21:35:02 +0000 (14:35 -0700)
committerValentin Clement <clementval@gmail.com>
Thu, 13 Apr 2023 21:35:22 +0000 (14:35 -0700)
commit8a21dfe1bd9fa18651676062dfe17feb71fe2344
tree71871022407b84c716456587c7890b2012fac7f5
parent30037b7a6ad81cdbf06e216204275150e62aec7c
[mlir][openacc] Accept acc.serial has parent of acc.yield op

acc.serial op is modeled on the acc.parallel op.
acc.yield operation must then accept acc.serial has a parent
operation.

Reviewed By: PeteSteinfeld, razvanlupusoru

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