PandA-2024.02
CallSitesCollectorVisitor.hpp
Go to the documentation of this file.
1 /*
2  *
3  * _/_/_/ _/_/ _/ _/ _/_/_/ _/_/
4  * _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/
5  * _/_/_/ _/_/_/_/ _/ _/_/ _/ _/ _/_/_/_/
6  * _/ _/ _/ _/ _/ _/ _/ _/ _/
7  * _/ _/ _/ _/ _/ _/_/_/ _/ _/
8  *
9  * ***********************************************
10  * PandA Project
11  * URL: http://panda.dei.polimi.it
12  * Politecnico di Milano - DEIB
13  * System Architectures Group
14  * ***********************************************
15  * Copyright (C) 2015-2024 Politecnico di Milano
16  *
17  * This file is part of the PandA framework.
18  *
19  * The PandA framework is free software; you can redistribute it and/or modify
20  * it under the terms of the GNU General Public License as published by
21  * the Free Software Foundation; either version 3 of the License, or
22  * (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with this program. If not, see <http://www.gnu.org/licenses/>.
31  *
32  */
38 #ifndef CALL_SITES_COLLECTOR_VISITOR_HPP
39 #define CALL_SITES_COLLECTOR_VISITOR_HPP
40 
41 #include "call_graph.hpp"
42 
43 #include <boost/graph/visitors.hpp>
44 
45 #include "custom_map.hpp"
46 #include "custom_set.hpp"
47 
50 
51 class CallSitesCollectorVisitor : public boost::default_dfs_visitor
52 {
53  private:
56 
59 
60  public:
65 
70 
71  void start_vertex(const vertex&, const CallGraph&);
72 
73  void back_edge(const EdgeDescriptor&, const CallGraph&);
74 
75  void examine_edge(const EdgeDescriptor&, const CallGraph&);
76 
77  void discover_vertex(const vertex& v, const CallGraph&);
78 };
79 #endif
CallSitesCollectorVisitor(const HLS_managerRef &_HLSMgr)
Constructor.
CONSTREF_FORWARD_DECL(CallGraphManager)
REF_FORWARD_DECL(HLS_manager)
redefinition of map to manage ordered/unordered structures
This class is the view of a call graph.
Definition: call_graph.hpp:160
const HLS_managerRef HLSMgr
A refcount to the HLSMgr.
redefinition of set to manage ordered/unordered structures
boost::graph_traits< graph >::vertex_descriptor vertex
vertex definition.
Definition: graph.hpp:1303
Call graph hierarchy.
void back_edge(const EdgeDescriptor &, const CallGraph &)
const CallGraphManagerConstRef CGMan
A refcount to the call graph manager.
This class manages the accesses to the CallGraph.
void start_vertex(const vertex &, const CallGraph &)
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
Definition: refcount.hpp:94
void discover_vertex(const vertex &v, const CallGraph &)
~CallSitesCollectorVisitor()
Destructor.
void examine_edge(const EdgeDescriptor &, const CallGraph &)
boost::graph_traits< graph >::edge_descriptor EdgeDescriptor
edge definition.
Definition: graph.hpp:1316

Generated on Mon Feb 12 2024 13:02:54 for PandA-2024.02 by doxygen 1.8.13