Struct melior_next::ir::operation::Operation
source · pub struct Operation<'c> { /* private fields */ }
Expand description
An operation.
Implementations§
source§impl<'c> Operation<'c>
impl<'c> Operation<'c>
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.