[][src]Struct llhd::ir::ControlFlowGraph

pub struct ControlFlowGraph { /* fields omitted */ }

A control flow graph.

This is the main container for BBs and control flow related information. Every Function and Process has an associated control flow graph.

Methods

impl ControlFlowGraph[src]

pub fn new() -> Self[src]

Create a new control flow graph.

pub fn add_block(&mut self) -> Block[src]

Add a BB to the graph.

pub fn remove_block(&mut self, bb: Block)[src]

Remove a BB from the graph.

pub fn get_name(&self, bb: Block) -> Option<&str>[src]

Return the name of a BB.

pub fn set_name(&mut self, bb: Block, name: String)[src]

Set the name of a BB.

pub fn clear_name(&mut self, bb: Block) -> Option<String>[src]

Clear the name of a BB.

pub fn get_anonymous_hint(&self, bb: Block) -> Option<u32>[src]

Return the anonymous name hint of a BB.

pub fn set_anonymous_hint(&mut self, bb: Block, hint: u32)[src]

Set the anonymous name hint of a BB.

pub fn clear_anonymous_hint(&mut self, bb: Block) -> Option<u32>[src]

Clear the anonymous name hint of a BB.

Trait Implementations

impl Default for ControlFlowGraph[src]

impl<'de> Deserialize<'de> for ControlFlowGraph[src]

impl Index<Block> for ControlFlowGraph[src]

type Output = BlockData

The returned type after indexing.

impl IndexMut<Block> for ControlFlowGraph[src]

impl Serialize for ControlFlowGraph[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.