Discovering a TableGen backend
Although we could have fun creating records all day long, there is not much point to it if we don’t do anything with them. Therefore, in this section, you will discover one of the TableGen backends used to build LLVM – in other words, how records that you create are consumed and used in LLVM.
While the content of this section remains high-level, we believe understanding the purpose of the records that you will build makes you more effective at it. First, it will help you build a mental model of the inner workings of TableGen, and second, it will give you confidence in approaching new TableGen backends.
Let’s start this section with some information that applies to all the TableGen backends that target LLVM.
General information on TableGen backends for LLVM
If you are building several projects within the LLVM umbrella, you will see that different projects use different TableGen drivers. For instance, while LLVM proper...