osprey/crayf90/sgi/cwh_dst.cxx File Reference

#include <limits.h>
#include <sys/stat.h>
#include <unistd.h>
#include "defs.h"
#include "glob.h"
#include "errors.h"
#include "wn.h"
#include "dwarf_DST_producer.h"
#include "dwarf_DST_dump.h"
#include "config_targ.h"
#include "file_util.h"
#include "cwh_defines.h"
#include "cwh_dst.h"
#include "cwh_dst.i"
#include "cwh_preg.h"
#include "cwh_stab.h"
#include "cwh_auxst.h"
#include "cwh_types.h"
#include "sgi_cmd_line.h"

Include dependency graph for cwh_dst.cxx:

Go to the source code of this file.

Functions/Subroutines

void cwh_dst_init_file (char *src_path)
void cwh_dst_write (void)
static void cwh_dst_process_var (UINT32, ST *st)
static void cwh_dst_mk_const (ST *st, DST_INFO_IDX parent)
DST_IDX cwh_dst_enter_pu (ST *en)
static DST_IDX cwh_dst_mk_func (ST *st)
static void cwh_dst_mk_MAIN (ST *mn, DST_INFO_IDX en_idx)
static void cwh_dst_mk_var (ST *st, DST_INFO_IDX parent)
static DST_INFO_IDX cwh_dst_mk_variable (ST *st)
static DST_INFO_IDX cwh_dst_mk_formal (ST *st)
static DST_INFO_IDX cwh_dst_mk_common_inclusion (ST *com, DST_INFO_IDX c)
static DST_INFO_IDX cwh_dst_mk_common (ST *st)
static DST_INFO_IDX cwh_dst_mk_type (TY_IDX ty)
static DST_INFO_IDX cwh_dst_basetype (TY_IDX ty)
static DST_INFO_IDX cwh_dst_pointer_type (TY_IDX ty)
static DST_INFO_IDX cwh_dst_mk_subroutine_type (TY_IDX ty)
static DST_INFO_IDX cwh_dst_array_type (TY_IDX ty)
static DST_INFO_IDX cwh_dst_struct_type (TY_IDX ty)
static DST_INFO_IDX cwh_dst_substring_type (TY_IDX ty)
static BOOL cwh_dst_is_character_TY (TY_IDX ty)
static DST_INFO_IDX cwh_dst_dope_type (TY_IDX td, ST *st, mINT64 off, DST_INFO_IDX parent, BOOL comp, DST_INFO_IDX *dope_ty)
static void cwh_dst_dope_bounds (TY_IDX td, ST *st, mINT64 off, DST_INFO_IDX arr, DST_INFO_IDX p, BOOL comp)
static enum str_knd cwh_dst_stride_kind (TY_IDX ty)
static DST_INFO_IDX cwh_dst_member (FLD_HANDLE fld, DST_INFO_IDX parent)
static DST_INFO_IDX cwh_dst_struct_has_DST (TY_IDX ty)
static void cwh_dst_struct_set_DST (TY_IDX ty, DST_INFO_IDX i)
static void cwh_dst_struct_clear_DSTs (void)
static void cwh_dst_inner_add_DST (DST_INFO_IDX i)
static void cwh_dst_inner_clear_DSTs (void)
static void cwh_dst_inner_read_DSTs (DST_INFO_IDX parent)
static DST_INFO_IDX cwh_dst_subrange (ARB_HANDLE ar)
static DST_INFO_IDX cwh_dst_mk_dope_bound (ST *dp, mINT64 offset, DST_INFO_IDX t, DST_INFO_IDX p, BOOL component)
static BOOL cwh_dst_has_dope (TY_IDX ty)
static INT32 DST_set_assoc_idx (INT32 dummy, DST_DW_tag tag, DST_flag flag, DST_ATTR_IDX iattr, DST_INFO_IDX inode)
static mUINT16 DST_get_ordinal_num (char *the_name, char ***the_list, mUINT16 *the_next, mUINT16 *the_size)
static DST_FILE_IDX DST_write_files (void)
static void DST_directory_of (char *file_path, char **dir_name, UINT32 *dir_length)
static DST_DIR_IDX DST_write_directories (void)
mUINT16 cwh_dst_enter_path (char *fname)
static char * cwh_dst_get_command_line_options (void)
static char Get_ST_Id (ST_IDX st_idx, INT *level, INT *index)
char * cwh_dst_filename_from_filenum (INT idx)

Variables

static const char * source_file = __FILE__
char * FE_command_line = NULL


Function Documentation

static DST_INFO_IDX cwh_dst_array_type ( TY_IDX  ty  )  [static]

static DST_INFO_IDX cwh_dst_basetype ( TY_IDX  ty  )  [static]

static void cwh_dst_dope_bounds ( TY_IDX  td,
ST st,
mINT64  off,
DST_INFO_IDX  arr,
DST_INFO_IDX  p,
BOOL  comp 
) [static]

static DST_INFO_IDX cwh_dst_dope_type ( TY_IDX  td,
ST st,
mINT64  off,
DST_INFO_IDX  parent,
BOOL  comp,
DST_INFO_IDX dope_ty 
) [static]

mUINT16 cwh_dst_enter_path ( char *  fname  ) 

DST_IDX cwh_dst_enter_pu ( ST en  ) 

char* cwh_dst_filename_from_filenum ( INT  idx  ) 

Definition at line 2955 of file cwh_dst.cxx.

References Is_True.

Referenced by cwh_addr_insert_bounds_check(), and cwh_stmt_insert_conformance_check().

static char* cwh_dst_get_command_line_options ( void   )  [static]

