[mlir][openacc][NFC] Fix current gang clause parser
authorValentin Clement <clementval@gmail.com>
Tue, 13 Jun 2023 18:16:31 +0000 (11:16 -0700)
committerValentin Clement <clementval@gmail.com>
Tue, 13 Jun 2023 18:16:58 +0000 (11:16 -0700)
commit2e69944a612e376f8035f0f9e1eb8cca5dbe3fcb
tree18821f5b517f4b94966a9f69dda01beff8aa87e7
parent311091e2b007ebe0da9877953a9a56a51102e60d
[mlir][openacc][NFC] Fix current gang clause parser

The custom parser for the gang values was not implemented correctly.
This patch fixes the noted issue and allows the num/static values
to appear in any order.

Reviewed By: razvanlupusoru, jeanPerier

Differential Revision: https://reviews.llvm.org/D151970
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
mlir/test/Dialect/OpenACC/invalid.mlir
mlir/test/Dialect/OpenACC/ops.mlir