[mlir][openacc] Add gang dim operand to acc.loop operation
authorValentin Clement <clementval@gmail.com>
Tue, 13 Jun 2023 20:39:06 +0000 (13:39 -0700)
committerValentin Clement <clementval@gmail.com>
Tue, 13 Jun 2023 20:39:29 +0000 (13:39 -0700)
commit7f3d2cc26b47568a0ac93327ab579ed1f0e21546
tree73279eb41930e38bb87dc5f24b2abc10bb3b4c21
parent2700da5fe28d8b17c66e5c960d2188276a6ced39
[mlir][openacc] Add gang dim operand to acc.loop operation

OpenACC 3.3 introduces a dim argument on the gang clause. This patch
adds a new operand for it on the acc.loop and update the custom
gang clause parser/printer for it.

Depends on D151970

Reviewed By: razvanlupusoru, jeanPerier

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