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
--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 (87)
| Option | Description | Source |
|---|---|---|
--color | - Use colors in output (default=autodetect) | help |
-D macro | - Name of the macro to be defined | help |
-I directory | - Directory of include files | help |
--asmformat-error-is-fatal | - Emit a fatal error if format parsing fails | help |
-d filename | - Dependency filename | help |
--gen-attr-constraint-decls | - Generate attribute constraint declarations | help |
--gen-attr-constraint-defs | - Generate attribute constraint definitions | help |
--gen-attr-interface-decls | - Generate attribute interface declarations | help |
--gen-attr-interface-defs | - Generate attribute interface definitions | help |
--gen-attr-interface-docs | - Generate attribute interface documentation | help |
--gen-attrdef-decls | - Generate AttrDef declarations | help |
--gen-attrdef-defs | - Generate AttrDef definitions | help |
--gen-attrdef-doc | - Generate dialect attribute documentation | help |
--gen-avail-interface-decls | - Generate availability interface declarations | help |
--gen-avail-interface-defs | - Generate op interface definitions | help |
--gen-bytecode | - Generate dialect bytecode readers/writers | help |
--gen-convertible-llvmir-intrinsics | - Generate list of convertible LLVM IR intrinsics | help |
--gen-dialect-decls | - Generate dialect declarations | help |
--gen-dialect-defs | - Generate dialect definitions | help |
--gen-dialect-doc | - Generate dialect documentation | help |
--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 declarations | help |
--gen-enum-defs | - Generate enum utility definitions | help |
--gen-enum-doc | - Generate dialect enum documentation | help |
--gen-enum-from-llvmir-conversions | - Generate conversions of EnumAttrs from LLVM IR | help |
--gen-enum-to-llvmir-conversions | - Generate conversions of EnumAttrs to LLVM IR | help |
--gen-intr-from-llvmir-conversions | - Generate conversions of intrinsics from LLVM IR | help |
--gen-llvmir-conversions | - Generate LLVM IR conversions | help |
--gen-llvmir-intrinsics | - Generate LLVM IR intrinsics | help |
--gen-op-decls | - Generate op declarations | help |
--gen-op-defs | - Generate op definitions | help |
--gen-op-doc | - Generate dialect documentation | help |
--gen-op-from-llvmir-conversions | - Generate conversions of operations from LLVM IR | help |
--gen-op-interface-decls | - Generate op interface declarations | help |
--gen-op-interface-defs | - Generate op interface definitions | help |
--gen-op-interface-docs | - Generate op interface documentation | help |
--gen-openmp-clause-ops | - Generate OpenMP clause operand structures | help |
--gen-pass-capi-header | - Generate pass C API header | help |
--gen-pass-capi-impl | - Generate pass C API implementation | help |
--gen-pass-decls | - Generate pass declarations | help |
--gen-pass-doc | - Generate pass documentation | help |
--gen-python-enum-bindings | - Generate Python bindings for enum attributes | help |
--gen-python-op-bindings | - Generate Python bindings for MLIR Ops | help |
--gen-rewriters | - Generate pattern rewriters | help |
--gen-spirv-attr-utils | - Generate SPIR-V attribute utility definitions | help |
--gen-spirv-avail-impls | - Generate SPIR-V operation utility definitions | help |
--gen-spirv-capability-implication | - Generate utility function to return implied capabilities for a given capability | help |
--gen-spirv-enum-avail-decls | - Generate SPIR-V enum availability declarations | help |
--gen-spirv-enum-avail-defs | - Generate SPIR-V enum availability definitions | help |
--gen-spirv-serialization | - Generate SPIR-V (de)serialization utilities and functions | help |
--gen-tosa-avail-impls | - Generate Tosa operation utility definitions | help |
--gen-type-constraint-decls | - Generate type constraint declarations | help |
--gen-type-constraint-defs | - Generate type constraint definitions | help |
--gen-type-interface-decls | - Generate type interface declarations | help |
--gen-type-interface-defs | - Generate type interface definitions | help |
--gen-type-interface-docs | - Generate type interface documentation | help |
--gen-typedef-decls | - Generate TypeDef declarations | help |
--gen-typedef-defs | - Generate TypeDef definitions | help |
--gen-typedef-doc | - Generate dialect type documentation | help |
--print-records | - Print all records to stdout | help |
--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 filename | help |
--on-deprecated value | - Action to perform on deprecated def =none - No action =warn - Warn on use =error - Error on use | help |
--time-phases | - Time phases of parser and backend | help |
--write-if-changed | - Only write output if it changed | help |
--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 program | help |
--dialect-opclass-base string | - The base class for the ops in the dialect we are planning to emit | help |
--llvmir-intrinsics-access-group-regexp string | - Mark intrinsics that match the specified regexp as taking an access group metadata | help |
--llvmir-intrinsics-filter string | - Only keep the intrinsics with the specified substring in their record name | help |
--allow-hugo-specific-features | - Allows using features specific to Hugo | help |
--strip-prefix string | - Strip prefix of the fully qualified names | help |
--attrdefs-dialect string | - Generate attributes for this dialect | help |
--bytecode-dialect string | - The dialect to gen for | help |
--dialect string | - The dialect to gen for | help |
--prefix string | - The prefix to use for this group of passes. | help |
--name string | - The name of this group of passes | help |
--bind-dialect string | - The dialect to run the generator for | help |
--dialect-extension string | - The prefix of the dialect extension | help |
--typedefs-dialect string | - Generate types for this dialect | help |
--directives-dialect string | - Generate directives for this dialect | help |
--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 divided | help |