Skip to main content

SingleBlockRegionInterface

Trait SingleBlockRegionInterface 

Source
pub trait SingleBlockRegionInterface: Op {
    // Provided methods
    fn get_body(&self, ctx: &Context, region_idx: usize) -> Ptr<BasicBlock> { ... }
    fn append_operation(
        &self,
        ctx: &mut Context,
        op: Ptr<Operation>,
        region_idx: usize,
    ) { ... }
}
Expand description

Ops with regions that have a single block.

Provided Methods§

Source

fn get_body(&self, ctx: &Context, region_idx: usize) -> Ptr<BasicBlock>

Get the single body block in region_idx.

Source

fn append_operation( &self, ctx: &mut Context, op: Ptr<Operation>, region_idx: usize, )

Insert an operation at the end of the single block in region_idx.

Trait Implementations§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl SingleBlockRegionInterface for ForOp

Source§

impl SingleBlockRegionInterface for cubecl_ir::dialect::branch::IfOp

Source§

impl SingleBlockRegionInterface for cubecl_ir::dialect::scf::IfOp

Source§

impl SingleBlockRegionInterface for ModuleOp

Source§

impl SingleBlockRegionInterface for RangeLoopOp

Source§

impl SingleBlockRegionInterface for cubecl_ir::dialect::branch::SwitchOp

Source§

impl SingleBlockRegionInterface for cubecl_ir::dialect::scf::SwitchOp

Source§

impl SingleBlockRegionInterface for cubecl_ir::dialect::branch::WhileOp

Source§

impl SingleBlockRegionInterface for cubecl_ir::dialect::scf::WhileOp