[PATCH] D82982: [openmp] Move isAllowedClauseForDirective to tablegen + add clause version to OMP.td

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 09:42:51 PDT 2020


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

Generate the isAllowedClauseForDirective function from tablegen. This patch introduce
the VersionedClause in the tablegen file so that clause can be encapsulated in this class to 
specify a range of validity on a directive.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82982

Files:
  llvm/include/llvm/Frontend/Directive/DirectiveBase.td
  llvm/include/llvm/Frontend/OpenMP/OMP.td
  llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
  llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
  llvm/lib/Frontend/OpenMP/OMPConstants.cpp
  llvm/test/TableGen/directive1.td
  llvm/test/TableGen/directive2.td
  llvm/utils/TableGen/DirectiveEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82982.274849.patch
Type: text/x-patch
Size: 95538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200701/94dcf929/attachment.bin>


More information about the llvm-commits mailing list