DataflowAnalysis

Trait DataflowAnalysis 

Source
pub trait DataflowAnalysis: Analysis {
    // Required methods
    fn get_fn_dataflow(&self, def_id: DefId) -> Option<DataFlowGraph>;
    fn get_all_dataflow(&self) -> DataFlowGraphMap;
    fn has_flow_between(
        &self,
        def_id: DefId,
        local1: Local,
        local2: Local,
    ) -> bool;
    fn collect_equivalent_locals(
        &self,
        def_id: DefId,
        local: Local,
    ) -> HashSet<Local>;
    fn get_fn_arg2ret(&self, def_id: DefId) -> Arg2Ret;
    fn get_all_arg2ret(&self) -> Arg2RetMap;
}
Expand description

This trait provides features related to dataflow analysis.

Required Methods§

Source

fn get_fn_dataflow(&self, def_id: DefId) -> Option<DataFlowGraph>

Source

fn get_all_dataflow(&self) -> DataFlowGraphMap

Source

fn has_flow_between(&self, def_id: DefId, local1: Local, local2: Local) -> bool

Source

fn collect_equivalent_locals( &self, def_id: DefId, local: Local, ) -> HashSet<Local>

Source

fn get_fn_arg2ret(&self, def_id: DefId) -> Arg2Ret

Source

fn get_all_arg2ret(&self) -> Arg2RetMap

Implementors§