Beaver.Deferred (beaver v0.4.0)

Functions to work with IR entities not eagerly created. Usually it is an attribute/type doesn't get created until there is a MLIR context from block/op state.

Summary

Types

attribute()

operation()

opts()

@type opts() :: [{:ctx, Beaver.MLIR.Context.t()}]

type()

Functions

create(f, ctx)

fetch_block(opts)

@spec fetch_block(opts :: opts()) :: Beaver.MLIR.Block.t() | Macro.t() | nil

fetch_context(opts)

@spec fetch_context(opts :: opts()) :: Beaver.MLIR.Context.t() | Macro.t() | nil

from_opts(opts, f)