Struct caffe2_nomnigraph::ControlFlowGraph
source · pub struct ControlFlowGraph<G: GraphType> { /* private fields */ }
Expand description
| \brief Control flow graph is a graph of basic | blocks that can be used as an analysis tool. | | \note G Must be of type Graph<T, U>.
Implementations§
source§impl<G: GraphType> ControlFlowGraph<G>
impl<G: GraphType> ControlFlowGraph<G>
sourcepub fn create_named_function(&mut self, name: String) -> BasicBlockRef<G>
pub fn create_named_function(&mut self, name: String) -> BasicBlockRef<G>
Named functions are simply basic blocks stored in labeled Subgraphs
sourcepub fn create_anonymous_function(&mut self) -> BasicBlockRef<G>
pub fn create_anonymous_function(&mut self) -> BasicBlockRef<G>
Anonymous functions are aggregated into a single Subgraph
Trait Implementations§
Auto Trait Implementations§
impl<G> RefUnwindSafe for ControlFlowGraph<G>where G: RefUnwindSafe, <G as GraphType>::EdgeRef: RefUnwindSafe, <G as GraphType>::NodeRef: RefUnwindSafe,
impl<G> !Send for ControlFlowGraph<G>
impl<G> !Sync for ControlFlowGraph<G>
impl<G> Unpin for ControlFlowGraph<G>where G: Unpin,
impl<G> UnwindSafe for ControlFlowGraph<G>where G: UnwindSafe, <G as GraphType>::EdgeRef: RefUnwindSafe, <G as GraphType>::NodeRef: RefUnwindSafe,
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.