All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dyn_analysis_instr.h
Go to the documentation of this file.
1 #ifndef DYN_ANALYSIS_INSTR_H_INCLUDED_
2 #define DYN_ANALYSIS_INSTR_H_INCLUDED_
3 
4 #include "rose.h"
5 
6 #include <list>
7 #include <utility>
8 
9 
10 namespace risc
11 {
12 
13 class Instance;
14 
15 namespace inst
16 {
17 
32 void
34  SgFunctionDefinition *func_def,
35  SgVariableDeclaration *systemc_event_list,
36  SgVariableDeclaration *PLACEHOLDER,
37  bool is_and_event_list);
38 
49 void
51  SgFunctionDefinition *func_def,
52  SgVariableDeclaration *var_decl,
53  std::string printf_format_string,
54  std::string printf_pre_format_string);
55 
56 
65 void
67  SgFunctionDefinition *func_def,
68  SgVariableDeclaration *var_decl);
69 
78 void
80  SgFunctionDefinition *func_def,
81  SgVariableDeclaration *var_decl);
82 
91 void
93  SgFunctionDefinition *func_def,
94  SgVariableDeclaration *var_decl);
95 
96 
103 void
104 print_channel(SgFunctionDefinition *func_def, risc::Instance *channel);
105 
113 SgFunctionDefinition*
114 add_function_to_class(SgScopeStatement *class_def, std::string func_name);
115 
122 void
123 instrument_reference_printing(std::string filename);
124 
134 std::pair<SgForStatement*, SgVariableDeclaration*>
136  SgVariableDeclaration *event_list,
137  SgBasicBlock *body);
138 
139 }; // end of namespace inst
140 
141 }; // end of namespace risc
142 
143 #endif /* DYN_ANALYSIS_INSTR_H_INCLUDED_ */
144 
145 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
std::pair< SgForStatement *, SgVariableDeclaration * > insert_loop_iteration_over_vector_elements(SgVariableDeclaration *event_list, SgBasicBlock *body)
This function appends a for loop to the given basic block. The loop body will be empty. The function returns the for loop statement and the variable declaration of the iterator variable.
Definition: dyn_analysis_instr.cpp:29
void print_target_socket(SgFunctionDefinition *func_def, SgVariableDeclaration *var_decl)
This function adds the printing of the variable var_decl to the function func_def This function is on...
Definition: dyn_analysis_instr.cpp:453
void instrument_reference_printing(std::string filename)
The function should be called for the instrumentation of the variable address printing of the design...
Definition: dyn_analysis_instr.cpp:624
void print_port(SgFunctionDefinition *func_def, SgVariableDeclaration *var_decl)
This function adds the printing of the variable var_decl to the function func_def This function is on...
Definition: dyn_analysis_instr.cpp:320
void print_channel(SgFunctionDefinition *func_def, risc::Instance *channel)
This function adds the printing of the channel channel to the function func_def This function is only...
Definition: dyn_analysis_instr.cpp:563
void print_event_list(SgFunctionDefinition *func_def, SgVariableDeclaration *systemc_event_list, SgVariableDeclaration *PLACEHOLDER, bool is_and_event_list)
This function adds the printing of event list and the individual elements to the function func_def...
Definition: dyn_analysis_instr.cpp:202
Definition: instance.h:17
SgFunctionDefinition * add_function_to_class(SgScopeStatement *class_def, std::string func_name)
This function adds a new function with the name func_name to the class class_def. The return type wil...
Definition: dyn_analysis_instr.cpp:532
void print_init_socket(SgFunctionDefinition *func_def, SgVariableDeclaration *var_decl)
This function adds the printing of the variable var_decl to the function func_def This function is on...
Definition: dyn_analysis_instr.cpp:387
void print_variable(SgFunctionDefinition *func_def, SgVariableDeclaration *var_decl, std::string printf_format_string, std::string printf_pre_format_string)
This function adds the printing of the variable var_decl to the function func_def This function is on...
Definition: dyn_analysis_instr.cpp:276