Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
tools
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
120
bool
is_socket_variable
(
risc::sg::SymbolWithPath
swp);
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: */
risc::sg::SymbolWithPath
Definition:
port_call_path.h:46
risc::tools::is_function_parameter_variable
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
risc::tools::is_pointer_variable
bool is_pointer_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a pointer.
Definition:
variable_helper.cpp:29
risc::tools::is_static_variable
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
risc::tools::is_loop_variable
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
risc::tools::is_socket_variable
bool is_socket_variable(risc::sg::SymbolWithPath swp)
Returns true when the symbolwithpath has a pcp_.port_ attribute.
Definition:
variable_helper.cpp:464
risc::tools::is_member_of
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
risc::tools::is_sc_signal
bool is_sc_signal(SgVariableSymbol *symbol)
Returns true if the variable is of type sc_signal.
Definition:
variable_helper.cpp:448
risc::tools::is_stack_variable
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
risc::tools::is_channel_variable
bool is_channel_variable(SgVariableSymbol *symbol)
Returns true when the variable is declared in a channel.
Definition:
variable_helper.cpp:416
risc::tools::is_namespace_variable
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
risc::tools::is_reference_variable
bool is_reference_variable(SgVariableSymbol *var_symbol)
This function return true if the given variable symbol is a reference.
Definition:
variable_helper.cpp:12
risc::tools::is_member_variable
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
risc::tools::is_local_variable
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
risc::tools::analyze_conflict_free
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
risc::tools::is_global_variable
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
risc::tools::is_data_segment_variable
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
Generated on Wed Aug 18 2021 19:47:05 by
1.8.5