pub struct DataFlowAnalyzer<'tcx> {
    pub tcx: TyCtxt<'tcx>,
    pub graphs: HashMap<DefId, Graph>,
    pub debug: bool,
}Fields§
§tcx: TyCtxt<'tcx>§graphs: HashMap<DefId, Graph>§debug: boolImplementations§
Source§impl<'tcx> DataFlowAnalyzer<'tcx>
 
impl<'tcx> DataFlowAnalyzer<'tcx>
pub fn new(tcx: TyCtxt<'tcx>, debug: bool) -> Self
pub fn start(&mut self)
pub fn build_graphs(&mut self)
pub fn build_graph(&mut self, def_id: DefId)
pub fn draw_graphs(&self)
Trait Implementations§
Source§impl<'tcx> Analysis for DataFlowAnalyzer<'tcx>
 
impl<'tcx> Analysis for DataFlowAnalyzer<'tcx>
Source§impl<'tcx> DataFlowAnalysis for DataFlowAnalyzer<'tcx>
 
impl<'tcx> DataFlowAnalysis for DataFlowAnalyzer<'tcx>
Source§fn get_fn_dataflow(&self, def_id: DefId) -> Option<DataFlowGraph>
 
fn get_fn_dataflow(&self, def_id: DefId) -> Option<DataFlowGraph>
The function returns the dataflow graph for the given function id.
Source§fn get_all_dataflow(&self) -> DataFlowGraphMap
 
fn get_all_dataflow(&self) -> DataFlowGraphMap
The function returns the dataflow graph for all functions.
Source§fn has_flow_between(&self, def_id: DefId, local1: Local, local2: Local) -> bool
 
fn has_flow_between(&self, def_id: DefId, local1: Local, local2: Local) -> bool
If there is a dataflow between 
local1 and local2 within the function specified by
def_id, the function returns ture; otherwise, it returns false.Source§fn collect_equivalent_locals(
    &self,
    def_id: DefId,
    local: Local,
) -> HashSet<Local>
 
fn collect_equivalent_locals( &self, def_id: DefId, local: Local, ) -> HashSet<Local>
The function returns a set of Locals that are equivelent to the given 
local.Source§fn get_fn_arg2ret(&self, def_id: DefId) -> Arg2Ret
 
fn get_fn_arg2ret(&self, def_id: DefId) -> Arg2Ret
The function returns an IndexVec of whether the returned Local depends on the parameter Local.
Source§fn get_all_arg2ret(&self) -> Arg2RetMap
 
fn get_all_arg2ret(&self) -> Arg2RetMap
The function returns the dataflow between the arguments and return value for all functions
Auto Trait Implementations§
impl<'tcx> Freeze for DataFlowAnalyzer<'tcx>
impl<'tcx> !RefUnwindSafe for DataFlowAnalyzer<'tcx>
impl<'tcx> !Send for DataFlowAnalyzer<'tcx>
impl<'tcx> !Sync for DataFlowAnalyzer<'tcx>
impl<'tcx> Unpin for DataFlowAnalyzer<'tcx>
impl<'tcx> !UnwindSafe for DataFlowAnalyzer<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more