Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
cwh_auxst.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define Set_ST_auxst_has_rslt_tmp(st, val)   cwh_auxst_set_flag(st,f_RSLTTMP,val)
#define ST_auxst_has_rslt_tmp(st)   cwh_auxst_read_flag(st,f_RSLTTMP)
#define Set_ST_auxst_is_rslt_tmp(st, val)   cwh_auxst_set_flag(st,f_IS_RSLTTMP,val)
#define ST_auxst_is_rslt_tmp(st)   cwh_auxst_read_flag(st,f_IS_RSLTTMP)
#define Set_ST_auxst_is_elemental(st, val)   cwh_auxst_set_flag(st,f_ELEM,val)
#define ST_auxst_is_elemental(st)   cwh_auxst_read_flag(st,f_ELEM)
#define Set_ST_auxst_is_altentry(st, val)   cwh_auxst_set_flag(st,f_ALTENT,val)
#define ST_auxst_is_altentry(st)   cwh_auxst_read_flag(st,f_ALTENT)
#define Set_ST_auxst_altentry_shareTY(st, val)   cwh_auxst_set_flag(st,f_ALTTY,val)
#define ST_auxst_altentry_shareTY(st)   cwh_auxst_read_flag(st,f_ALTTY)
#define Set_ST_auxst_visited(st, val)   cwh_auxst_set_flag(st,f_VISITED,val)
#define ST_auxst_visited(st)   cwh_auxst_read_flag(st,f_VISITED)
#define Set_ST_auxst_is_non_contiguous(st, val)   cwh_auxst_set_flag(st,f_NONCONT,val)
#define ST_auxst_is_non_contiguous(st)   cwh_auxst_read_flag(st,f_NONCONT)
#define Set_ST_auxst_is_auto_or_cpointer(st, val)   cwh_auxst_set_flag(st,f_AUTO_OR_CPTR,val)
#define ST_auxst_is_auto_or_cpointer(st)   cwh_auxst_read_flag(st,f_AUTO_OR_CPTR)
#define Set_ST_auxst_is_f90_pointer(st, val)   cwh_auxst_set_flag(st,f_F90_PTR,val)
#define ST_auxst_is_f90_pointer(st)   cwh_auxst_read_flag(st,f_F90_PTR)
#define Set_ST_auxst_is_module_data(st, val)   cwh_auxst_set_flag(st,f_MODULE,val)
#define ST_auxst_is_module_data(st)   cwh_auxst_read_flag(st,f_MODULE)
#define Set_ST_auxst_xpragma_copyin(st, val)   cwh_auxst_set_flag(st,f_XP_COPY,val)
#define ST_auxst_xpragma_copyin(st)   cwh_auxst_read_flag(st,f_XP_COPY)
#define Set_ST_auxst_is_tmp(st, val)   cwh_auxst_set_flag(st,f_IS_TMP,val)
#define ST_auxst_is_tmp(st)   cwh_auxst_read_flag(st,f_IS_TMP)
#define Set_ST_auxst_is_allocatable(st, val)   cwh_auxst_set_flag(st,f_ALLOC,val)
#define ST_auxst_is_allocatable(st)   cwh_auxst_read_flag(st,f_ALLOC)
#define Set_ST_auxst_is_assumed_shape(st, val)   cwh_auxst_set_flag(st,f_ASSUMED,val)
#define ST_auxst_is_assumed_shape(st)   cwh_auxst_read_flag(st,f_ASSUMED)
#define Set_ST_auxst_is_assumed_size(st, val)   cwh_auxst_set_flag(st,f_A_SIZE,val)
#define ST_auxst_is_assumed_size(st)   cwh_auxst_read_flag(st,f_A_SIZE)

Enumerations

enum  list_name {
  l_COMLIST, l_ALTENTRY, l_RETURN_TEMPS, l_NAMELIST,
  l_SPLITLIST, l_EQVLIST, l_DST_COMLIST, l_DST_PARMLIST,
  l_TYMDLIST
}
enum  flags_a {
  f_RSLTTMP = 0x01, f_ELEM = 0x02, f_ALTENT = 0x04, f_ALTTY = 0x08,
  f_VISITED = 0x10, f_NONCONT = 0x20, f_AUTO_OR_CPTR = 0x40, f_F90_PTR = 0x80,
  f_MODULE = 0x100, f_XP_COPY = 0x200, f_IS_TMP = 0x400, f_ALLOC = 0x800,
  f_ASSUMED = 0x1000, f_A_SIZE = 0x2000, f_IS_RSLTTMP = 0x4000
}

Functions

