Struct melior_next::ir::Region
source · pub struct Region { /* private fields */ }
Expand description
A region.
Implementations§
source§impl Region
impl Region
sourcepub fn first_block(&self) -> Option<BlockRef<'_>>
pub fn first_block(&self) -> Option<BlockRef<'_>>
Gets the first block in a region.
sourcepub fn insert_block_after(
&self,
one: BlockRef<'_>,
other: Block<'_>
) -> BlockRef<'_>
pub fn insert_block_after( &self, one: BlockRef<'_>, other: Block<'_> ) -> BlockRef<'_>
Inserts a block after another block.
sourcepub fn insert_block_before(
&self,
one: BlockRef<'_>,
other: Block<'_>
) -> BlockRef<'_>
pub fn insert_block_before( &self, one: BlockRef<'_>, other: Block<'_> ) -> BlockRef<'_>
Inserts a block before another block.
sourcepub fn append_block(&self, block: Block<'_>) -> BlockRef<'_>
pub fn append_block(&self, block: Block<'_>) -> BlockRef<'_>
Appends a block.