Trait melior::ir::attribute::AttributeLike
source · pub trait AttributeLike<'c> {
Show 32 methods
// Required method
fn to_raw(&self) -> MlirAttribute;
// Provided methods
fn context(&self) -> ContextRef<'c> { ... }
fn type(&self) -> Type<'_> { ... }
fn type_id(&self) -> TypeId<'c> { ... }
fn dump(&self) { ... }
fn is_affine_map(&self) -> bool { ... }
fn is_array(&self) -> bool { ... }
fn is_bool(&self) -> bool { ... }
fn is_dense_bool_array(&self) -> bool { ... }
fn is_dense_elements(&self) -> bool { ... }
fn is_dense_f32_array(&self) -> bool { ... }
fn is_dense_f64_array(&self) -> bool { ... }
fn is_dense_fp_elements(&self) -> bool { ... }
fn is_dense_i16_array(&self) -> bool { ... }
fn is_dense_i32_array(&self) -> bool { ... }
fn is_dense_i64_array(&self) -> bool { ... }
fn is_dense_i8_array(&self) -> bool { ... }
fn is_dense_int_elements(&self) -> bool { ... }
fn is_dictionary(&self) -> bool { ... }
fn is_elements(&self) -> bool { ... }
fn is_flat_symbol_ref(&self) -> bool { ... }
fn is_float(&self) -> bool { ... }
fn is_integer(&self) -> bool { ... }
fn is_integer_set(&self) -> bool { ... }
fn is_opaque(&self) -> bool { ... }
fn is_sparse_elements(&self) -> bool { ... }
fn is_sparse_tensor_encoding_attr(&self) -> bool { ... }
fn is_strided_layout(&self) -> bool { ... }
fn is_string(&self) -> bool { ... }
fn is_symbol_ref(&self) -> bool { ... }
fn is_type(&self) -> bool { ... }
fn is_unit(&self) -> bool { ... }
}
Expand description
Trait for attribute-like types.
Required Methods§
sourcefn to_raw(&self) -> MlirAttribute
fn to_raw(&self) -> MlirAttribute
Converts a attribute into a raw object.
Provided Methods§
sourcefn context(&self) -> ContextRef<'c>
fn context(&self) -> ContextRef<'c>
Gets a context.
sourcefn is_affine_map(&self) -> bool
fn is_affine_map(&self) -> bool
Returns true
if an attribute is affine map.
sourcefn is_dense_bool_array(&self) -> bool
fn is_dense_bool_array(&self) -> bool
Returns true
if an attribute is dense bool array.
sourcefn is_dense_elements(&self) -> bool
fn is_dense_elements(&self) -> bool
Returns true
if an attribute is dense elements.
sourcefn is_dense_f32_array(&self) -> bool
fn is_dense_f32_array(&self) -> bool
Returns true
if an attribute is dense f32 array.
sourcefn is_dense_f64_array(&self) -> bool
fn is_dense_f64_array(&self) -> bool
Returns true
if an attribute is dense f64 array.
sourcefn is_dense_fp_elements(&self) -> bool
fn is_dense_fp_elements(&self) -> bool
Returns true
if an attribute is dense fp elements.
sourcefn is_dense_i16_array(&self) -> bool
fn is_dense_i16_array(&self) -> bool
Returns true
if an attribute is dense i16 array.
sourcefn is_dense_i32_array(&self) -> bool
fn is_dense_i32_array(&self) -> bool
Returns true
if an attribute is dense i32 array.
sourcefn is_dense_i64_array(&self) -> bool
fn is_dense_i64_array(&self) -> bool
Returns true
if an attribute is dense i64 array.
sourcefn is_dense_i8_array(&self) -> bool
fn is_dense_i8_array(&self) -> bool
Returns true
if an attribute is dense i8 array.
sourcefn is_dense_int_elements(&self) -> bool
fn is_dense_int_elements(&self) -> bool
Returns true
if an attribute is dense int elements.
sourcefn is_dictionary(&self) -> bool
fn is_dictionary(&self) -> bool
Returns true
if an attribute is dictionary.
sourcefn is_elements(&self) -> bool
fn is_elements(&self) -> bool
Returns true
if an attribute is elements.
sourcefn is_flat_symbol_ref(&self) -> bool
fn is_flat_symbol_ref(&self) -> bool
Returns true
if an attribute is flat symbol ref.
sourcefn is_integer(&self) -> bool
fn is_integer(&self) -> bool
Returns true
if an attribute is integer.
sourcefn is_integer_set(&self) -> bool
fn is_integer_set(&self) -> bool
Returns true
if an attribute is integer set.
sourcefn is_sparse_elements(&self) -> bool
fn is_sparse_elements(&self) -> bool
Returns true
if an attribute is sparse elements.
sourcefn is_sparse_tensor_encoding_attr(&self) -> bool
fn is_sparse_tensor_encoding_attr(&self) -> bool
Returns true
if an attribute is sparse tensor encoding attr.
sourcefn is_strided_layout(&self) -> bool
fn is_strided_layout(&self) -> bool
Returns true
if an attribute is strided layout.
sourcefn is_symbol_ref(&self) -> bool
fn is_symbol_ref(&self) -> bool
Returns true
if an attribute is symbol ref.