void cwh_auxst_register_table (void)
void cwh_auxst_un_register_table (void)
void cwh_auxst_alloc_container_table (void)
void cwh_auxst_clear_per_PU (void)
void cwh_auxst_free (void)
void cwh_auxst_free_list (LIST **lp)
void cwh_auxst_clear (ST *st)
void cwh_auxst_set_flag (ST *st, enum flags_a f, BOOL val)
BOOL cwh_auxst_read_flag (ST *st, enum flags_a f)
void Set_ST_auxst_data_info (ST *st, data_info_s *data_info)
data_info_sST_auxst_data_info (ST *st)
ITEMcwh_auxst_add_to_list (LIST **lp, ST *st, BOOL order)
void cwh_auxst_add_list (ST *parent, LIST *l, enum list_name list)
LISTcwh_auxst_get_list (ST *st, enum list_name list)
void cwh_auxst_add_item (ST *parent, ST *st, enum list_name list)
ITEMcwh_auxst_next_element (ST *parent, ITEM *i, enum list_name list)
STcwh_auxst_find_item (LIST *l, char *name)
void cwh_auxst_alloc_proc_entry (ST *st, INT32 num_dum_args, TY_IDX ret_type)
void cwh_auxst_patch_proc (TY_IDX rty_idx)
BOOL cwh_auxst_find_dummy (ST *arg)
INT16 cwh_auxst_num_dummies (ST *entry)
ST ** cwh_auxst_arglist (ST *entry)
STcwh_auxst_find_dummy_len (ST *arg)
void cwh_auxst_add_dummy (ST *dummy, BOOL result)
void cwh_auxst_set_tylist (ST *en)
STcwh_auxst_cri_pointee (ST *ptr, ST *pointee)
PREG_det cwh_auxst_distr_preg (ST *st)
USRCPOS cwh_auxst_srcpos_val (ST *st)
USRCPOScwh_auxst_srcpos_addr (ST *st)
WNcwh_auxst_pragma (ST *ptr, WN *wn=NULL)
char * cwh_auxst_stem_name (ST *st, char *name=NULL)
INT32cwh_auxst_assign_id (SYMTAB_IDX level, LABEL_IDX idx)
void cwh_auxst_dump (ST *st)
void cwh_auxst_dump_list (LIST *l, BOOL verbose)

Define Documentation

#define Set_ST_auxst_altentry_shareTY (   st,
  val 
)    cwh_auxst_set_flag(st,f_ALTTY,val)

Definition at line 121 of file cwh_auxst.h.

Referenced by cwh_stab_altres_offset().

#define Set_ST_auxst_has_rslt_tmp (   st,
  val 
)    cwh_auxst_set_flag(st,f_RSLTTMP,val)

Definition at line 109 of file cwh_auxst.h.

Referenced by fei_proc_def(), fei_proc_imp(), and fei_proc_interface().

#define Set_ST_auxst_is_allocatable (   st,
  val 
)    cwh_auxst_set_flag(st,f_ALLOC,val)

Definition at line 145 of file cwh_auxst.h.

Referenced by fei_object().

#define Set_ST_auxst_is_altentry (   st,
  val 
)    cwh_auxst_set_flag(st,f_ALTENT,val)

Definition at line 118 of file cwh_auxst.h.

Referenced by fei_proc_def(), and fei_proc_interface().

Definition at line 148 of file cwh_auxst.h.

Referenced by fei_object().

#define Set_ST_auxst_is_assumed_size (   st,
  val 
)    cwh_auxst_set_flag(st,f_A_SIZE,val)

Definition at line 151 of file cwh_auxst.h.

Referenced by fei_object().

Definition at line 130 of file cwh_auxst.h.

Referenced by fei_object().

#define Set_ST_auxst_is_elemental (   st,
  val 
)    cwh_auxst_set_flag(st,f_ELEM,val)

Definition at line 115 of file cwh_auxst.h.

Referenced by fei_proc_def(), fei_proc_imp(), and fei_proc_interface().

#define Set_ST_auxst_is_f90_pointer (   st,
  val 
)    cwh_auxst_set_flag(st,f_F90_PTR,val)

Definition at line 133 of file cwh_auxst.h.

Referenced by fei_object().

#define Set_ST_auxst_is_module_data (   st,
  val 
)    cwh_auxst_set_flag(st,f_MODULE,val)

Definition at line 136 of file cwh_auxst.h.

Referenced by fei_seg().

Definition at line 127 of file cwh_auxst.h.

Referenced by fei_object().

#define Set_ST_auxst_is_rslt_tmp (   st,
  val 
)    cwh_auxst_set_flag(st,f_IS_RSLTTMP,val)

Definition at line 112 of file cwh_auxst.h.

Referenced by fei_object().

