All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dynamic_path_instance_mapper.h
Go to the documentation of this file.
1 #ifndef DYNAMIC_PATH_INSTANCE_MAPPER_H_INCLUDED_
2 #define DYNAMIC_PATH_INSTANCE_MAPPER_H_INCLUDED_
3 
4 #include <vector>
5 
6 #include "instance_tree.h"
7 #include "path_instance_mapper.h"
8 
9 class DynamicModule;
10 
11 namespace risc {
12 
23 
24 public:
25 
31  DynamicPathInstanceMapper(std::string filename);
32 
33  void traverse_tree(InstanceTree root, DynamicModule *module);
34 
46 
50  std::string filename_;
51 
56 
60  std::list<std::pair<std::string, int*> > global_variable_addresses_;
61 
67 
68  /*
69  * \fn function get_dynamic_tree_root
70  * \brief This function returns the root node of the dynamic analysis
71  */
73 
79  virtual bool perform_dynamic_analysis();
80 
85  virtual int* get_global_variable_address(std::string variable_name);
86 
91  virtual std::string get_global_variable_name(int *variable_address);
92 
100  std::string translate_type_name(std::string gnu_type_name);
101 };
102 
103 } // end of namespace risc
104 
105 #endif /* DYNAMIC_PATH_INSTANCE_MAPPER_H_INCLUDED_ */
106 
107 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
Definition: instance_tree.h:15
Definition: dynamic_internal_representation.h:129
std::list< std::pair< std::string, int * > > global_variable_addresses_
This list stores the global variables of the dynamic analysis.
Definition: dynamic_path_instance_mapper.h:60
void determine_lookup_table()
This function traverses the design and pushes all modules and hierarchical channel instances into the...
Definition: dynamic_path_instance_mapper.cpp:45
This class can be used as a lookup table between an instance id of a module or hierarchical channel a...
Definition: path_instance_mapper.h:13
DynamicModule * dynamic_root_
This variables stores the root node of the dynamic analysis.
Definition: dynamic_path_instance_mapper.h:55
virtual std::string get_global_variable_name(int *variable_address)
This functions returns the name of a global variable.
Definition: dynamic_path_instance_mapper.cpp:225
void parse_dynamic_instance_tree()
This functions parses the dynamic analysis file into a tree representation.
Definition: dynamic_path_instance_mapper.cpp:26
virtual bool perform_dynamic_analysis()
This functions returns true if the path instance mapper should perform a dynamic analysis.
Definition: dynamic_path_instance_mapper.cpp:202
virtual DynamicModule * get_dynamic_tree_root()
This function returns the root node of the dynamic analysis CAUTION: This function is only for the Dy...
Definition: dynamic_path_instance_mapper.cpp:196
virtual int * get_global_variable_address(std::string variable_name)
This functions returns the address of a global variable.
Definition: dynamic_path_instance_mapper.cpp:208
void traverse_tree(InstanceTree root, DynamicModule *module)
Definition: dynamic_path_instance_mapper.cpp:93
std::string translate_type_name(std::string gnu_type_name)
This function is only for internal use. Rose cannot generate type names for template classes...
Definition: dynamic_path_instance_mapper.cpp:242
std::string filename_
This is the input file for the dynamic analysis.
Definition: dynamic_path_instance_mapper.h:50
Definition: dynamic_path_instance_mapper.h:22
DynamicPathInstanceMapper(std::string filename)
This is the default constructor and need a design and a segment graph. The lookup table will be autom...
Definition: dynamic_path_instance_mapper.cpp:16