Beaver.MLIR.Context (beaver v0.4.0)
This module defines functions creating or destroying MLIR context.
Summary
Functions
Create a MLIR context. By default it registers and loads all dialects.
Run the given function with a diagnostic handler attached to the MLIR context.
Run a function with a registry appended to the context.
Types
Functions
@spec create([context_option()]) :: t()
Create a MLIR context. By default it registers and loads all dialects.
@spec with_diagnostics( t(), (-> result()), (Beaver.MLIR.Diagnostic.t(), handler_acc() -> handler_acc()) | {(-> handler_acc()), (Beaver.MLIR.Diagnostic.t(), handler_acc() -> handler_acc())} ) :: {result(), handler_acc()}
Run the given function with a diagnostic handler attached to the MLIR context.
Run a function with a registry appended to the context.