static BOOL cwh_dst_has_dope ( TY_IDX  ty  )  [static]

void cwh_dst_init_file ( char *  src_path  ) 

static void cwh_dst_inner_add_DST ( DST_INFO_IDX  i  )  [static]

Definition at line 2244 of file cwh_dst.cxx.

References realloc.

Referenced by cwh_dst_enter_pu().

static void cwh_dst_inner_clear_DSTs ( void   )  [static]

Definition at line 2266 of file cwh_dst.cxx.

Referenced by cwh_dst_enter_pu().

static void cwh_dst_inner_read_DSTs ( DST_INFO_IDX  parent  )  [static]

Definition at line 2281 of file cwh_dst.cxx.

References DST_append_child(), and INT32.

Referenced by cwh_dst_enter_pu().

static BOOL cwh_dst_is_character_TY ( TY_IDX  ty  )  [static]

Definition at line 1796 of file cwh_dst.cxx.

References BOOL, DevAssert, FALSE, KIND_ARRAY, KIND_SCALAR, TRUE, TY_AR_etype, TY_is_character, TY_kind, and Ty_Table.

Referenced by cwh_dst_array_type().

static DST_INFO_IDX cwh_dst_member ( FLD_HANDLE  fld,
DST_INFO_IDX  parent 
) [static]

static DST_INFO_IDX cwh_dst_mk_common ( ST st  )  [static]

static DST_INFO_IDX cwh_dst_mk_common_inclusion ( ST com,
DST_INFO_IDX  c 
) [static]

Definition at line 1338 of file cwh_dst.cxx.

References DST_mk_common_incl().

Referenced by cwh_dst_mk_var().

static void cwh_dst_mk_const ( ST st,
DST_INFO_IDX  parent 
) [static]

static DST_INFO_IDX cwh_dst_mk_dope_bound ( ST dp,
mINT64  offset,
DST_INFO_IDX  t,
DST_INFO_IDX  p,
BOOL  component 
) [static]

static DST_INFO_IDX cwh_dst_mk_formal ( ST st  )  [static]

static DST_IDX cwh_dst_mk_func ( ST st  )  [static]

static void cwh_dst_mk_MAIN ( ST mn,
DST_INFO_IDX  en_idx 
) [static]

static DST_INFO_IDX cwh_dst_mk_subroutine_type ( TY_IDX  ty  )  [static]

static DST_INFO_IDX cwh_dst_mk_type ( TY_IDX  ty  )  [static]

static void cwh_dst_mk_var ( ST st,
DST_INFO_IDX  parent 
) [static]

static DST_INFO_IDX cwh_dst_mk_variable ( ST st  )  [static]

static DST_INFO_IDX cwh_dst_pointer_type ( TY_IDX  ty  )  [static]

static void cwh_dst_process_var ( UINT32  ,
ST st 
) [static]

Definition at line 278 of file cwh_dst.cxx.

References CLASS_CONST, CLASS_VAR, cwh_dst_mk_const(), cwh_dst_mk_var(), and ST_class.

Referenced by cwh_dst_enter_pu().

static enum str_knd cwh_dst_stride_kind ( TY_IDX  ty  )  [static]

static void cwh_dst_struct_clear_DSTs ( void   )  [static]

Definition at line 2229 of file cwh_dst.cxx.

Referenced by cwh_dst_enter_pu().

static DST_INFO_IDX cwh_dst_struct_has_DST ( TY_IDX  ty  )  [static]

static void cwh_dst_struct_set_DST ( TY_IDX  ty,
DST_INFO_IDX  i 
) [static]

Definition at line 2208 of file cwh_dst.cxx.

References realloc.

Referenced by cwh_dst_struct_type().

static DST_INFO_IDX cwh_dst_struct_type ( TY_IDX  ty  )  [static]

static DST_INFO_IDX cwh_dst_subrange ( ARB_HANDLE  ar  )  [static]

static DST_INFO_IDX cwh_dst_substring_type ( TY_IDX  ty  )  [static]

void cwh_dst_write ( void   ) 

static void DST_directory_of ( char *  file_path,
char **  dir_name,
UINT32 dir_length 
) [static]

Definition at line 2736 of file cwh_dst.cxx.

References dir, strdup, and strrchr().

Referenced by DST_write_files().

static mUINT16 DST_get_ordinal_num ( char *  the_name,
char ***  the_list,
mUINT16 the_next,
mUINT16 the_size 
) [static]

Definition at line 2640 of file cwh_dst.cxx.

References idx, malloc, mUINT16, next, NULL, realloc, size, and strcmp().

Referenced by cwh_dst_enter_path(), and DST_write_files().

static INT32 DST_set_assoc_idx ( INT32  dummy,
DST_DW_tag  tag,
DST_flag  flag,
DST_ATTR_IDX  iattr,
DST_INFO_IDX  inode 
) [static]

static DST_DIR_IDX DST_write_directories ( void   )  [static]

Definition at line 2757 of file cwh_dst.cxx.

References DST_INVALID_INIT, DST_mk_include_dir(), and mUINT16.

Referenced by cwh_dst_write().

static DST_FILE_IDX DST_write_files ( void   )  [static]

static char Get_ST_Id ( ST_IDX  st_idx,
INT level,
INT index 
) [static]

Definition at line 2929 of file cwh_dst.cxx.

References ST_IDX_index(), and ST_IDX_level().

Referenced by DST_set_assoc_idx().


Variable Documentation

char* FE_command_line = NULL

const char* source_file = __FILE__ [static]

Definition at line 73 of file cwh_dst.cxx.


Generated on Wed Apr 8 14:45:42 2009 for Open64 by  doxygen 1.5.6