pub struct DeallocOperation<'c> { /* private fields */ }
Expand description
A dealloc
operation. Memory deallocation operation.
The dealloc
operation frees the region of memory referenced by a memref
which was originally created by the alloc
operation.
The dealloc
operation should not be called on memrefs which alias an
alloc’d memref (e.g. memrefs returned by view
operations).
Example:
%0 = memref.alloc() : memref<8x64xf32, affine_map<(d0, d1) -> (d0, d1), 1>>
memref.dealloc %0 : memref<8x64xf32, affine_map<(d0, d1) -> (d0, d1), 1>>
Implementations§
Trait Implementations§
source§impl<'c> From<DeallocOperation<'c>> for Operation<'c>
impl<'c> From<DeallocOperation<'c>> for Operation<'c>
source§fn from(operation: DeallocOperation<'c>) -> Self
fn from(operation: DeallocOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for DeallocOperation<'c>
impl<'c> !Send for DeallocOperation<'c>
impl<'c> !Sync for DeallocOperation<'c>
impl<'c> Unpin for DeallocOperation<'c>
impl<'c> UnwindSafe for DeallocOperation<'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