1 #ifndef READ_WRITE_ANALYSIS_H_INCLUDED_
2 #define READ_WRITE_ANALYSIS_H_INCLUDED_
47 std::vector<SgExpression*> expressions,
48 std::set<SgVariableSymbol*> &read_only_var,
49 std::set<SgVariableSymbol*> &write_only_var,
50 std::vector<SgNode*> &read_write);
56 std::vector<SgNode*>::iterator
58 std::vector<SgNode*> &given_variables,
61 std::set<SgVariableSymbol*>::iterator
63 std::set<SgVariableSymbol*> &given_variables,
void collect_read_variables(SgExpression *expr, std::vector< SgNode * > &read_var)
This function collects all read variables in the given expression and adds them to the given vector...
Definition: read_write_analysis.cpp:143
bool is_member_variable_symbol(SgNode *given_variable, risc::VariableVector &member_variables)
Definition: read_write_analysis.cpp:422
std::set< SgVariableSymbol * >::iterator delete_if_is_not_member_symbol(std::set< SgVariableSymbol * > &given_variables, VariableVector &member_variables)
Definition: read_write_analysis.cpp:485
std::vector< Variable * > VariableVector
Definition: class.h:46
void read_write_analysis(std::vector< SgExpression * > expressions, std::set< SgVariableSymbol * > &read_only_var, std::set< SgVariableSymbol * > &write_only_var, std::vector< SgNode * > &read_write)
This function collects all read only, write only, and read/write variables in the given expression ve...
Definition: read_write_analysis.cpp:323
void collect_write_variables(SgExpression *expr, std::vector< SgNode * > &write_var)
This function collects all written variables in the given expression and adds them to the given vecto...
Definition: read_write_analysis.cpp:9
std::vector< SgNode * >::iterator delete_if_is_not_member_variable(std::vector< SgNode * > &given_variables, VariableVector &member_variables)
Definition: read_write_analysis.cpp:465