[#llvm-TableGenMain-00] = xref:llvm.adoc[llvm]::TableGenMain :relfileprefix: ../ :mrdocs: Run TableGen with a single‐file backend callback. == Synopsis Declared in `<llvm/TableGen/Main.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int TableGenMain( char const* argv0, xref:llvm/TableGenMainFn.adoc[TableGenMainFn] MainFn = nullptr); ---- == Description Parses the input TableGen file, invokes `MainFn` (or a registered emitter), and writes the generated output. == Return Value Non‐zero status on error, zero on success. == Parameters [cols="1,4"] |=== | Name| Description | *argv0* | Program name used when reporting errors. | *MainFn* | Optional callback that writes one output file from Records. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#