Struct melior_next::ir::operation::OperationRef
source · pub struct OperationRef<'a> { /* private fields */ }
Expand description
A reference to an operation.
Methods from Deref<Target = Operation<'a>>§
sourcepub fn context(&self) -> ContextRef<'_>
pub fn context(&self) -> ContextRef<'_>
Gets a context.
sourcepub fn name(&self) -> Identifier<'_>
pub fn name(&self) -> Identifier<'_>
Gets a name.
sourcepub fn result(&self, position: usize) -> Result<ResultValue<'_>, Error>
pub fn result(&self, position: usize) -> Result<ResultValue<'_>, Error>
Gets a result at a position.
sourcepub fn result_count(&self) -> usize
pub fn result_count(&self) -> usize
Gets a number of results.
sourcepub fn region_count(&self) -> usize
pub fn region_count(&self) -> usize
Gets a number of regions.
pub fn debug_print(&self) -> String
sourcepub fn next_in_block(&self) -> Option<OperationRef<'_>>
pub fn next_in_block(&self) -> Option<OperationRef<'_>>
Gets the next operation in the same block.
Trait Implementations§
source§impl<'a> Clone for OperationRef<'a>
impl<'a> Clone for OperationRef<'a>
source§fn clone(&self) -> OperationRef<'a>
fn clone(&self) -> OperationRef<'a>
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 more