pub struct Reduce(/* private fields */);
Implementations§
Source§impl Reduce
impl Reduce
Sourcepub fn new(
context: &Context,
parent: &Parallel,
args: &[Value],
num_reductions: usize,
loc: &Location,
) -> Self
pub fn new( context: &Context, parent: &Parallel, args: &[Value], num_reductions: usize, loc: &Location, ) -> Self
Number of reductions (num_reductions
) determines how many regions are instantiated for
the operation.
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
pub fn get_region(&self, i: isize) -> Option<Region>
Trait Implementations§
Source§impl From<(MlirOperation, MlirOperation)> for Reduce
impl From<(MlirOperation, MlirOperation)> for Reduce
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 Reduce
impl From<MlirOperation> for Reduce
Source§fn from(op: MlirOperation) -> Self
fn from(op: MlirOperation) -> Self
Converts to this type from the input type.
Source§impl IOperation for Reduce
impl IOperation for Reduce
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 Reduce
impl RefUnwindSafe for Reduce
impl !Send for Reduce
impl !Sync for Reduce
impl Unpin for Reduce
impl UnwindSafe for Reduce
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