PandA-2024.02
|
Visitor to identify the list of called functions. More...
Public Member Functions | |
CalledFunctionsVisitor (const bool _allow_recursive_functions, const CallGraphManager *_call_graph_manager, CustomSet< unsigned int > &_body_functions, CustomSet< unsigned int > &_library_functions) | |
Constructor. More... | |
void | back_edge (const EdgeDescriptor &e, const CallGraph &g) |
void | finish_vertex (const vertex &u, const CallGraph &g) |
Function called when a vertex has been finished. More... | |
Private Attributes | |
const bool | allow_recursive_functions |
True if recursive calls are allowed. More... | |
const CallGraphManager * | call_graph_manager |
The call graph manager. More... | |
CustomSet< unsigned int > & | body_functions |
The list of encountered body functions. More... | |
CustomSet< unsigned int > & | library_functions |
The list of encountered library functions. More... | |
Visitor to identify the list of called functions.
Definition at line 87 of file call_graph_manager.cpp.
|
inline |
Constructor.
allow_recursive_functions | tells if recursive functions are allowed |
call_graph_manager | is the call graph manager |
body_functions | is where results will be stored |
library_functions | is where results will be stored |
Definition at line 110 of file call_graph_manager.cpp.
|
inline |
Definition at line 119 of file call_graph_manager.cpp.
References CallGraph::CGetCallGraphInfo(), CallGraphManager::get_function(), lenet_tvm::target, and THROW_ERROR.
Function called when a vertex has been finished.
u | is the vertex |
call_graph | is the call graph |
Definition at line 139 of file call_graph_manager.cpp.
References CallGraph::CGetCallGraphInfo().
|
private |
True if recursive calls are allowed.
Definition at line 91 of file call_graph_manager.cpp.
|
private |
The list of encountered body functions.
Definition at line 97 of file call_graph_manager.cpp.
|
private |
The call graph manager.
Definition at line 94 of file call_graph_manager.cpp.
|
private |
The list of encountered library functions.
Definition at line 100 of file call_graph_manager.cpp.