PandA-2024.02
chaining_information.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) 2004-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  */
40 #ifndef CHAINING_INFORMATION_HPP
41 #define CHAINING_INFORMATION_HPP
42 
44 #include "graph.hpp"
45 
47 #include <cstddef>
48 
50 #include "refcount.hpp"
51 
53 class HLS_manager;
55 
57 {
58  protected:
59  friend class chaining;
62 
64  std::map<vertex, unsigned int> actual_bb_index_map;
65 
67  ChainingSetRef chaining_relation;
68 
71 
74 
76  const unsigned int function_id;
77 
78  public:
84  ChainingInformation(const HLS_managerConstRef HLS_mgr, const unsigned int function_id);
85 
89  void Initialize();
90 
97  size_t get_representative_in(vertex op1) const;
98 
105  size_t get_representative_out(vertex op1) const;
106 
111  bool is_chained_vertex(vertex v) const;
112 
118  bool may_be_chained_ops(vertex tgt, vertex src) const;
119 
125  void add_chained_vertices_in(vertex op1, vertex src);
126 
132  void add_chained_vertices_out(vertex op1, vertex tgt);
133 };
136 #endif
size_t get_representative_out(vertex op1) const
Return the representative vertex associated with the chained vertices set in output.
void add_chained_vertices_in(vertex op1, vertex src)
put into relation the vertices whith respect the chained vertices connected with the input ...
void Initialize()
Initialize the object (i.e., like a constructor, but executed just before exec of a step) ...
Class specification of the graph structures.
bool is_chained_vertex(vertex v) const
return true in case the vertex is in chaining with something
CONSTREF_FORWARD_DECL(HLS_manager)
ChainingInformation(const HLS_managerConstRef HLS_mgr, const unsigned int function_id)
Constructor.
const unsigned int function_id
The index of the function.
void add_chained_vertices_out(vertex op1, vertex tgt)
put into relation the vertices whith respect the chained vertices connected with the output ...
bool may_be_chained_ops(vertex tgt, vertex src) const
check if two operations are chained in at least one state
boost::graph_traits< graph >::vertex_descriptor vertex
vertex definition.
Definition: graph.hpp:1303
Template definition of refcount.
const Wrefcount< const HLS_manager > HLS_mgr
The HLS manager.
REF_FORWARD_DECL(ChainingSet)
graph include
CustomOrderedSet< vertex > is_chained_with
set of vertices chained with something
ChainingSetRef chaining_relation
relation between vertices in terms of chaining in input or in output
size_t get_representative_in(vertex op1) const
Return the representative vertex associated with the chained vertices set in input.
friend class epdg_sched_based_chaining_computation
Header include.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
Definition: refcount.hpp:94
std::map< vertex, unsigned int > actual_bb_index_map
relation between operation and basic block

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