Struct melior::ir::type::MemRefType
source · pub struct MemRefType<'c> { /* private fields */ }
Expand description
A mem-ref type.
Implementations§
source§impl<'c> MemRefType<'c>
impl<'c> MemRefType<'c>
sourcepub fn new(
type: Type<'c>,
dimensions: &[i64],
layout: Option<Attribute<'c>>,
memory_space: Option<Attribute<'c>>
) -> Self
pub fn new( type: Type<'c>, dimensions: &[i64], layout: Option<Attribute<'c>>, memory_space: Option<Attribute<'c>> ) -> Self
Creates a mem-ref type.
sourcepub fn checked(
location: Location<'c>,
type: Type<'c>,
dimensions: &[u64],
layout: Attribute<'c>,
memory_space: Attribute<'c>
) -> Option<Self>
pub fn checked( location: Location<'c>, type: Type<'c>, dimensions: &[u64], layout: Attribute<'c>, memory_space: Attribute<'c> ) -> Option<Self>
Creates a mem-ref type with diagnostics.
sourcepub fn affine_map(&self) -> AffineMap<'c>
pub fn affine_map(&self) -> AffineMap<'c>
Gets an affine map.
sourcepub fn memory_space(&self) -> Option<Attribute<'c>>
pub fn memory_space(&self) -> Option<Attribute<'c>>
Gets a memory space.
Trait Implementations§
source§impl<'c> Clone for MemRefType<'c>
impl<'c> Clone for MemRefType<'c>
source§fn clone(&self) -> MemRefType<'c>
fn clone(&self) -> MemRefType<'c>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'c> Debug for MemRefType<'c>
impl<'c> Debug for MemRefType<'c>
source§impl<'c> Display for MemRefType<'c>
impl<'c> Display for MemRefType<'c>
source§impl<'c> From<MemRefType<'c>> for Type<'c>
impl<'c> From<MemRefType<'c>> for Type<'c>
source§fn from(value: MemRefType<'c>) -> Self
fn from(value: MemRefType<'c>) -> Self
Converts to this type from the input type.
source§impl<'c> ShapedTypeLike<'c> for MemRefType<'c>
impl<'c> ShapedTypeLike<'c> for MemRefType<'c>
source§impl<'c> TryFrom<Type<'c>> for MemRefType<'c>
impl<'c> TryFrom<Type<'c>> for MemRefType<'c>
source§impl<'c> TypeLike<'c> for MemRefType<'c>
impl<'c> TypeLike<'c> for MemRefType<'c>
source§fn context(&self) -> ContextRef<'c>
fn context(&self) -> ContextRef<'c>
Gets a context.
source§fn is_any_quantized_type(&self) -> bool
fn is_any_quantized_type(&self) -> bool
Returns
true
if a type is any quantized type.source§fn is_calibrated_quantized_type(&self) -> bool
fn is_calibrated_quantized_type(&self) -> bool
Returns
true
if a type is calibrated quantized type.source§fn is_complex(&self) -> bool
fn is_complex(&self) -> bool
Returns
true
if a type is complex.source§fn is_float8e4m3fn(&self) -> bool
fn is_float8e4m3fn(&self) -> bool
Returns
true
if a type is float8e4m3fn.source§fn is_float8e5m2(&self) -> bool
fn is_float8e5m2(&self) -> bool
Returns
true
if a type is float8e5m2.source§fn is_function(&self) -> bool
fn is_function(&self) -> bool
Returns
true
if a type is function.source§fn is_integer(&self) -> bool
fn is_integer(&self) -> bool
Returns
true
if a type is integer.source§fn is_mem_ref(&self) -> bool
fn is_mem_ref(&self) -> bool
Returns
true
if a type is mem ref.source§fn is_pdl_attribute_type(&self) -> bool
fn is_pdl_attribute_type(&self) -> bool
Returns
true
if a type is pdl attribute type.source§fn is_pdl_operation_type(&self) -> bool
fn is_pdl_operation_type(&self) -> bool
Returns
true
if a type is pdl operation type.source§fn is_pdl_range_type(&self) -> bool
fn is_pdl_range_type(&self) -> bool
Returns
true
if a type is pdl range type.source§fn is_pdl_type(&self) -> bool
fn is_pdl_type(&self) -> bool
Returns
true
if a type is pdl type.source§fn is_pdl_type_type(&self) -> bool
fn is_pdl_type_type(&self) -> bool
Returns
true
if a type is pdl type type.source§fn is_pdl_value_type(&self) -> bool
fn is_pdl_value_type(&self) -> bool
Returns
true
if a type is pdl value type.source§fn is_quantized_type(&self) -> bool
fn is_quantized_type(&self) -> bool
Returns
true
if a type is quantized type.source§fn is_ranked_tensor(&self) -> bool
fn is_ranked_tensor(&self) -> bool
Returns
true
if a type is ranked tensor.source§fn is_transform_any_op_type(&self) -> bool
fn is_transform_any_op_type(&self) -> bool
Returns
true
if a type is transform any op type.source§fn is_transform_operation_type(&self) -> bool
fn is_transform_operation_type(&self) -> bool
Returns
true
if a type is transform operation type.source§fn is_uniform_quantized_per_axis_type(&self) -> bool
fn is_uniform_quantized_per_axis_type(&self) -> bool
Returns
true
if a type is uniform quantized per axis type.source§fn is_uniform_quantized_type(&self) -> bool
fn is_uniform_quantized_type(&self) -> bool
Returns
true
if a type is uniform quantized type.source§fn is_unranked_mem_ref(&self) -> bool
fn is_unranked_mem_ref(&self) -> bool
Returns
true
if a type is unranked mem ref.source§fn is_unranked_tensor(&self) -> bool
fn is_unranked_tensor(&self) -> bool
Returns
true
if a type is unranked tensor.impl<'c> Copy for MemRefType<'c>
Auto Trait Implementations§
impl<'c> RefUnwindSafe for MemRefType<'c>
impl<'c> !Send for MemRefType<'c>
impl<'c> !Sync for MemRefType<'c>
impl<'c> Unpin for MemRefType<'c>
impl<'c> UnwindSafe for MemRefType<'c>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more