Beaver.MLIR (beaver v0.3.5)

This module provides functions to dump MLIR elements or print them to Elixir string.

Summary

Functions

Print MLIR element as Elixir binary string. When printing an operation, it is recommended to use generic: false or generic: true to explicitly specify the format if your usage requires consistent output. If not specified, the default behavior is subject to change according to the MLIR version.

Types

Functions

Link to this function

dump(mlir, opts \\ [])

@spec dump(printable(), dump_opts()) :: :ok
Link to this function

dump!(mlir, opts \\ [])

@spec dump!(printable(), dump_opts()) :: any()
@spec is_null(nullable()) :: boolean()
Link to this function

to_string(mlir, opts \\ [])

@spec to_string(printable(), dump_opts()) :: :ok

Print MLIR element as Elixir binary string. When printing an operation, it is recommended to use generic: false or generic: true to explicitly specify the format if your usage requires consistent output. If not specified, the default behavior is subject to change according to the MLIR version.