pub struct MemRef(/* private fields */);
Implementations§
Source§impl MemRef
impl MemRef
pub fn new( shape: &dyn Shape, t: &Type, layout: &impl NamedMemoryLayout, memory_space: &impl NamedMemorySpace, ) -> Self
pub fn new_checked( shape: &dyn Shape, t: &Type, layout: &impl NamedMemoryLayout, memory_space: &impl NamedMemorySpace, loc: &Location, ) -> Self
pub fn new_contiguous( shape: &dyn Shape, t: &Type, memory_space: &impl NamedMemorySpace, ) -> Self
pub fn new_contiguous_checked( shape: &dyn Shape, t: &Type, memory_space: &impl NamedMemorySpace, loc: &Location, ) -> Self
pub fn from_type(t: &Type) -> Self
pub fn as_shaped(&self) -> Shaped
pub fn get(&self) -> &MlirType
pub fn get_affine_map(&self) -> AffineMap
pub fn get_layout<T: From<MlirAttribute>>(&self) -> T
pub fn get_layout_attribute(&self) -> MlirAttribute
pub fn get_matching_suffix<L: NamedMemoryLayout, S: NamedMemorySpace>( &self, other: &Self, ) -> Option<Self>
pub fn get_memory_space<T: NamedMemorySpace>(&self) -> T
pub fn get_memory_space_attribute(&self) -> MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirType
pub fn get_strided_layout(&self) -> Result<StridedLayout, String>
pub fn get_type_id() -> TypeID
Trait Implementations§
Source§impl NewElementType for MemRef
impl NewElementType for MemRef
fn new_element_type(other: &Self, t: &Type) -> Self
Auto Trait Implementations§
impl Freeze for MemRef
impl RefUnwindSafe for MemRef
impl !Send for MemRef
impl !Sync for MemRef
impl Unpin for MemRef
impl UnwindSafe for MemRef
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