Beaver.MLIR.Pass.Composer (beaver v0.3.4)

This module provide functions to compose passes.

Summary

Types

@type composer() :: t()
@type operation() :: Beaver.MLIR.Module.t() | Beaver.MLIR.Operation.t()
Link to this type

run_option()

@type run_option() :: {:debug, boolean()} | {:print, boolean()} | {:timing, boolean()}
Link to this type

run_result()

@type run_result() :: {:ok, any()} | {:error, String.t()}
@type t() :: %Beaver.MLIR.Pass.Composer{op: operation(), passes: [any()]}

Functions

Link to this function

append(composer_or_op, pass)

Link to this function

nested(composer_or_op, op_name, passes)

Link to this function

run(composer, opts \\ [debug: false, print: false, timing: false])

@spec run(composer(), [run_option()]) :: run_result()
Link to this function

run!(composer, opts \\ [debug: false, print: false, timing: false])

@spec run!(composer(), [run_option()]) :: operation()
Link to this function

to_pipeline(composer)