Struct melior_next::ir::Attribute
source · pub struct Attribute<'c> { /* private fields */ }
Expand description
An attribute.
Implementations§
source§impl<'c> Attribute<'c>
impl<'c> Attribute<'c>
sourcepub fn array(context: &'c Context, attributes: &[Attribute<'_>]) -> Option<Self>
pub fn array(context: &'c Context, attributes: &[Attribute<'_>]) -> Option<Self>
Creates an array attribute.
sourcepub fn integer(
context: &'c Context,
integer_literal: &str,
integer_type: Type<'_>
) -> Option<Self>
pub fn integer( context: &'c Context, integer_literal: &str, integer_type: Type<'_> ) -> Option<Self>
Creates an integer attribute.
sourcepub fn is_affine_map(&self) -> bool
pub fn is_affine_map(&self) -> bool
Returns true
if an attribute is a affine map.
sourcepub fn is_dense_elements(&self) -> bool
pub fn is_dense_elements(&self) -> bool
Returns true
if an attribute is dense elements.
sourcepub fn is_dense_integer_elements(&self) -> bool
pub fn is_dense_integer_elements(&self) -> bool
Returns true
if an attribute is dense integer elements.
sourcepub fn is_dense_float_elements(&self) -> bool
pub fn is_dense_float_elements(&self) -> bool
Returns true
if an attribute is dense float elements.
sourcepub fn is_dictionary(&self) -> bool
pub fn is_dictionary(&self) -> bool
Returns true
if an attribute is a dictionary.
sourcepub fn is_elements(&self) -> bool
pub fn is_elements(&self) -> bool
Returns true
if an attribute is elements.
sourcepub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
Returns true
if an attribute is an integer.
sourcepub fn is_integer_set(&self) -> bool
pub fn is_integer_set(&self) -> bool
Returns true
if an attribute is an integer set.
sourcepub fn is_sparse_elements(&self) -> bool
pub fn is_sparse_elements(&self) -> bool
Returns true
if an attribute is sparse elements.
sourcepub fn context(&self) -> ContextRef<'c>
pub fn context(&self) -> ContextRef<'c>
Gets a context.