#define Set_ST_auxst_is_tmp (   st,
  val 
)    cwh_auxst_set_flag(st,f_IS_TMP,val)

Definition at line 142 of file cwh_auxst.h.

Referenced by fei_object().

#define Set_ST_auxst_xpragma_copyin (   st,
  val 
)    cwh_auxst_set_flag(st,f_XP_COPY,val)

Definition at line 139 of file cwh_auxst.h.

Referenced by cwh_types_copyin_pragma(), and fei_copyin_bound().

Definition at line 110 of file cwh_auxst.h.

Referenced by cwh_auxst_set_tylist(), and cwh_stmt_call_helper().

Definition at line 146 of file cwh_auxst.h.

Referenced by cwh_dst_mk_common(), and cwh_dst_mk_variable().

Definition at line 119 of file cwh_auxst.h.

Definition at line 149 of file cwh_auxst.h.

Referenced by cwh_dst_mk_common(), cwh_dst_mk_formal(), and cwh_dst_mk_variable().

Definition at line 152 of file cwh_auxst.h.

Referenced by cwh_dst_mk_common(), cwh_dst_mk_formal(), and cwh_dst_mk_variable().

#define ST_auxst_is_elemental (   st)    cwh_auxst_read_flag(st,f_ELEM)

Definition at line 116 of file cwh_auxst.h.

Referenced by cwh_stmt_call_helper().

Definition at line 137 of file cwh_auxst.h.

Referenced by cwh_stab_earlier_common().

Definition at line 128 of file cwh_auxst.h.

Referenced by fei_nseq_subscr().

Definition at line 113 of file cwh_auxst.h.

Referenced by fei_return().

#define ST_auxst_is_tmp (   st)    cwh_auxst_read_flag(st,f_IS_TMP)

Definition at line 143 of file cwh_auxst.h.

Referenced by cwh_dst_mk_variable().

Definition at line 140 of file cwh_auxst.h.

Referenced by cwh_types_copyin_pragma(), and fei_copyin_bound().


Enumeration Type Documentation

enum flags_a
Enumerator:
f_RSLTTMP 
f_ELEM 
f_ALTENT 
f_ALTTY 
f_VISITED 
f_NONCONT 
f_AUTO_OR_CPTR 
f_F90_PTR 
f_MODULE 
f_XP_COPY 
f_IS_TMP 
f_ALLOC 
f_ASSUMED 
f_A_SIZE 
f_IS_RSLTTMP 

Definition at line 90 of file cwh_auxst.h.

enum list_name
Enumerator:
l_COMLIST 
l_ALTENTRY 
l_RETURN_TEMPS 
l_NAMELIST 
l_SPLITLIST 
l_EQVLIST 
l_DST_COMLIST 
l_DST_PARMLIST 
l_TYMDLIST 

Definition at line 72 of file cwh_auxst.h.


Function Documentation

ITEM* cwh_auxst_add_to_list ( LIST **  lp,
ST st,
BOOL  order 
)

Definition at line 551 of file cwh_auxst.cxx.

References I_element, I_next, L_first, L_last, L_num, NULL, and ST_ofst().

Referenced by cwh_auxst_add_item(), cwh_stab_to_list_of_equivs(), fei_name(), fei_proc_def(), fei_proc_imp(), fei_proc_interface(), and fei_seg().

Here is the call graph for this function:

Definition at line 146 of file cwh_auxst.cxx.

References Auxst_tab, FE_Mempool, MAX_AUXST_LEVEL, and MEM_POOL_Alloc.

Referenced by PDGCS_initialize().

ST** cwh_auxst_arglist ( ST entry)

Definition at line 1161 of file cwh_auxst.cxx.

References alist::arglist, and cwh_auxst_find_entry().

Referenced by cwh_stmt_init_pu(), cwh_stmt_return_altentry(), fei_entry_pt(), and fei_gen_func_entry().

Here is the call graph for this function:

Definition at line 1072 of file cwh_auxst.cxx.

References Auxlabel_Table, and idx.

Referenced by fei_label_addr().

void cwh_auxst_clear_per_PU ( void  )

Definition at line 281 of file cwh_auxst.cxx.

References Auxlabel_Table, AUXST_Next, AUXST_Pragma, RELATED_SEGMENTED_ARRAY< T, block_size >::Clear(), CURRENT_SYMTAB, GLOBAL_SYMTAB, NULL, s, and Top_Auxst.

Referenced by cwh_stab_end_procs().

Here is the call graph for this function:

ST* cwh_auxst_cri_pointee ( ST ptr,
ST pointee 
)

Definition at line 1020 of file cwh_auxst.cxx.

References AUXST_CRIPointee, cwh_auxst_find(), and NULL.

Referenced by cwh_data_set_init_flag(), and fei_object().

