[mlir][openacc] Use new reduction design in acc.parallel
authorValentin Clement <clementval@gmail.com>
Wed, 24 May 2023 17:38:01 +0000 (10:38 -0700)
committerValentin Clement <clementval@gmail.com>
Wed, 24 May 2023 17:38:25 +0000 (10:38 -0700)
commitf4f53f8b90184df8120bc841de49be5707964876
tree3de13006ad87873a7ac8e17138f0bf9c5f7bf5f6
parent7639a39dd25e5035f594430f5bf1bf8e39722aa8
[mlir][openacc] Use new reduction design in acc.parallel

After D150818 the reduction clause is represented
with a acc.reduction.recipe operation and an operand.
This patch updates the acc.parallel op for the new design.

Reviewed By: razvanlupusoru, jeanPerier

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