Struct caffe2_nomnigraph::BasicBlock
source · pub struct BasicBlock<T, U> { /* private fields */ }
Expand description
| \brief A basic block holds a reference to | a subgraph of the data flow graph as well as | an ordering on instruction execution. Basic | blocks are used for control flow analysis.
Implementations§
source§impl<T, U> BasicBlock<T, U>
impl<T, U> BasicBlock<T, U>
pub fn track_node(&mut self, node: NodeRef<T, U>)
pub fn untrack_node(&mut self, node: NodeRef<T, U>)
pub fn push_instruction_node(&mut self, node: NodeRef<T, U>)
pub fn get_instructions(&self) -> &Vec<NodeRef<T, U>>
pub fn get_mutable_instructions(&mut self) -> *mut Vec<NodeRef<T, U>>
pub fn has_instruction(&self, instr: NodeRef<T, U>) -> bool
pub fn insert_instruction_before( &mut self, new_instr: NodeRef<T, U>, instr: NodeRef<T, U> )
pub fn move_instruction_before( &mut self, instr1: NodeRef<T, U>, instr2: NodeRef<T, U> )
pub fn delete_instruction(&mut self, instr: NodeRef<T, U>)
Trait Implementations§
Auto Trait Implementations§
impl<T, U> RefUnwindSafe for BasicBlock<T, U>where T: RefUnwindSafe, U: RefUnwindSafe,
impl<T, U> !Send for BasicBlock<T, U>
impl<T, U> !Sync for BasicBlock<T, U>
impl<T, U> Unpin for BasicBlock<T, U>
impl<T, U> UnwindSafe for BasicBlock<T, U>where T: RefUnwindSafe, U: 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.