Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
cwh_auxst.cxx File Reference
#include <string.h>
#include "defs.h"
#include "glob.h"
#include "stab.h"
#include "strtab.h"
#include "errors.h"
#include "targ_const.h"
#include "config_targ.h"
#include "const.h"
#include "wn.h"
#include "cxx_memory.h"
#include <stdio.h>
#include "cwh_defines.h"
#include "cwh_preg.h"
#include "cwh_types.h"
#include "cwh_addr.h"
#include "cwh_auxst.h"
#include "cwh_auxst.i"
#include "sgi_cmd_line.h"
Include dependency graph for cwh_auxst.cxx:

Go to the source code of this file.

Functions

void cwh_auxst_register_table (void)
void cwh_auxst_un_register_table (void)
void cwh_auxst_alloc_container_table (void)
static AUXSTcwh_auxst_find (ST *st, BOOL create)
void cwh_auxst_clear (ST *st)
void cwh_auxst_free (void)
void cwh_auxst_clear_per_PU (void)
LISTcwh_auxst_get_list (ST *st, enum list_name list)
static LISTcwh_auxst_find_list (AUXST *o, enum list_name list)
void cwh_auxst_add_item (ST *parent, ST *st, enum list_name list)
STcwh_auxst_find_item (LIST *l, char *name)
void cwh_auxst_add_list (ST *parent, LIST *l, enum list_name list)
ITEMcwh_auxst_next_element (ST *parent, ITEM *i, enum list_name list)
ITEMcwh_auxst_add_to_list (LIST **lp, ST *st, BOOL order)
void cwh_auxst_free_list (LIST **lp)
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)
void cwh_auxst_alloc_proc_entry (ST *st, INT32 num_dum_args, TY_IDX ret_type)
void cwh_auxst_add_dummy (ST *dummy, BOOL result)
void cwh_auxst_patch_proc (TY_IDX rty_idx)
static DUMMIEScwh_auxst_find_entry (ST *entry)
USRCPOScwh_auxst_srcpos_addr (ST *st)
USRCPOS cwh_auxst_srcpos_val (ST *st)
PREG_det cwh_auxst_distr_preg (ST *st)
char * cwh_auxst_stem_name (ST *st, char *name)
STcwh_auxst_cri_pointee (ST *ptr, ST *pointee)
WNcwh_auxst_pragma (ST *ptr, WN *wn)
INT32cwh_auxst_assign_id (SYMTAB_IDX level, LABEL_IDX idx)
BOOL cwh_auxst_find_dummy (ST *arg)
STcwh_auxst_find_dummy_len (ST *arg)
ST ** cwh_auxst_arglist (ST *entry)
INT16 cwh_auxst_num_dummies (ST *entry)
void cwh_auxst_set_tylist (ST *en)
void cwh_auxst_dump_list (LIST *l, BOOL verbose)
static void cwh_auxst_dump_dummies (DUMMIES *d)
void cwh_auxst_dump (ST *st)

Variables

static char * source_file = __FILE__

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:

static void cwh_auxst_dump_dummies ( DUMMIES d) [static]
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().

static DUMMIES* cwh_auxst_find_entry ( ST entry) [static]

Definition at line 918 of file cwh_auxst.cxx.

References AUXST_Dummies, cwh_auxst_find(), EP_Current, and FALSE.

Referenced by cwh_auxst_alloc_proc_entry(), cwh_auxst_arglist(), and cwh_auxst_num_dummies().

Here is the call graph for this function:

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 
)

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 
)

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:


Variable Documentation

char* source_file = __FILE__ [static]

Definition at line 62 of file cwh_auxst.cxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines