/local/lecs/lecs/risc_v0.2.1/sources/build/risc_v0.2.1/src/static_analysis/read_write_analysis.h File Reference

#include <rose.h>
#include <vector>
#include <cassert>
#include "../internal_representation/variable.h"
Include dependency graph for read_write_analysis.h:
This graph shows which files directly or indirectly include this file:

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)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 29 Oct 2015 by  doxygen 1.6.1