Beaver.MLIR.Block (beaver v0.4.0)

This module defines functions working with MLIR Block.

Summary

Types

arg()

@type arg() :: {arg_type(), Beaver.MLIR.Location.t()} | arg_type()

arg_type()

@type arg_type() :: Beaver.MLIR.Type.t() | String.t()

t()

@type t() :: %Beaver.MLIR.Block{ref: term()}

Functions

add_args!(block, args, opts \\ [])

@spec add_args!(t(), [arg()], Keyword.t()) :: any()

add arguments to a block

create(arg_loc_pairs \\ [])

create(args, locs)

destroy(blk)

See Beaver.MLIR.CAPI.mlirBlockDestroy/1.

get_arg!(block, index)

make(value)