pub struct ReduceReturn(/* private fields */);
Implementations§
Source§impl ReduceReturn
impl ReduceReturn
Sourcepub fn new(
context: &Context,
parent: &Reduce,
value: &Value,
pos: usize,
loc: &Location,
) -> Self
pub fn new( context: &Context, parent: &Reduce, value: &Value, pos: usize, loc: &Location, ) -> Self
Uses the pos-th region in the parent to check for expected result types. Each region in the parent is expected to have the same block argument signature.
pub fn get(&self) -> &MlirOperation
pub fn get_mut(&mut self) -> &mut MlirOperation
pub fn get_parent(&self) -> &MlirOperation
pub fn get_parent_mut(&mut self) -> &mut MlirOperation
Trait Implementations§
Source§impl Clone for ReduceReturn
impl Clone for ReduceReturn
Source§fn clone(&self) -> ReduceReturn
fn clone(&self) -> ReduceReturn
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 moreSource§impl From<(MlirOperation, MlirOperation)> for ReduceReturn
impl From<(MlirOperation, MlirOperation)> for ReduceReturn
Source§fn from((op, parent_op): (MlirOperation, MlirOperation)) -> Self
fn from((op, parent_op): (MlirOperation, MlirOperation)) -> Self
Converts to this type from the input type.
Source§impl From<MlirOperation> for ReduceReturn
impl From<MlirOperation> for ReduceReturn
Source§fn from(op: MlirOperation) -> Self
fn from(op: MlirOperation) -> Self
Converts to this type from the input type.
Source§impl IOperation for ReduceReturn
impl IOperation for ReduceReturn
fn get(&self) -> &MlirOperation
fn get_dialect(&self) -> Dialect
fn get_effects(&self) -> MemoryEffectList
fn get_interfaces(&self) -> &'static [Interface]
fn get_mut(&mut self) -> &mut MlirOperation
fn get_name(&self) -> &'static str
fn get_op(&self) -> OpRef
fn get_traits(&self) -> &'static [Trait]
fn as_operation(&self) -> Operation ⓘ
Auto Trait Implementations§
impl Freeze for ReduceReturn
impl RefUnwindSafe for ReduceReturn
impl !Send for ReduceReturn
impl !Sync for ReduceReturn
impl Unpin for ReduceReturn
impl UnwindSafe for ReduceReturn
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