OS Manuals

/usr/bin/llvm-tblgen

Low-level virtual machine 21 - core frameworks

From llvm-21 21.1.8-r17 (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:
      --gen-arm-target-def                    - Generate the ARM or AArch64 Architecture information header.
      --gen-attrs                             - Generate attributes
      --gen-directive-decl                    - Generate directive related declaration code (header file)
      --gen-directive-impl                    - Generate directive related implementation code
      --gen-intrinsic-enums                   - Generate intrinsic enums
      --gen-intrinsic-impl                    - Generate intrinsic implementation code
      --gen-riscv-target-def                  - Generate the list of CPUs and extensions for RISC-V
      --gen-runtime-libcalls                  - Generate RuntimeLibcalls
      --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
      --print-enums                           - Print enum values for a class
      --print-sets                            - Print expanded sets for testing DAG exprs
      --gen-target-features                   - Generate subtarget enumerations
      --gen-vt                                - Generate ValueType
      --gen-asm-matcher                       - Generate assembly instruction matcher
      --gen-asm-writer                        - Generate assembly writer
      --gen-callingconv                       - Generate calling convention descriptions
      --gen-emitter                           - Generate machine code emitter
      --gen-compress-inst-emitter             - Generate compressed instructions.
      --gen-ctags                             - Generate ctags-compatible index
      --gen-dag-isel                          - Generate a DAG instruction selector
      --gen-automata                          - Generate generic automata
      --gen-dfa-packetizer                    - Generate DFA Packetizer for VLIW targets
      --gen-disassembler                      - Generate disassembler
      --gen-dxil-operation                    - Generate DXIL operation information
      --gen-exegesis                          - Generate llvm-exegesis tables
      --gen-fast-isel                         - Generate a "fast" instruction selector
      --gen-global-isel-combiner              - Generate GlobalISel Combiner
      --gen-global-isel                       - Generate GlobalISel selector
      --gen-instr-docs                        - Generate instruction documentation
      --gen-instr-info                        - Generate instruction descriptions
      --gen-macro-fusion-pred                 - Generate macro fusion predicators.
      --gen-opt-parser-defs                   - Generate option definitions
      --gen-opt-rst                           - Generate option RST
      --gen-pseudo-lowering                   - Generate pseudo instruction lowering
      --gen-register-bank                     - Generate registers bank descriptions
      --gen-register-info                     - Generate registers and register classes info
      --gen-sd-node-info                      - Generate target SDNode descriptions
      --gen-searchable-tables                 - Generate generic binary-searchable table
      --gen-subtarget                         - Generate subtarget enumerations
      --gen-x86-instr-mapping                 - Generate X86 instruction mapping
      --gen-x86-fold-tables                   - Generate X86 fold tables
      --gen-x86-mnemonic-tables               - Generate X86 mnemonic tables
  --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-disassembler:

  --large-decoder-table                    - Use large decoder table format. This uses 24 bits for offset
                                             in the table instead of the default 16 bits.
  --suppress-per-hwmode-duplicates=<value> - Suppress duplication of instrs into per-HwMode decoder tables
    =O0                                    -   Do not prevent DecoderTable duplications caused by HwModes
    =O1                                    -   Remove duplicate DecoderTable entries generated due to HwModes
    =O2                                    -   Extract HwModes-specific instructions into new DecoderTables, significantly reducing Table Duplications
  --use-fn-table-in-decode-to-mcinst       - Use a table of function pointers instead of a switch case in the
                                             generated `decodeToMCInst` function. Helps improve compile time
                                             of the generated code.

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-debug-cxxpreds              - Add Contextual/Debug comments to all C++ predicates
  --gicombiner-debug-typeinfer             - Print type inference debug logs
  --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 -gen-sdnode-info:

  --sdnode-namespace=<string>              - Specify target SDNode namespace (default=<Target>ISD)
  --warn-on-skipped-nodes                  - Explain why a node was skipped (default=true)

Options for -print-enums:

  --class=<class name>                     - Print Enum list for this class
Options (77)
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
--gen-arm-target-def- Generate the ARM or AArch64 Architecture information header.help
--gen-attrs- Generate attributeshelp
--gen-directive-decl- Generate directive related declaration code (header file)help
--gen-directive-impl- Generate directive related implementation codehelp
--gen-intrinsic-enums- Generate intrinsic enumshelp
--gen-intrinsic-impl- Generate intrinsic implementation codehelp
--gen-riscv-target-def- Generate the list of CPUs and extensions for RISC-Vhelp
--gen-runtime-libcalls- Generate RuntimeLibcallshelp
--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
--print-enums- Print enum values for a classhelp
--print-sets- Print expanded sets for testing DAG exprshelp
--gen-target-features- Generate subtarget enumerationshelp
--gen-vt- Generate ValueTypehelp
--gen-asm-matcher- Generate assembly instruction matcherhelp
--gen-asm-writer- Generate assembly writerhelp
--gen-callingconv- Generate calling convention descriptionshelp
--gen-emitter- Generate machine code emitterhelp
--gen-compress-inst-emitter- Generate compressed instructions.help
--gen-ctags- Generate ctags-compatible indexhelp
--gen-dag-isel- Generate a DAG instruction selectorhelp
--gen-automata- Generate generic automatahelp
--gen-dfa-packetizer- Generate DFA Packetizer for VLIW targetshelp
--gen-disassembler- Generate disassemblerhelp
--gen-dxil-operation- Generate DXIL operation informationhelp
--gen-exegesis- Generate llvm-exegesis tableshelp
--gen-fast-isel- Generate a "fast" instruction selectorhelp
--gen-global-isel-combiner- Generate GlobalISel Combinerhelp
--gen-global-isel- Generate GlobalISel selectorhelp
--gen-instr-docs- Generate instruction documentationhelp
--gen-instr-info- Generate instruction descriptionshelp
--gen-macro-fusion-pred- Generate macro fusion predicators.help
--gen-opt-parser-defs- Generate option definitionshelp
--gen-opt-rst- Generate option RSThelp
--gen-pseudo-lowering- Generate pseudo instruction loweringhelp
--gen-register-bank- Generate registers bank descriptionshelp
--gen-register-info- Generate registers and register classes infohelp
--gen-sd-node-info- Generate target SDNode descriptionshelp
--gen-searchable-tables- Generate generic binary-searchable tablehelp
--gen-subtarget- Generate subtarget enumerationshelp
--gen-x86-instr-mapping- Generate X86 instruction mappinghelp
--gen-x86-fold-tables- Generate X86 fold tableshelp
--gen-x86-mnemonic-tables- Generate X86 mnemonic tableshelp
--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
--large-decoder-table- Use large decoder table format.help
--use-fn-table-in-decode-to-mcinst- Use a table of function pointers instead of a switch case in the generated `decodeToMCInst` function.help
--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-debug-cxxpreds- Add Contextual/Debug comments to all C++ predicateshelp
--gicombiner-debug-typeinfer- Print type inference debug logshelp
--gicombiner-stop-after-parse- Stop processing after parsing rules and dump statehelp
--instr-info-expand-mi-operand-info- Expand operand's MIOperandInfo DAG into suboperandshelp
--intrinsic-prefix target- Generate intrinsics with this target prefixhelp
--register-info-debug- Dump register information to help debugginghelp
--sdnode-namespace string- Specify target SDNode namespace (default=<Target>ISD)help
--warn-on-skipped-nodes- Explain why a node was skipped (default=true)help
--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.