pub struct StacklessControlFlowGraph { /* private fields */ }
Implementations
sourceimpl StacklessControlFlowGraph
impl StacklessControlFlowGraph
pub fn new_forward(code: &[Bytecode]) -> Self
sourcepub fn new_backward(code: &[Bytecode], from_all_blocks: bool) -> Self
pub fn new_backward(code: &[Bytecode], from_all_blocks: bool) -> Self
If from_all_blocks is false, perform backward analysis only from blocks that may exit. If from_all_blocks is true, perform backward analysis from all blocks.
sourceimpl StacklessControlFlowGraph
impl StacklessControlFlowGraph
pub fn successors(&self, block_id: BlockId) -> &Vec<BlockId>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn content(&self, block_id: BlockId) -> &BlockContent
pub fn blocks(&self) -> Vec<BlockId>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn entry_block(&self) -> BlockId
pub fn exit_block(&self) -> BlockId
pub fn instr_indexes(
&self,
block_id: BlockId
) -> Option<Box<dyn DoubleEndedIterator<Item = CodeOffset>>>
pub fn num_blocks(&self) -> u16
pub fn is_dummmy(&self, block_id: BlockId) -> bool
pub fn display(&self)
Auto Trait Implementations
impl RefUnwindSafe for StacklessControlFlowGraph
impl Send for StacklessControlFlowGraph
impl Sync for StacklessControlFlowGraph
impl Unpin for StacklessControlFlowGraph
impl UnwindSafe for StacklessControlFlowGraph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more