[PATCH] D81736: [openmp] Base of tablegen generated OpenMP common declaration

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 06:59:01 PDT 2020


clementval created this revision.
clementval added reviewers: jdoerfert, DavidTruby.
Herald added subscribers: llvm-commits, aaron.ballman, sstefan1, jfb, guansong, hiraditya, yaxunl, mgorny.
Herald added a project: LLVM.

As discussed previously when landing patch for OpenMP in Flang, the idea is
to share common part of the OpenMP declaration between the different Frontend.
While doing this it was thought that moving to tablegen instead of Macros will also
give a cleaner and more powerful way of generating these declaration.
This first part of a future series of patches is setting up the base .td file for
DirectiveLanguage as well as the OpenMP version of it. The base file is meant to
be used by other directive language such as OpenACC.
In this first patch, the Directive and Clause enums are generated with tablegen
instead of the macros on OMPConstants.h. The next pacth will extend this
to other enum and move the Flang frontend to use it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81736

Files:
  llvm/include/llvm/CMakeLists.txt
  llvm/include/llvm/Frontend/Directive/DirectiveBase.td
  llvm/include/llvm/Frontend/OpenMP/CMakeLists.txt
  llvm/include/llvm/Frontend/OpenMP/OMP.td
  llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
  llvm/lib/Frontend/OpenMP/CMakeLists.txt
  llvm/test/TableGen/directive.td
  llvm/utils/TableGen/CMakeLists.txt
  llvm/utils/TableGen/DirectiveEmitter.cpp
  llvm/utils/TableGen/TableGen.cpp
  llvm/utils/TableGen/TableGenBackends.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81736.270380.patch
Type: text/x-patch
Size: 35855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200612/1a19da00/attachment.bin>


More information about the llvm-commits mailing list