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
@type attribute() :: Beaver.MLIR.Attribute.t() | (Beaver.MLIR.Context.t() -> Beaver.MLIR.Attribute.t())
@type operation() :: Beaver.MLIR.Operation.t() | (Beaver.MLIR.Context.t() -> Beaver.MLIR.Operation.t())
@type opts() :: [{:ctx, Beaver.MLIR.Context.t()}]
@type type() :: Beaver.MLIR.Type.t() | (Beaver.MLIR.Context.t() -> Beaver.MLIR.Type.t())
Functions
@spec fetch_block(opts :: opts()) :: Beaver.MLIR.Block.t() | Macro.t() | nil
@spec fetch_context(opts :: opts()) :: Beaver.MLIR.Context.t() | Macro.t() | nil