OSDN Git Service

[openacc] Use TableGen enum for default clause value
authorValentin Clement <clementval@gmail.com>
Mon, 21 Dec 2020 20:06:55 +0000 (15:06 -0500)
committerclementval <clementval@gmail.com>
Mon, 21 Dec 2020 20:07:27 +0000 (15:07 -0500)
commit8f933a4e931dd1a66f19a81b33399cf7b407308f
tree74fb2a8a7c8fd60dc258fda858da88cbb99346db
parent0f8224c2104b7246b36b9f92ffe87aad4d8dd3ac
[openacc] Use TableGen enum for default clause value

Use the TableGen feature to have enum values for clauses.
Next step will be to extend the MLIR part used currently by OpenMP
to use the same enum on the dialect side.

This patch also add function that convert the enum to StringRef to be
used on the dump-parse-tree from flang.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D93576
flang/include/flang/Parser/dump-parse-tree.h
flang/include/flang/Parser/parse-tree.h
flang/lib/Parser/openacc-parsers.cpp
flang/lib/Parser/unparse.cpp
flang/lib/Semantics/resolve-directives.cpp
llvm/include/llvm/Frontend/OpenACC/ACC.td
llvm/test/TableGen/directive1.td
llvm/utils/TableGen/DirectiveEmitter.cpp