[PATCH] D93576: [openacc] Use TableGen enum for default clause value

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 18 19:24:42 PST 2020


clementval created this revision.
clementval added a reviewer: kiranchandramohan.
Herald added a subscriber: rriddle.
clementval requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1, stephenneuendorffer.
Herald added a project: LLVM.

Use the TableGen feature to have enum values for clauses.
Next step will be to extend the MLIR part used current;y 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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93576

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93576.312913.patch
Type: text/x-patch
Size: 6525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201219/1efc72af/attachment.bin>


More information about the llvm-commits mailing list