#include <rose.h>
#include <vector>
#include <cassert>
#include "../internal_representation/variable.h"
Go to the source code of this file.
Namespaces | |
namespace | risc |
namespace | risc::sa |
Functions | |
void | risc::sa::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 vector. | |
void | risc::sa::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. | |
void | risc::sa::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 vector and adds them to the corresponging set/vector. | |
bool | risc::sa::is_member_variable_symbol (SgNode *given_variable, risc::VariableVector &member_variables) |
std::vector< SgNode * >::iterator | risc::sa::delete_if_is_not_member_variable (std::vector< SgNode * > &given_variables, VariableVector &member_variables) |
std::set< SgVariableSymbol * > ::iterator | risc::sa::delete_if_is_not_member_symbol (std::set< SgVariableSymbol * > &given_variables, VariableVector &member_variables) |