00001 #ifndef VARIABLE_HELPER_H_INCLUDED_ 00002 #define VARIABLE_HELPER_H_INCLUDED_ 00003 00004 #include "rose.h" 00005 00006 namespace risc { 00007 00008 namespace tools { 00009 00015 bool is_reference_variable(SgVariableSymbol *var_symbol); 00016 00022 bool is_pointer_variable(SgVariableSymbol *var_symbol); 00023 00029 bool is_global_variable(SgVariableSymbol *var_symbol); 00030 00036 bool is_local_variable(SgVariableSymbol *var_symbol); 00037 00043 bool is_member_variable(SgVariableSymbol *var_symbol); 00044 00050 bool is_static_variable(SgVariableSymbol *var_symbol); 00051 00057 bool is_namespace_variable(SgVariableSymbol *var_symbol); 00058 00064 bool is_function_parameter_variable(SgVariableSymbol *var_symbol); 00065 00072 bool is_member_of(SgVariableSymbol *is, SgSymbol *of); 00073 00079 bool is_loop_variable(SgVariableSymbol *var_symbol); 00080 00086 bool is_stack_variable(SgVariableSymbol *var_symbol); 00087 00093 bool is_data_segment_variable(SgVariableSymbol *var_symbol); 00094 00100 void analyze_conflict_free(SgVariableSymbol *symbol); 00101 00106 bool is_channel_variable(SgVariableSymbol *symbol); 00107 00112 bool is_sc_signal(SgVariableSymbol *symbol); 00113 00114 }; // end of namespace tools 00115 00116 }; // end of namespace risc 00117 00118 #endif /* VARIABLE_HELPER_H_INCLUDED_ */ 00119 00120 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */