OS Manuals

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

LLVM mlir tools

From mlir-23-tools 23.1.5-r0 (os), captured 2026-11-05 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-constraint-decls                       - Generate attribute constraint declarations
      --gen-attr-constraint-defs                        - Generate attribute constraint definitions
      --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-bytecode                                    - Generate dialect bytecode readers/writers
      --gen-convertible-llvmir-intrinsics               - Generate list of convertible LLVM IR intrinsics
      --gen-dialect-decls                               - Generate dialect declarations
      --gen-dialect-defs                                - Generate dialect definitions
      --gen-dialect-doc                                 - Generate dialect documentation
      --gen-dialect-interface-decls                     - Generate dialect interface declarations.
      --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-doc                                    - Generate dialect enum documentation
      --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-intr-from-llvmir-conversions                - Generate conversions of intrinsics from 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-from-llvmir-conversions                  - Generate conversions of operations from LLVM IR
      --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-openmp-clause-ops                           - Generate OpenMP clause operand structures
      --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-enum-bindings                        - Generate Python bindings for enum attributes
      --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-tosa-avail-impls                            - Generate Tosa operation utility definitions
      --gen-type-constraint-decls                       - Generate type constraint declarations
      --gen-type-constraint-defs                        - Generate type constraint 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
      --verify-openmp-ops                               - Verify OpenMP operations (produce no output file)
  --no-warn-on-unused-template-args                  - Disable unused template argument warnings.
  -o <filename>                                      - Output filename
  --on-deprecated=<value>                            - Action to perform on deprecated def
    =none                                            -   No action
    =warn                                            -   Warn on use
    =error                                           -   Error on use
  --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-analysis-regexp=<string> - Mark intrinsics that match the specified regexp as taking alias.scopes, noalias, and tbaa metadata
  --llvmir-intrinsics-filter=<string>                - Only keep the intrinsics with the specified substring in their record name

Options for -gen-(attrdef|typedef|enum|op|dialect)-doc:

  --allow-hugo-specific-features                     - Allows using features specific to Hugo
  --keep-op-source-order                             - Do not sort ops alphabetically
  --strip-prefix=<string>                            - Strip prefix of the fully qualified names

Options for -gen-attrdef-*:

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

Options for -gen-bytecode:

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

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
  --dialect-extension=<string>                       - The prefix of the dialect extension

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)
  --op-shard-count=<uint>                            - The number of shards into which the op classes will be divided
Options (88)
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-constraint-decls- Generate attribute constraint declarationshelp
--gen-attr-constraint-defs- Generate attribute constraint definitionshelp
--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-bytecode- Generate dialect bytecode readers/writershelp
--gen-convertible-llvmir-intrinsics- Generate list of convertible LLVM IR intrinsicshelp
--gen-dialect-decls- Generate dialect declarationshelp
--gen-dialect-defs- Generate dialect definitionshelp
--gen-dialect-doc- Generate dialect documentationhelp
--gen-dialect-interface-decls- Generate dialect interface declarations.help
--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-doc- Generate dialect enum documentationhelp
--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-intr-from-llvmir-conversions- Generate conversions of intrinsics from 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-from-llvmir-conversions- Generate conversions of operations from LLVM IRhelp
--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-openmp-clause-ops- Generate OpenMP clause operand structureshelp
--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-enum-bindings- Generate Python bindings for enum attributeshelp
--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-tosa-avail-impls- Generate Tosa operation utility definitionshelp
--gen-type-constraint-decls- Generate type constraint declarationshelp
--gen-type-constraint-defs- Generate type constraint 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
--verify-openmp-ops- Verify OpenMP operations (produce no output file)help
--no-warn-on-unused-template-args- Disable unused template argument warnings.help
-o filename- Output filenamehelp
--on-deprecated value- Action to perform on deprecated def =none - No action =warn - Warn on use =error - Error on usehelp
--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-access-group-regexp string- Mark intrinsics that match the specified regexp as taking an access group metadatahelp
--llvmir-intrinsics-filter string- Only keep the intrinsics with the specified substring in their record namehelp
--allow-hugo-specific-features- Allows using features specific to Hugohelp
--keep-op-source-order- Do not sort ops alphabeticallyhelp
--strip-prefix string- Strip prefix of the fully qualified nameshelp
--attrdefs-dialect string- Generate attributes for this dialecthelp
--bytecode-dialect string- The dialect to gen forhelp
--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
--dialect-extension string- The prefix of the dialect extensionhelp
--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
--op-shard-count uint- The number of shards into which the op classes will be dividedhelp

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