mlir._mlir_libs._mlir

Submodules

Attributes

Classes

Functions

register_dialect(→ type)

Class decorator for registering a custom Dialect wrapper

register_operation(→ object)

Produce a class decorator for registering an Operation class as part of a dialect

register_type_caster(→ object)

Register a type caster for casting MLIR types to custom user types.

register_value_caster(→ object)

Register a value caster for casting MLIR values to custom user values.

Package Contents

class mlir._mlir_libs._mlir._Globals
property dialect_search_modules: list[str]
append_dialect_search_prefix(module_name: str) None
_check_dialect_module_loaded(dialect_namespace: str) bool
_register_dialect_impl(dialect_namespace: str, dialect_class: object) None

Testing hook for directly registering a dialect

_register_operation_impl(operation_name: str, operation_class: object, *, replace: bool = False) None

Testing hook for directly registering an operation

loc_tracebacks_enabled() bool
set_loc_tracebacks_enabled(arg: bool, /) None
loc_tracebacks_frame_limit() int
set_loc_tracebacks_frame_limit(arg: int, /) None
register_traceback_file_inclusion(arg: str, /) None
register_traceback_file_exclusion(arg: str, /) None
mlir._mlir_libs._mlir.globals: _Globals = Ellipsis
mlir._mlir_libs._mlir.register_dialect(dialect_class: type) type

Class decorator for registering a custom Dialect wrapper

mlir._mlir_libs._mlir.register_operation(dialect_class: type, *, replace: bool = False) object

Produce a class decorator for registering an Operation class as part of a dialect

mlir._mlir_libs._mlir.register_type_caster(typeid: mlir.ir.TypeID, *, replace: bool = False) object

Register a type caster for casting MLIR types to custom user types.

mlir._mlir_libs._mlir.register_value_caster(typeid: mlir.ir.TypeID, *, replace: bool = False) object

Register a value caster for casting MLIR values to custom user values.