[mlir][openacc] Switch numGangs to a variadic operand
authorValentin Clement <clementval@gmail.com>
Tue, 27 Jun 2023 18:08:22 +0000 (11:08 -0700)
committerValentin Clement <clementval@gmail.com>
Tue, 27 Jun 2023 18:08:44 +0000 (11:08 -0700)
commitc4a63b8ee11f7e5a849f50d00018654c43046e3c
treef5bfff9f35e2d75bf2ed7b79bbccb383ccfe3cca
parentd5ce68afdf65fd8906d9570c0a71d3557de70838
[mlir][openacc] Switch numGangs to a variadic operand

In the latest spec, the `num_gangs` clause accepts up to three
arguments. Update the dialect to swicth `numGangs` operands from
optional single operand to a variadic operand. The verifier limits
the number of operands to three as specified in the spec.

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D153796
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