Beaver.MLIR.Attribute (beaver v0.4.0)

This module defines functions parsing and creating attributes in MLIR.

Summary

Types

t()

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

Functions

affine_map(map)

array(elements, opts \\ [])

bool(value, opts \\ [])

dense_array(elements, type, opts \\ [])

dense_elements(elements, shaped_type \\ {:i, 8}, opts \\ [])

flat_symbol_ref(symbol, opts \\ [])

float(t, value)

get(attr_str, opts \\ [])

index(value, opts \\ [])

integer(t, value)

make(value)

null()

string(str, opts \\ [])

symbol_ref(symbol, nested_symbols \\ [], opts \\ [])

type(t)

unit(opts \\ [])

unwrap(attribute)

unwrap_string(str_attr)

See Beaver.MLIR.CAPI.mlirStringAttrGetValue/1.

unwrap_type(type_attr)

See Beaver.MLIR.CAPI.mlirTypeAttrGetValue/1.