Beaver.MLIR.Context (beaver v0.3.5)

This module defines functions creating or destroying MLIR context.

Summary

Types

Link to this type

context_option()

@type context_option() ::
  {:allow_unregistered, boolean()} | {:all_dialects, boolean()}
@type t() :: %Beaver.MLIR.Context{bag: term(), ref: term()}

Functions

Link to this function

create(opts \\ [allow_unregistered: false, all_dialects: true])

@spec create(context_option()) :: t()

create a MLIR context, it registers all dialects by default

See Beaver.MLIR.CAPI.mlirContextDestroy/1.