[mlir][openacc] Use OptionalParseResult in loop op parser instead of bool variables
authorValentin Clement <clementval@gmail.com>
Wed, 23 Sep 2020 14:26:09 +0000 (10:26 -0400)
committerclementval <clementval@gmail.com>
Wed, 23 Sep 2020 14:26:24 +0000 (10:26 -0400)
commitbd8b50cd7f5dd5237ec9187ef2fcea3adc15b61a
tree063e356f3a7385e0a9d8db97f35134e1208f7ec0
parent270d334a665faa574db0c7d3a23af78bed9366d0
[mlir][openacc] Use OptionalParseResult in loop op parser instead of bool variables

This patch switch from using bool variables to OptionalParseResult for the parsing
inside loop operation. This is already done for parallel operation and this patch unify this
in the dialect.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D88111
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp