[PATCH] D70610: [TableGen] Add backend to generate command guide for tools using libOption.

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 11:11:31 PST 2019


JDevlieghere created this revision.
JDevlieghere added reviewers: dsanders, Bigcheese, labath.
Herald added subscribers: dexonsmith, mgorny.
Herald added a project: LLVM.

For `lldb` and `dsymutil`, the command guide is essentially a copy of its help output generated by libOption. Making sure the two stay in sync is tedious and error prone. Given that we already generate the help from a tablegen file, we might as well generate the RST as well.

This adds a tablegen backend for generating Sphinx/RST command guides from the tablegen file.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70610

Files:
  llvm/utils/TableGen/CMakeLists.txt
  llvm/utils/TableGen/OptEmitter.cpp
  llvm/utils/TableGen/OptEmitter.h
  llvm/utils/TableGen/OptParserEmitter.cpp
  llvm/utils/TableGen/OptRSTEmitter.cpp
  llvm/utils/TableGen/TableGen.cpp
  llvm/utils/TableGen/TableGenBackends.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70610.230691.patch
Type: text/x-patch
Size: 13039 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191122/2031f5e5/attachment.bin>


More information about the llvm-commits mailing list