Struct cranelift_codegen::machinst::blockorder::BlockLoweringOrder [−][src]
pub struct BlockLoweringOrder { /* fields omitted */ }Expand description
Mapping from CLIF BBs to VCode BBs.
Implementations
impl BlockLoweringOrder[src]
impl BlockLoweringOrder[src]pub fn new(f: &Function) -> BlockLoweringOrder[src]
pub fn new(f: &Function) -> BlockLoweringOrder[src]Compute and return a lowered block order for f.
pub fn lowered_order(&self) -> &[LoweredBlock]ⓘ[src]
pub fn lowered_order(&self) -> &[LoweredBlock]ⓘ[src]Get the lowered order of blocks.
pub fn succs(&self, block: BlockIndex) -> &[(Inst, LoweredBlock)]ⓘ[src]
pub fn succs(&self, block: BlockIndex) -> &[(Inst, LoweredBlock)]ⓘ[src]Get the successors for a lowered block, by index in lowered_order()’s
returned slice. Each successsor is paired with the edge-instruction
(branch) corresponding to this edge.
pub fn succ_indices(&self, block: BlockIndex) -> &[(Inst, BlockIndex)]ⓘ[src]
pub fn succ_indices(&self, block: BlockIndex) -> &[(Inst, BlockIndex)]ⓘ[src]Get the successor indices for a lowered block.
pub fn lowered_block_for_bb(&self, bb: Block) -> Option<BlockIndex>[src]
pub fn lowered_block_for_bb(&self, bb: Block) -> Option<BlockIndex>[src]Get the lowered block index containing a CLIF block, if any. (May not be present if the original CLIF block was unreachable.)