Here is the call graph for this function:

Definition at line 971 of file cwh_auxst.cxx.

References AUXST_DstrPreg, AUXST_DstrReg, cwh_auxst_find(), cwh_preg_next_preg(), MTYPE_I4, NULL, and TRUE.

Referenced by cwh_mp_region(), cwh_stab_distrib_pragmas(), and fei_redistribute().

Here is the call graph for this function:

void cwh_auxst_dump_list ( LIST l,
BOOL  verbose 
)

Definition at line 1263 of file cwh_auxst.cxx.

References DUMP_ST, I_element, I_next, L_first, L_num, NULL, return(), and ST_name().

Referenced by cwh_auxst_dump().

Here is the call graph for this function:

Definition at line 1087 of file cwh_auxst.cxx.

References alist::arglist, alist::args_seen, AUXST_Dummies, EP_Current, FALSE, and TRUE.

Referenced by fei_name().

ST* cwh_auxst_find_item ( LIST l,
char *  name 
)

Definition at line 427 of file cwh_auxst.cxx.

References I_element, I_next, L_first, NULL, and ST_name().

Referenced by fei_proc_def(), fei_proc_imp(), and fei_proc_interface().

Here is the call graph for this function:

void cwh_auxst_free_list ( LIST **  lp)

Definition at line 629 of file cwh_auxst.cxx.

References free(), I_next, L_first, and NULL.

Referenced by cwh_auxst_free(), and cwh_stab_emit_list().

Here is the call graph for this function:

LIST* cwh_auxst_get_list ( ST st,
enum list_name  list 
)

Definition at line 309 of file cwh_auxst.cxx.

References cwh_auxst_find(), cwh_auxst_find_list(), FALSE, and NULL.

Referenced by cwh_stab_full_split(), and cwh_stab_mk_flds().

Here is the call graph for this function:

Definition at line 1181 of file cwh_auxst.cxx.

References cwh_auxst_find_entry(), and alist::total_args.

Referenced by cwh_stmt_init_pu(), fei_entry_pt(), and fei_gen_func_entry().

Here is the call graph for this function:

WN* cwh_auxst_pragma ( ST ptr,
WN wn = NULL 
)

Definition at line 1047 of file cwh_auxst.cxx.

References AUXST_Pragma, cwh_auxst_find(), NULL, and wn.

Referenced by cwh_stab_add_pragma().

Here is the call graph for this function:

BOOL cwh_auxst_read_flag ( ST st,
enum flags_a  f 
)

Definition at line 682 of file cwh_auxst.cxx.

References AUXST_Flag, cwh_auxst_find(), FALSE, and NULL.

Here is the call graph for this function:

void cwh_auxst_set_flag ( ST st,
enum flags_a  f,
BOOL  val 
)

Definition at line 660 of file cwh_auxst.cxx.

References Clear_AUXST_Flag, cwh_auxst_find(), Set_AUXST_Flag, and TRUE.

Here is the call graph for this function:

Definition at line 936 of file cwh_auxst.cxx.

References AUXST_SrcPos, cwh_auxst_find(), and TRUE.

Referenced by cwh_stab_set_linenum().

Here is the call graph for this function:

Definition at line 953 of file cwh_auxst.cxx.

References AUXST_SrcPos, cwh_auxst_find(), and TRUE.

Here is the call graph for this function:

char* cwh_auxst_stem_name ( ST st,
char *  name = NULL 
)

Definition at line 991 of file cwh_auxst.cxx.

References AUXST_Stem, cwh_auxst_find(), name, and NULL.

Referenced by cwh_dst_mk_const(), cwh_stab_adjust_name(), and fei_smt_parameter().

Here is the call graph for this function:

void cwh_auxst_un_register_table ( void  )

Definition at line 123 of file cwh_auxst.cxx.

References Auxlabel_Table, Auxst_tab, CURRENT_SYMTAB, CXX_DELETE, FE_Mempool, GLOBAL_SYMTAB, SCOPE::label_tab, Scope_tab, SCOPE::st_tab, and growing_table::Un_register().

Referenced by cwh_stab_end_procs().

Here is the call graph for this function:

void Set_ST_auxst_data_info ( ST st,
data_info_s data_info 
)

Definition at line 706 of file cwh_auxst.cxx.

References AUXST_DataInfo, cwh_auxst_find(), return(), and TRUE.

Referenced by emit_inits_for_symbol(), and fei_static_base().

Here is the call graph for this function:

Definition at line 723 of file cwh_auxst.cxx.

References AUXST_DataInfo, cwh_auxst_find(), FALSE, and NULL.

Referenced by emit_inits_for_symbol(), and fei_static_base().

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines