OS Manuals

/usr/lib/llvm-14/bin/mlir-tblgen

Low-level virtual machine 14 - core frameworks

From llvm-14 14.0.6-r12 (enterprise-packages), captured 2026-11-08 by running mlir-tblgen --help (exit 0). permalink

USAGE: mlir-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
  --asmformat-error-is-fatal                       - Emit a fatal error if format parsing fails
  -d=<filename>                                    - Dependency filename
  Generator to run
      --gen-attr-interface-decls                      - Generate attribute interface declarations
      --gen-attr-interface-defs                       - Generate attribute interface definitions
      --gen-attr-interface-docs                       - Generate attribute interface documentation
      --gen-attrdef-decls                             - Generate AttrDef declarations
      --gen-attrdef-defs                              - Generate AttrDef definitions
      --gen-attrdef-doc                               - Generate dialect attribute documentation
      --gen-avail-interface-decls                     - Generate availability interface declarations
      --gen-avail-interface-defs                      - Generate op interface definitions
      --gen-dialect-decls                             - Generate dialect declarations
      --gen-dialect-defs                              - Generate dialect definitions
      --gen-dialect-doc                               - Generate dialect documentation
      --gen-directive-decl                            - Generate declarations for directives (OpenMP/OpenACC etc.)
      --gen-enum-decls                                - Generate enum utility declarations
      --gen-enum-defs                                 - Generate enum utility definitions
      --gen-enum-from-llvmir-conversions              - Generate conversions of EnumAttrs from LLVM IR
      --gen-enum-to-llvmir-conversions                - Generate conversions of EnumAttrs to LLVM IR
      --gen-llvmir-conversions                        - Generate LLVM IR conversions
      --gen-llvmir-intrinsics                         - Generate LLVM IR intrinsics
      --gen-op-decls                                  - Generate op declarations
      --gen-op-defs                                   - Generate op definitions
      --gen-op-doc                                    - Generate dialect documentation
      --gen-op-interface-decls                        - Generate op interface declarations
      --gen-op-interface-defs                         - Generate op interface definitions
      --gen-op-interface-docs                         - Generate op interface documentation
      --gen-pass-capi-header                          - Generate pass C API header
      --gen-pass-capi-impl                            - Generate pass C API implementation
      --gen-pass-decls                                - Generate pass declarations
      --gen-pass-doc                                  - Generate pass documentation
      --gen-python-op-bindings                        - Generate Python bindings for MLIR Ops
      --gen-rewriters                                 - Generate pattern rewriters
      --gen-spirv-attr-utils                          - Generate SPIR-V attribute utility definitions
      --gen-spirv-avail-impls                         - Generate SPIR-V operation utility definitions
      --gen-spirv-capability-implication              - Generate utility function to return implied capabilities for a given capability
      --gen-spirv-enum-avail-decls                    - Generate SPIR-V enum availability declarations
      --gen-spirv-enum-avail-defs                     - Generate SPIR-V enum availability definitions
      --gen-spirv-serialization                       - Generate SPIR-V (de)serialization utilities and functions
      --gen-struct-attr-decls                         - Generate struct utility declarations
      --gen-struct-attr-defs                          - Generate struct utility definitions
      --gen-type-interface-decls                      - Generate type interface declarations
      --gen-type-interface-defs                       - Generate type interface definitions
      --gen-type-interface-docs                       - Generate type interface documentation
      --gen-typedef-decls                             - Generate TypeDef declarations
      --gen-typedef-defs                              - Generate TypeDef definitions
      --gen-typedef-doc                               - Generate dialect type documentation
      --print-records                                 - Print all records to stdout
  --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

Intrinsics Generator Options:

  --dialect-opclass-base=<string>                  - The base class for the ops in the dialect we are planning to emit
  --llvmir-intrinsics-access-group-regexp=<string> - Mark intrinsics that match the specified regexp as taking an access group metadata
  --llvmir-intrinsics-alias-scopes-regexp=<string> - Mark intrinsics that match the specified regexp as taking alias.scopes and noalias metadata
  --llvmir-intrinsics-filter=<string>              - Only keep the intrinsics with the specified substring in their record name

Options for -gen-attrdef-*:

  --attrdefs-dialect=<string>                      - Generate attributes for this dialect

Options for -gen-dialect-*:

  --dialect=<string>                               - The dialect to gen for

Options for -gen-pass-capi-header and -gen-pass-capi-impl:

  --prefix=<string>                                - The prefix to use for this group of passes. The form will be mlirCreate<prefix><passname>, the prefix can avoid conflicts across libraries.

Options for -gen-pass-decls:

  --name=<string>                                  - The name of this group of passes

Options for -gen-python-op-bindings:

  --bind-dialect=<string>                          - The dialect to run the generator for

Options for -gen-typedef-*:

  --typedefs-dialect=<string>                      - Generate types for this dialect

Options for gen-directive-decl:

  --directives-dialect=<string>                    - Generate directives for this dialect

Options for op definition generators:

  --op-exclude-regex=<string>                      - Regex of name of op's to exclude (no filter if empty)
  --op-include-regex=<string>                      - Regex of name of op's to include (no filter if empty)
Options (68)
OptionDescriptionSource
--color- Use colors in output (default=autodetect)help
-D macro- Name of the macro to be definedhelp
-I directory- Directory of include fileshelp
--asmformat-error-is-fatal- Emit a fatal error if format parsing failshelp
-d filename- Dependency filenamehelp
--gen-attr-interface-decls- Generate attribute interface declarationshelp
--gen-attr-interface-defs- Generate attribute interface definitionshelp
--gen-attr-interface-docs- Generate attribute interface documentationhelp
--gen-attrdef-decls- Generate AttrDef declarationshelp
--gen-attrdef-defs- Generate AttrDef definitionshelp
--gen-attrdef-doc- Generate dialect attribute documentationhelp
--gen-avail-interface-decls- Generate availability interface declarationshelp
--gen-avail-interface-defs- Generate op interface definitionshelp
--gen-dialect-decls- Generate dialect declarationshelp
--gen-dialect-defs- Generate dialect definitionshelp
--gen-dialect-doc- Generate dialect documentationhelp
--gen-directive-decl- Generate declarations for directives (OpenMP/OpenACC etc.)help
--gen-enum-decls- Generate enum utility declarationshelp
--gen-enum-defs- Generate enum utility definitionshelp
--gen-enum-from-llvmir-conversions- Generate conversions of EnumAttrs from LLVM IRhelp
--gen-enum-to-llvmir-conversions- Generate conversions of EnumAttrs to LLVM IRhelp
--gen-llvmir-conversions- Generate LLVM IR conversionshelp
--gen-llvmir-intrinsics- Generate LLVM IR intrinsicshelp
--gen-op-decls- Generate op declarationshelp
--gen-op-defs- Generate op definitionshelp
--gen-op-doc- Generate dialect documentationhelp
--gen-op-interface-decls- Generate op interface declarationshelp
--gen-op-interface-defs- Generate op interface definitionshelp
--gen-op-interface-docs- Generate op interface documentationhelp
--gen-pass-capi-header- Generate pass C API headerhelp
--gen-pass-capi-impl- Generate pass C API implementationhelp
--gen-pass-decls- Generate pass declarationshelp
--gen-pass-doc- Generate pass documentationhelp
--gen-python-op-bindings- Generate Python bindings for MLIR Opshelp
--gen-rewriters- Generate pattern rewritershelp
--gen-spirv-attr-utils- Generate SPIR-V attribute utility definitionshelp
--gen-spirv-avail-impls- Generate SPIR-V operation utility definitionshelp
--gen-spirv-capability-implication- Generate utility function to return implied capabilities for a given capabilityhelp
--gen-spirv-enum-avail-decls- Generate SPIR-V enum availability declarationshelp
--gen-spirv-enum-avail-defs- Generate SPIR-V enum availability definitionshelp
--gen-spirv-serialization- Generate SPIR-V (de)serialization utilities and functionshelp
--gen-struct-attr-decls- Generate struct utility declarationshelp
--gen-struct-attr-defs- Generate struct utility definitionshelp
--gen-type-interface-decls- Generate type interface declarationshelp
--gen-type-interface-defs- Generate type interface definitionshelp
--gen-type-interface-docs- Generate type interface documentationhelp
--gen-typedef-decls- Generate TypeDef declarationshelp
--gen-typedef-defs- Generate TypeDef definitionshelp
--gen-typedef-doc- Generate dialect type documentationhelp
--print-records- Print all records to stdouthelp
--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
--dialect-opclass-base string- The base class for the ops in the dialect we are planning to emithelp
--llvmir-intrinsics-filter string- Only keep the intrinsics with the specified substring in their record namehelp
--attrdefs-dialect string- Generate attributes for this dialecthelp
--dialect string- The dialect to gen forhelp
--prefix string- The prefix to use for this group of passes.help
--name string- The name of this group of passeshelp
--bind-dialect string- The dialect to run the generator forhelp
--typedefs-dialect string- Generate types for this dialecthelp
--directives-dialect string- Generate directives for this dialecthelp
--op-exclude-regex string- Regex of name of op's to exclude (no filter if empty)help
--op-include-regex string- Regex of name of op's to include (no filter if empty)help

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