llvm-project/llvm/docs/TableGen
NAKAMURA Takumi 4178ef43b2 TableGen: Introduce llvm::TableGen::Emitter to register backends
`Opt(flag, func, desc)` registers an option into `Action`.

`OptClass<EmitterC>` is also available if `EmitterC(RK).run(OS)` is capable.

`Action` is defined as `ManagedStatic<cl::opt>` to guarantee to be created
when each registration of emitter is invoked.

`llvm::TableGenMain(argv0, MainFn)` invokes `Action` instead of `MainFn`

Differential Revision: https://reviews.llvm.org/D144351
2023-03-21 16:21:27 +09:00
..
BackEnds.rst
BackGuide.rst TableGen: Introduce llvm::TableGen::Emitter to register backends 2023-03-21 16:21:27 +09:00
index.rst
ProgRef.rst