Further reading
This chapter gave you a primer on TableGen. We did not cover things that you will probably never do, such as developing your own TableGen backend. If you want to explore TableGen-related topics in more detail, the LLVM’s documentation, while not perfect, covers some of these.
You can refer to the following:
- An overview of TableGen at https://llvm.org/docs/TableGen/.
- The full specification of the TableGen language at https://llvm.org/docs/TableGen/ProgRef.html.
- The (succinct) documentation of the TableGen backends at https://llvm.org/docs/TableGen/BackEnds.html.
- How to develop a TableGen backend at https://llvm.org/docs/TableGen/BackGuide.html. This one is also interesting if you want to debug a TableGen backend, since it presents the main classes available to handle records.
- The command-line guide for the
llvm-tblgen
tool at https://llvm.org/docs/CommandGuide/tblgen.html. - Finally, the compiler explorer website (https...