OS Manuals

/usr/lib/llvm-16/bin/llvm-tblgen

Low-level virtual machine 16 - core frameworks

From llvm-16 16.0.6-r37 (os), captured 2026-11-05 by running llvm-tblgen --help (exit 0). permalink

USAGE: llvm-tblgen [options] <input file>

OPTIONS:

Color Options:

  --color                             - Use colors in output (default=autodetect)

General options:

  -D <macro name>                     - Name of the macro to be defined
  -I <directory>                      - Directory of include files
  -d <filename>                       - Dependency filename
  Action to perform:
      --print-records                    - Print all records to stdout (default)
      --print-detailed-records           - Print full details of all records to stdout
      --null-backend                     - Do nothing after parsing (useful for timing)
      --dump-json                        - Dump all records as machine-readable JSON
      --gen-emitter                      - Generate machine code emitter
      --gen-register-info                - Generate registers and register classes info
      --gen-instr-info                   - Generate instruction descriptions
      --gen-instr-docs                   - Generate instruction documentation
      --gen-callingconv                  - Generate calling convention descriptions
      --gen-asm-writer                   - Generate assembly writer
      --gen-disassembler                 - Generate disassembler
      --gen-pseudo-lowering              - Generate pseudo instruction lowering
      --gen-compress-inst-emitter        - Generate RISCV compressed instructions.
      --gen-asm-matcher                  - Generate assembly instruction matcher
      --gen-dag-isel                     - Generate a DAG instruction selector
      --gen-dfa-packetizer               - Generate DFA Packetizer for VLIW targets
      --gen-fast-isel                    - Generate a "fast" instruction selector
      --gen-subtarget                    - Generate subtarget enumerations
      --gen-intrinsic-enums              - Generate intrinsic enums
      --gen-intrinsic-impl               - Generate intrinsic information
      --print-enums                      - Print enum values for a class
      --print-sets                       - Print expanded sets for testing DAG exprs
      --gen-opt-parser-defs              - Generate option definitions
      --gen-opt-rst                      - Generate option RST
      --gen-ctags                        - Generate ctags-compatible index
      --gen-attrs                        - Generate attributes
      --gen-searchable-tables            - Generate generic binary-searchable table
      --gen-global-isel                  - Generate GlobalISel selector
      --gen-global-isel-combiner         - Generate GlobalISel combiner
      --gen-x86-EVEX2VEX-tables          - Generate X86 EVEX to VEX compress tables
      --gen-x86-fold-tables              - Generate X86 fold tables
      --gen-x86-mnemonic-tables          - Generate X86 mnemonic tables
      --gen-register-bank                - Generate registers bank descriptions
      --gen-exegesis                     - Generate llvm-exegesis tables
      --gen-automata                     - Generate generic automata
      --gen-directive-decl               - Generate directive related declaration code (header file)
      --gen-directive-impl               - Generate directive related implementation code
      --gen-dxil-operation               - Generate DXIL operation information
      --gen-riscv-target-def             - Generate the list of CPU for RISCV
  --no-warn-on-unused-template-args   - Disable unused template argument warnings.
  -o <filename>                       - Output filename
  --time-phases                       - Time phases of parser and backend
  --write-if-changed                  - Only write output if it changed

Generic Options:

  --help                              - Display available options (--help-hidden for more)
  --help-list                         - Display list of available options (--help-list-hidden for more)
  --version                           - Display the version of this program

Options for -gen-asm-matcher:

  --match-prefix=<string>             - Only match instructions with the given prefix

Options for -gen-asm-parser:

  --asmparsernum=<uint>               - Make -gen-asm-parser emit assembly parser #N

Options for -gen-asm-writer:

  --asmwriternum=<uint>               - Make -gen-asm-writer emit assembly writer #N

Options for -gen-dag-isel:

  --instrument-coverage               - Generates tables to help identify patterns matched
  --omit-comments                     - Do not generate comments

Options for -gen-global-isel:

  --gisel-coverage-file=<string>      - Specify file to retrieve coverage information from
  --instrument-gisel-coverage         - Generate coverage instrumentation for GlobalISel
  --optimize-match-table              - Generate an optimized version of the match table
  --warn-on-skipped-patterns          - Explain why a pattern was skipped for inclusion in the GlobalISel selector

Options for -gen-global-isel-combiner:

  --combiners=<string>                - Emit the specified combiners
  --gicombiner-show-expansions        - Use C++ comments to indicate occurence of code expansion
  --gicombiner-stop-after-build       - Stop processing after building the match tree
  --gicombiner-stop-after-parse       - Stop processing after parsing rules and dump state

