Struct cranelift_codegen::machinst::blockorder::BlockLoweringOrder[][src]

pub struct BlockLoweringOrder { /* fields omitted */ }

Mapping from CLIF BBs to VCode BBs.

Implementations

impl 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]

Get the lowered order of blocks.

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]

Get the successor indices for a lowered block.

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.)

Trait Implementations

impl Debug for BlockLoweringOrder[src]

Auto Trait Implementations

impl RefUnwindSafe for BlockLoweringOrder

impl Send for BlockLoweringOrder

impl Sync for BlockLoweringOrder

impl Unpin for BlockLoweringOrder

impl UnwindSafe for BlockLoweringOrder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.