Beaver.MLIR.Attribute (beaver v0.4.4)

This module defines functions parsing and creating attributes in MLIR.

Summary

Functions

calls Beaver.MLIR.CAPI.mlirAttributeIsAAffineMap/1 to check if it is AffineMap attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAArray/1 to check if it is Array attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsABool/1 to check if it is Bool attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseBoolArray/1 to check if it is DenseBoolArray attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseElements/1 to check if it is DenseElements attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseF32Array/1 to check if it is DenseF32Array attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseF64Array/1 to check if it is DenseF64Array attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseFPElements/1 to check if it is DenseFPElements attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseI8Array/1 to check if it is DenseI8Array attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseI16Array/1 to check if it is DenseI16Array attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseI32Array/1 to check if it is DenseI32Array attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseI64Array/1 to check if it is DenseI64Array attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseIntElements/1 to check if it is DenseIntElements attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseResourceElements/1 to check if it is DenseResourceElements attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsADictionary/1 to check if it is Dictionary attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAElements/1 to check if it is Elements attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAEmitCCmpPredicate/1 to check if it is EmitCCmpPredicate attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAEmitCOpaque/1 to check if it is EmitCOpaque attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAFlatSymbolRef/1 to check if it is FlatSymbolRef attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAFloat/1 to check if it is Float attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAGPUObjectAttr/1 to check if it is GPUObjectAttr attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAInteger/1 to check if it is Integer attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAIntegerSet/1 to check if it is IntegerSet attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsALocation/1 to check if it is Location attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAOpaque/1 to check if it is Opaque attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsASparseElements/1 to check if it is SparseElements attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsASparseTensorEncodingAttr/1 to check if it is SparseTensorEncodingAttr attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAStridedLayout/1 to check if it is StridedLayout attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAString/1 to check if it is String attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsASymbolRef/1 to check if it is SymbolRef attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAType/1 to check if it is Type attribute

calls Beaver.MLIR.CAPI.mlirAttributeIsAUnit/1 to check if it is Unit attribute

Types

t()

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

Functions

affine_map(map)

affine_map?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAAffineMap/1 to check if it is AffineMap attribute

array(elements, opts \\ [])

array?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAArray/1 to check if it is Array attribute

bool(value, opts \\ [])

bool?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsABool/1 to check if it is Bool attribute

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

dense_bool_array?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseBoolArray/1 to check if it is DenseBoolArray attribute

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

dense_elements?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseElements/1 to check if it is DenseElements attribute

dense_f32_array?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseF32Array/1 to check if it is DenseF32Array attribute

dense_f64_array?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseF64Array/1 to check if it is DenseF64Array attribute

dense_fp_elements?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseFPElements/1 to check if it is DenseFPElements attribute

dense_i8_array?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseI8Array/1 to check if it is DenseI8Array attribute

dense_i16_array?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseI16Array/1 to check if it is DenseI16Array attribute

dense_i32_array?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseI32Array/1 to check if it is DenseI32Array attribute

dense_i64_array?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseI64Array/1 to check if it is DenseI64Array attribute

dense_int_elements?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseIntElements/1 to check if it is DenseIntElements attribute

dense_resource_elements?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADenseResourceElements/1 to check if it is DenseResourceElements attribute

dictionary(elements, opts \\ [])

dictionary?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsADictionary/1 to check if it is Dictionary attribute

elements?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAElements/1 to check if it is Elements attribute

emit_c_cmp_predicate?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAEmitCCmpPredicate/1 to check if it is EmitCCmpPredicate attribute

emit_c_opaque?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAEmitCOpaque/1 to check if it is EmitCOpaque attribute

flat_symbol_ref(symbol, opts \\ [])

flat_symbol_ref?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAFlatSymbolRef/1 to check if it is FlatSymbolRef attribute

float(t, value)

float?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAFloat/1 to check if it is Float attribute

get(attr_str, opts \\ [])

gpu_object_attr?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAGPUObjectAttr/1 to check if it is GPUObjectAttr attribute

index(value, opts \\ [])

integer(t, value)

integer?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAInteger/1 to check if it is Integer attribute

integer_set?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAIntegerSet/1 to check if it is IntegerSet attribute

location?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsALocation/1 to check if it is Location attribute

make(value)

null()

opaque?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAOpaque/1 to check if it is Opaque attribute

sparse_elements?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsASparseElements/1 to check if it is SparseElements attribute

sparse_tensor_encoding_attr?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsASparseTensorEncodingAttr/1 to check if it is SparseTensorEncodingAttr attribute

strided_layout?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAStridedLayout/1 to check if it is StridedLayout attribute

string(str, opts \\ [])

string?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAString/1 to check if it is String attribute

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

symbol_ref?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsASymbolRef/1 to check if it is SymbolRef attribute

type(t)

type?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAType/1 to check if it is Type attribute

unit(opts \\ [])

unit?(t)

calls Beaver.MLIR.CAPI.mlirAttributeIsAUnit/1 to check if it is Unit attribute

unwrap(attribute)

unwrap_string(str_attr)

See Beaver.MLIR.CAPI.mlirStringAttrGetValue/1.

unwrap_type(type_attr)

See Beaver.MLIR.CAPI.mlirTypeAttrGetValue/1.