Options for -gen-instr-info:

  --instr-info-expand-mi-operand-info - Expand operand's MIOperandInfo DAG into suboperands

Options for -gen-intrinsic-enums:

  --intrinsic-prefix=<target prefix>  - Generate intrinsics with this target prefix

Options for -gen-register-info:

  --register-info-debug               - Dump register information to help debugging

Options for -print-enums:

  --class=<class name>                - Print Enum list for this class
Options (66)
OptionDescriptionSource
--color- Use colors in output (default=autodetect)help
-D macro- Name of the macro to be definedhelp
-I directory- Directory of include fileshelp
-d filename- Dependency filenamehelp
--print-records- Print all records to stdout (default)help
--print-detailed-records- Print full details of all records to stdouthelp
--null-backend- Do nothing after parsing (useful for timing)help
--dump-json- Dump all records as machine-readable JSONhelp
--gen-emitter- Generate machine code emitterhelp
--gen-register-info- Generate registers and register classes infohelp
--gen-instr-info- Generate instruction descriptionshelp
--gen-instr-docs- Generate instruction documentationhelp
--gen-callingconv- Generate calling convention descriptionshelp
--gen-asm-writer- Generate assembly writerhelp
--gen-disassembler- Generate disassemblerhelp
--gen-pseudo-lowering- Generate pseudo instruction loweringhelp
--gen-compress-inst-emitter- Generate RISCV compressed instructions.help
--gen-asm-matcher- Generate assembly instruction matcherhelp
--gen-dag-isel- Generate a DAG instruction selectorhelp
--gen-dfa-packetizer- Generate DFA Packetizer for VLIW targetshelp
--gen-fast-isel- Generate a "fast" instruction selectorhelp
--gen-subtarget- Generate subtarget enumerationshelp
--gen-intrinsic-enums- Generate intrinsic enumshelp
--gen-intrinsic-impl- Generate intrinsic informationhelp
--print-enums- Print enum values for a classhelp
--print-sets- Print expanded sets for testing DAG exprshelp
--gen-opt-parser-defs- Generate option definitionshelp
--gen-opt-rst- Generate option RSThelp
--gen-ctags- Generate ctags-compatible indexhelp
--gen-attrs- Generate attributeshelp
--gen-searchable-tables- Generate generic binary-searchable tablehelp
--gen-global-isel- Generate GlobalISel selectorhelp
--gen-global-isel-combiner- Generate GlobalISel combinerhelp
--gen-x86-EVEX2VEX-tables- Generate X86 EVEX to VEX compress tableshelp
--gen-x86-fold-tables- Generate X86 fold tableshelp
--gen-x86-mnemonic-tables- Generate X86 mnemonic tableshelp
--gen-register-bank- Generate registers bank descriptionshelp
--gen-exegesis- Generate llvm-exegesis tableshelp
--gen-automata- Generate generic automatahelp
--gen-directive-decl- Generate directive related declaration code (header file)help
--gen-directive-impl- Generate directive related implementation codehelp
--gen-dxil-operation- Generate DXIL operation informationhelp
--gen-riscv-target-def- Generate the list of CPU for RISCVhelp
--no-warn-on-unused-template-args- Disable unused template argument warnings.help
-o filename- Output filenamehelp
--time-phases- Time phases of parser and backendhelp
--write-if-changed- Only write output if it changedhelp
--help- Display available options (--help-hidden for more)help
--help-list- Display list of available options (--help-list-hidden for more)help
--version- Display the version of this programhelp
--match-prefix string- Only match instructions with the given prefixhelp
--asmparsernum uint- Make -gen-asm-parser emit assembly parser #Nhelp
--asmwriternum uint- Make -gen-asm-writer emit assembly writer #Nhelp
--instrument-coverage- Generates tables to help identify patterns matchedhelp
--omit-comments- Do not generate commentshelp
--gisel-coverage-file string- Specify file to retrieve coverage information fromhelp
--instrument-gisel-coverage- Generate coverage instrumentation for GlobalISelhelp
--optimize-match-table- Generate an optimized version of the match tablehelp
--warn-on-skipped-patterns- Explain why a pattern was skipped for inclusion in the GlobalISel selectorhelp
--combiners string- Emit the specified combinershelp
--gicombiner-show-expansions- Use C++ comments to indicate occurence of code expansionhelp
--gicombiner-stop-after-build- Stop processing after building the match treehelp
--gicombiner-stop-after-parse- Stop processing after parsing rules and dump statehelp
--intrinsic-prefix target- Generate intrinsics with this target prefixhelp
--register-info-debug- Dump register information to help debugginghelp
--class class- Print Enum list for this classhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.