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§

Implementors§