Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
cwh_data.cxx File Reference
#include "defs.h"
#include "glob.h"
#include "stab.h"
#include "strtab.h"
#include "erfe90.h"
#include "errors.h"
#include "targ_const.h"
#include "config_targ.h"
#include "const.h"
#include "wn.h"
#include "wn_util.h"
#include "irbdata.h"
#include "cxx_memory.h"
#include "i_cvrt.h"
#include "cwh_defines.h"
#include "cwh_types.h"
#include "cwh_addr.h"
#include "cwh_stmt.h"
#include "cwh_preg.h"
#include "cwh_stab.h"
#include "cwh_auxst.h"
#include "cwh_stk.h"
#include "cwh_expr.h"
#include "cwh_data.h"
#include "cwh_data.i"
Include dependency graph for cwh_data.cxx:

Go to the source code of this file.

Functions

void fei_static_base (INTPTR sym_idx)
void fei_static_subscripts (INT64 static_subscripts[STATIC_SUBSCRIPT_SIZE])
void fei_static_substr (INT32 start)
void fei_static_member (INT32 st_idx)
static INT32 get_TCON_size (TCON_IDX tc)
static TCON_IDX TCON_from_stack (void)
static b_and_o get_base_and_offset (WN *wn)
static INITV_IDX create_initv (INITO_IDX ino, INT32 repeat, TCON_IDX tc, b_and_o *bo)
static void static_simple_init_helper (INT64 dup_count, INT64 stride, TCON_IDX value, b_and_o *bo)
void fei_static_simple_init (INT64 dup_count, INT64 stride, INT32 ignore_types, INT32 string_literal)
void fei_static_next_simple_init (INT64 bit_increment, INT64 dup_count, INT64 init_offset, INT32 string_literal)
void fei_static_simple_reloc_init (INT64 bit_offset, INT64 dup_count, INT64 stride, INT64 bit_size, INT32 ignore_types)
static void emit_inits_for_symbol (ST_IDX st_idx, ST *st)
void cwh_data_emit_symbol_inits (SYMTAB_IDX level)
static void cwh_data_set_init_flag (ST *st, enum list_name list)

Variables

static char * source_file = __FILE__

Function Documentation

static INITV_IDX create_initv ( INITO_IDX  ino,
INT32  repeat,
TCON_IDX  tc,
b_and_o bo 
) [static]

Definition at line 471 of file cwh_data.cxx.

References b_and_o::base, Irb_Init_Symoff(), Irb_Init_Val(), and b_and_o::offset.

Referenced by static_simple_init_helper().

Here is the call graph for this function:

Definition at line 678 of file cwh_data.cxx.

References emit_inits_for_symbol(), For_all(), and St_Table.

Referenced by PDGCS_do_proc(), and PDGCS_terminate().

Here is the call graph for this function:

static void cwh_data_set_init_flag ( ST st,
enum list_name  list 
) [static]

Definition at line 696 of file cwh_data.cxx.

References cwh_auxst_cri_pointee(), cwh_auxst_next_element(), I_element, l_COMLIST, l_EQVLIST, NULL, SCLASS_AUTO, SCLASS_PSTATIC, Set_ST_is_initialized(), Set_ST_sclass(), and ST_sclass().

Referenced by fei_static_base().

Here is the call graph for this function:

void fei_static_member ( INT32  st_idx)

Definition at line 254 of file cwh_data.cxx.

References current_bytesize, current_pos, current_ty, DevAssert, f, FLD_bofst(), FLD_ofst(), FLD_type(), KIND_ARRAY, TY_etype(), TY_kind(), and TY_size().

Referenced by cvrt_exp_to_pdg().

Here is the call graph for this function:

void fei_static_next_simple_init ( INT64  bit_increment,
INT64  dup_count,
INT64  init_offset,
INT32  string_literal 
)

Definition at line 541 of file cwh_data.cxx.

References array_pos, and fei_static_simple_init().

Referenced by blank_padding().

Here is the call graph for this function:

void fei_static_simple_init ( INT64  dup_count,
INT64  stride,
INT32  ignore_types,
INT32  string_literal 
)

Definition at line 523 of file cwh_data.cxx.

References NULL, static_simple_init_helper(), and TCON_from_stack().

Referenced by cvrt_exp_to_pdg(), fei_static_next_simple_init(), and push_data_value().

Here is the call graph for this function:

void fei_static_simple_reloc_init ( INT64  bit_offset,
INT64  dup_count,
INT64  stride,
INT64  bit_size,
INT32  ignore_types 
)

Definition at line 557 of file cwh_data.cxx.

References b_and_o::base, cwh_expr_operand(), cwh_expr_set_flags(), DevAssert, f_T_SAVED, get_base_and_offset(), NULL, static_simple_init_helper(), and WN_DELETE_Tree().

Referenced by cvrt_exp_to_pdg().

Here is the call graph for this function:

void fei_static_subscripts ( INT64  static_subscripts[STATIC_SUBSCRIPT_SIZE])

Definition at line 206 of file cwh_data.cxx.

References ARB_lbnd_val(), ARB_stride_val(), array_pos, current_ty, DevAssert, KIND_ARRAY, TY_AR_ndims(), TY_arb(), TY_kind(), and Ty_Table.

Here is the call graph for this function:

void fei_static_substr ( INT32  start)

Definition at line 239 of file cwh_data.cxx.

References array_pos.

Referenced by cvrt_exp_to_pdg().

static INT32 get_TCON_size ( TCON_IDX  tc) [static]

Definition at line 273 of file cwh_data.cxx.

References MTYPE_size_min, MTYPE_STR, Pointer_Size, Targ_String_Length(), Tcon_Table, and TCON_ty.

Referenced by static_simple_init_helper().

Here is the call graph for this function:

static void static_simple_init_helper ( INT64  dup_count,
INT64  stride,
TCON_IDX  value,
b_and_o bo 
) [static]

Variable Documentation

char* source_file = __FILE__ [static]

Definition at line 45 of file cwh_data.cxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines