Struct melior_next::ir::RegionRef
source · pub struct RegionRef<'a> { /* private fields */ }
Expand description
A reference to a region.
Methods from Deref<Target = 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.