[−][src]Struct llhd::ir::ControlFlowGraph
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]
fn default() -> ControlFlowGraph
[src]
impl Index<Block> for ControlFlowGraph
[src]
type Output = BlockData
The returned type after indexing.
fn index(&self, idx: Block) -> &BlockData
[src]
impl IndexMut<Block> for ControlFlowGraph
[src]
impl Serialize for ControlFlowGraph
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ControlFlowGraph
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ControlFlowGraph
impl Sync for ControlFlowGraph
impl Unpin for ControlFlowGraph
impl UnwindSafe for ControlFlowGraph
impl RefUnwindSafe for ControlFlowGraph
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,