All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
variable_helper.h
Go to the documentation of this file.
1 #ifndef VARIABLE_HELPER_H_INCLUDED_
2 #define VARIABLE_HELPER_H_INCLUDED_
3 
4 #include "rose.h"
5 
6 #include "../segment_graph/port_call_path.h"
7 
8 namespace risc {
9 
10 namespace tools {
11 
17 bool is_reference_variable(SgVariableSymbol *var_symbol);
18 
24 bool is_pointer_variable(SgVariableSymbol *var_symbol);
25 
31 bool is_global_variable(SgVariableSymbol *var_symbol);
32 
38 bool is_local_variable(SgVariableSymbol *var_symbol);
39 
45 bool is_member_variable(SgVariableSymbol *var_symbol);
46 
52 bool is_static_variable(SgVariableSymbol *var_symbol);
53 
59 bool is_namespace_variable(SgVariableSymbol *var_symbol);
60 
66 bool is_function_parameter_variable(SgVariableSymbol *var_symbol);
67 
74 bool is_member_of(SgVariableSymbol *is, SgSymbol *of);
75 
81 bool is_loop_variable(SgVariableSymbol *var_symbol);
82 
88 bool is_stack_variable(SgVariableSymbol *var_symbol);
89 
95 bool is_data_segment_variable(SgVariableSymbol *var_symbol);
96 
102 void analyze_conflict_free(SgVariableSymbol *symbol);
103 
108 bool is_channel_variable(SgVariableSymbol *symbol);
109 
114 bool is_sc_signal(SgVariableSymbol *symbol);
115 
121 
122 }; // end of namespace tools
123 
124 }; // end of namespace risc
125 
126 #endif /* VARIABLE_HELPER_H_INCLUDED_ */
127 
128 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
Definition: port_call_path.h:46
bool is_function_parameter_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a function variable.
Definition: variable_helper.cpp:168
bool is_pointer_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a pointer.
Definition: variable_helper.cpp:29
bool is_static_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a static variable.
Definition: variable_helper.cpp:116
bool is_loop_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a loop variable.
Definition: variable_helper.cpp:266
bool is_socket_variable(risc::sg::SymbolWithPath swp)
Returns true when the symbolwithpath has a pcp_.port_ attribute.
Definition: variable_helper.cpp:464
bool is_member_of(SgVariableSymbol *is, SgSymbol *of)
This function returns true if a given variable symbol is defined 'in' another variable symbol...
Definition: variable_helper.cpp:191
bool is_sc_signal(SgVariableSymbol *symbol)
Returns true if the variable is of type sc_signal.
Definition: variable_helper.cpp:448
bool is_stack_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a variable which will be stored on the stac...
Definition: variable_helper.cpp:294
bool is_channel_variable(SgVariableSymbol *symbol)
Returns true when the variable is declared in a channel.
Definition: variable_helper.cpp:416
bool is_namespace_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a namespace variable.
Definition: variable_helper.cpp:142
bool is_reference_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a reference.
Definition: variable_helper.cpp:12
bool is_member_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a member variable.
Definition: variable_helper.cpp:91
bool is_local_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a local variable.
Definition: variable_helper.cpp:66
void analyze_conflict_free(SgVariableSymbol *symbol)
This function checks if a variable is annoated with a pragma as conflict free.
Definition: variable_helper.cpp:337
bool is_global_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a global variable.
Definition: variable_helper.cpp:47
bool is_data_segment_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a variable which will be stored on the stac...
Definition: variable_helper.cpp:315