Struct cranelift_codegen::machinst::blockorder::BlockLoweringOrder [−][src]
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,