Beaver.MLIR.Operation.State (beaver v0.2.11)

Link to this section Summary

Functions

Add an ODS argument to state.

Create a new operation state in MLIR CAPI.

Link to this section Types

@type argument() ::
  Value.t()
  | {atom(), Beaver.MLIR.CAPI.MlirAttribute.t()}
  | {:regions, function()}
  | {:result_types, [Beaver.MLIR.CAPI.MlirType.t()]}
  | {Beaver.MLIR.CAPI.MlirBlock.t(), [Beaver.MLIR.Value.t()]}
  | Beaver.MLIR.CAPI.MlirBlock.t()
@type t() :: %Beaver.MLIR.Operation.State{
  attributes: list(),
  context: Beaver.MLIR.CAPI.MlirContext.t(),
  location: Beaver.MLIR.CAPI.MlirLocation.t(),
  name: String.t(),
  operands: list(),
  regions: list(),
  results: list(),
  successors: list()
}

Link to this section Functions

Link to this function

add_argument(state, f)

@spec add_argument(t(), argument()) :: Beaver.MLIR.CAPI.MlirOperationState.t()

Add an ODS argument to state.

Create a new operation state in MLIR CAPI.