[PATCH] D53840: Preprocessing support in tablegen

Vyacheslav Zakharin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 29 15:28:43 PDT 2018


vzakhari created this revision.
vzakhari added reviewers: nhaehnle, kparzysz, theraven.
Herald added a subscriber: llvm-commits.

This adds preprocessing support to TableGen (requested in http://lists.llvm.org/pipermail/llvm-dev/2017-November/118831.html and making conditional compilations more convenient).  The supported directives are #define/#ifdef/#else/#endif.  Command line option for defining a macro is '-DNAME'.


Repository:
  rL LLVM

https://reviews.llvm.org/D53840

Files:
  docs/TableGen/LangRef.rst
  lib/TableGen/Main.cpp
  lib/TableGen/TGLexer.cpp
  lib/TableGen/TGLexer.h
  lib/TableGen/TGParser.h
  test/TableGen/prep-diag1.td
  test/TableGen/prep-diag10.td
  test/TableGen/prep-diag11-include.td
  test/TableGen/prep-diag11.td
  test/TableGen/prep-diag12-include.td
  test/TableGen/prep-diag12.td
  test/TableGen/prep-diag13.td
  test/TableGen/prep-diag14.td
  test/TableGen/prep-diag2.td
  test/TableGen/prep-diag3.td
  test/TableGen/prep-diag4.td
  test/TableGen/prep-diag5.td
  test/TableGen/prep-diag6.td
  test/TableGen/prep-diag7.td
  test/TableGen/prep-diag8.td
  test/TableGen/prep-diag9.td
  test/TableGen/prep-region-include.td
  test/TableGen/prep-region-processing.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53840.171575.patch
Type: text/x-patch
Size: 47632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181029/3923b988/attachment.bin>


More information about the llvm-commits mailing list