[mlir][openacc] destroy region on firstprivate.recipe is optional
authorValentin Clement <clementval@gmail.com>
Wed, 24 May 2023 14:57:38 +0000 (07:57 -0700)
committerValentin Clement <clementval@gmail.com>
Wed, 24 May 2023 14:58:06 +0000 (07:58 -0700)
commit6a3312f3269ca57d94542b8f65b67e4b23e84533
treee37da501bcb9062cb834c4abf2f0807e8f0cb8a1
parenta8a36ee5220e1ac74b06f90adab3dec020920e2a
[mlir][openacc] destroy region on firstprivate.recipe is optional

The destroy region is optional but the verifier was enforcing it.
Update the verifier and make it clear in the definition.

Reviewed By: razvanlupusoru

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