Beaver.MLIR.Context (beaver v0.3.4)

This module defines functions creating or destroying MLIR context.

Summary

Types

Link to this type

context_option()

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

Functions

Link to this function

create(opts \\ [allow_unregistered: false])

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

create a MLIR context and register all dialects

See Beaver.MLIR.CAPI.mlirContextDestroy/1.