Struct melior::dialect::ods::bufferization::CloneOperation
source · pub struct CloneOperation<'c> { /* private fields */ }
Expand description
A clone
operation. Clone a memref.
Clones the data in the input view into an implicitly defined output view.
Usage:
%arg1 = bufferization.clone %arg0 : memref<?xf32> to memref<?xf32>
Valid implementations of this operation may alias the input and output views or create an actual copy. Mutating the source or result of the clone operation after the clone operation thus leads to undefined behavior.
Implementations§
source§impl<'c> CloneOperation<'c>
impl<'c> CloneOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> CloneOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> CloneOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn output(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn input(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<CloneOperation<'c>> for Operation<'c>
impl<'c> From<CloneOperation<'c>> for Operation<'c>
source§fn from(operation: CloneOperation<'c>) -> Self
fn from(operation: CloneOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for CloneOperation<'c>
impl<'c> !Send for CloneOperation<'c>
impl<'c> !Sync for CloneOperation<'c>
impl<'c> Unpin for CloneOperation<'c>
impl<'c> UnwindSafe for CloneOperation<'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