All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mapped_variable.h
Go to the documentation of this file.
1 #ifndef MAPPED_VARIABLE_H_INCLUDED_
2 #define MAPPED_VARIABLE_H_INCLUDED_
3 
4 #include "rose.h"
5 
6 #include<list>
7 
8 namespace risc {
9 
10 namespace sg {
11 
23 
24  MappedVariable(SgVariableSymbol* symbol, int instance_id);
25 
27 
32  bool is_valid();
33 
34  bool operator==(const MappedVariable &ohs);
35 
36  bool operator!=(const MappedVariable &ohs);
37 
38  SgVariableSymbol* symbol_;
40 
41  static int const InvalidVariable;
42 };
43 
44 typedef std::list<MappedVariable> MappedVariableList;
45 
46 const bool operator<(const MappedVariable &lhs, const MappedVariable &rhs);
47 
55 struct Conflict {
56 
57  SgNode *node_;
59 
60  Conflict(SgNode *node);
61 
62  Conflict(MappedVariable variable);
63 };
64 
70 void reset_inst_id_for_channels(MappedVariableList &mapped_variables);
71 
72 const bool operator<(const Conflict &lhs, const Conflict &rhs);
73 
74 }; // end of namespace sg
75 
76 }; // end of namespace risc
77 
78 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
79 
80 #endif /* MAPPED_VARIABLE_H_INCLUDED_ */
Conflict(SgNode *node)
Definition: mapped_variable.cpp:19
SgVariableSymbol * symbol_
Definition: mapped_variable.h:38
SgNode * node_
Definition: mapped_variable.h:57
const bool operator<(const MappedVariable &lhs, const MappedVariable &rhs)
Definition: mapped_variable.cpp:50
This class represents a conflict in the data conflict table, either due to a conflicting expression (...
Definition: mapped_variable.h:55
bool operator!=(const MappedVariable &ohs)
Definition: mapped_variable.cpp:44
MappedVariable()
Definition: mapped_variable.cpp:14
bool operator==(const MappedVariable &ohs)
Definition: mapped_variable.cpp:38
MappedVariable variable_
Definition: mapped_variable.h:58
void reset_inst_id_for_channels(MappedVariableList &mapped_variables)
This function sets the instance id to 0 for all variables which are declared in a channel...
Definition: mapped_variable.cpp:101
bool is_valid()
Checks if the MappedVariable is valid.
Definition: mapped_variable.cpp:32
std::list< MappedVariable > MappedVariableList
Definition: mapped_variable.h:44
static int const InvalidVariable
Definition: mapped_variable.h:41
This is a helper class to describe a variable in the design through the symbol and the instance id...
Definition: mapped_variable.h:22
int instance_id_
Definition: mapped_variable.h:39