Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <alloca.h>
#include <string.h>
#include <map>
#include "HashTable.h"
#include "defs.h"
#include "errors.h"
#include "cxx_memory.h"
#include "strtab.h"
Go to the source code of this file.
#define UC | ( | x | ) | ((unsigned char)(x)) |
Definition at line 161 of file strtab.cxx.
Referenced by CHARACTER_ARRAY::get_length(), and CHARACTER_ARRAY::get_str().
Definition at line 74 of file strtab.cxx.
char* Index_to_char_array | ( | UINT32 | idx | ) |
Definition at line 514 of file strtab.cxx.
References CHARACTER_ARRAY::get_str(), Is_True, and TCON_strtab.
Referenced by cwh_dst_mk_const(), Em_Targ_Emit_Const(), Hash_TCON(), Host_To_Targ_String(), Targ_Emit_Const(), Targ_Print(), and Targ_String_Address().
char* Index_To_Str | ( | STR_IDX | idx | ) |
Definition at line 479 of file strtab.cxx.
References NULL_TERMINATED_STRING::get_str(), Is_True, and Strtab.
Referenced by cwh_inline_allocate(), cwh_preg_temp_save(), cwh_stmt_insert_conformance_check(), DRA_Clone_Instantiate(), fei_doloop(), fei_nseq_subscr(), fei_seq_subscr(), Index_To_Str(), ir_put_wn(), ANL_LOOP_CONSTRUCT::Is_End_Of_Loop_Comment(), STRING_TABLE::operator[](), ST_ATTR::Print(), Spill_Shared_Load(), WN2C_comment(), WN2C_Skip_Stmt(), WN2F_comment(), and Write_Global_Info().
static void initialize_strtab | ( | STRTAB & | strtab, |
UINT32 | size | ||
) | [inline, static] |
Definition at line 417 of file strtab.cxx.
References Malloc_Mem_Pool, MEM_POOL_Alloc, and size.
Referenced by Initialize_Strtab(), and Initialize_TCON_strtab().
static void initialize_strtab | ( | STRTAB & | strtab, |
const char * | buf, | ||
UINT32 | size | ||
) | [inline, static] |
Definition at line 426 of file strtab.cxx.
References Malloc_Mem_Pool, MEM_POOL_Alloc, and size.
void Initialize_Strtab | ( | UINT32 | size | ) |
Definition at line 448 of file strtab.cxx.
References initialize_strtab(), and Strtab.
Referenced by Initialize_Symbol_Tables(), and WN_get_strtab().
void Initialize_Strtab | ( | const char * | buf, |
UINT32 | size | ||
) |
Definition at line 453 of file strtab.cxx.
References initialize_strtab(), and Strtab.
void Initialize_TCON_strtab | ( | UINT32 | size | ) |
Definition at line 498 of file strtab.cxx.
References initialize_strtab(), and TCON_strtab.
Referenced by Init_Constab(), and WN_get_global_symtab().
void Initialize_TCON_strtab | ( | const char * | buf, |
UINT32 | size | ||
) |
Definition at line 503 of file strtab.cxx.
References initialize_strtab(), and TCON_strtab.
static STR_INDEX make_STR_INDEX | ( | UINT32 | size, |
UINT32 | idx | ||
) | [inline, static] |
Definition at line 99 of file strtab.cxx.
Referenced by STR_TAB< STR >::init_hash(), and STR_TAB< STR >::insert().
void merge_strtab | ( | STR_TAB< STR > & | strtab, |
const char * | buf, | ||
UINT32 | size, | ||
MAP & | map | ||
) |
Definition at line 522 of file strtab.cxx.
References idx, and STR_TAB< STR >::insert().
Referenced by Merge_Strtab(), and Merge_TCON_Strtab().
void Merge_Strtab | ( | const char * | buf, |
UINT32 | size, | ||
STR_IDX_MAP & | map | ||
) |
Definition at line 539 of file strtab.cxx.
References merge_strtab(), and Strtab.
void Merge_TCON_Strtab | ( | const char * | buf, |
UINT32 | size, | ||
STR_IDX_MAP & | map | ||
) |
Definition at line 545 of file strtab.cxx.
References merge_strtab(), and TCON_strtab.
Definition at line 458 of file strtab.cxx.
Referenced by Create_All_Preg_Symbols(), Create_Base_Reg(), Create_Global_Array_ST(), Create_Local_ST(), Create_Preg_explicit(), cwh_inline_allocate(), cwh_preg_temp_save(), cwh_stab_address_temp_ST(), cwh_stab_altentry_temp(), cwh_stab_common_ST(), cwh_stab_mk_fn_0args(), cwh_stab_module_ST(), cwh_stmt_insert_conformance_check(), cwh_types_array_util(), cwh_types_fld_util(), cwh_types_formal_util(), cwh_types_mk_character_TY(), cwh_types_mk_f90_pointer_ty(), cwh_types_mk_procedure_TY(), cwh_types_mk_struct(), cwh_types_mk_unique_pointer_TY(), Declare_Func_N_Arg(), Declare_Function(), DRA_EC_Declare_Types(), DRA_Mangle_Call_Site(), DRA_Mangle_Entry(), DRA_Process_Requests(), fei_doloop(), fei_gen_st_for_type(), fei_interface(), fei_label(), fei_member(), fei_namelist(), fei_object(), fei_proc_def(), fei_proc_interface(), fei_rename_list(), fei_seg(), fei_smt_parameter(), fei_user_type(), Fill_Structure_Type(), Gen_Intrinsic_Function(), Get_Section_ST(), Initialize_Stack_Frame(), Initialize_Upc_Types(), Initialize_Upc_Vars(), Make_Function_Type(), make_ptr_type(), Make_Shared_Type(), Rewrite_Structs_In_MPRegion(), Save_Str2(), Save_Str2i(), Set_PREG_name(), WN2F_String_Argument(), WN_CreateAsm_Input(), WN_CreateAsm_Stmt(), WN_CreateComment(), and WN_Rename_Duplicate_Labels().
Definition at line 464 of file strtab.cxx.
References len, Save_Str(), and strcpy.
Referenced by Create_All_Preg_Symbols(), Create_And_Set_ST_Base(), Create_Special_Shared_Global_Symbols(), cwh_stab_adjust_base_name(), cwh_types_form_misaligned_TY(), cwh_types_mk_logical_TY(), cwh_types_mk_misaligned_TY(), fei_nseq_subscr(), fei_seq_subscr(), Fill_Align_Symbol(), Formal_Sym(), Gen_predef_type_name(), Get_Altentry_UpFormal_Symbol(), Init_Segment_Descriptors(), Initialize_Frame_Segment(), and Spill_Shared_Load().
STR_IDX Save_Str2i | ( | const char * | s1, |
const char * | s2, | ||
UINT | i | ||
) |
Definition at line 472 of file strtab.cxx.
References len, and Save_Str().
Referenced by Copy_ST_No_Base(), and Gen_Temp_Named_Symbol().
Definition at line 508 of file strtab.cxx.
References TCON_strtab.
Referenced by Host_To_Targ_String().
static mUINT32 STR_INDEX_index | ( | STR_INDEX | idx | ) | [inline, static] |
Definition at line 90 of file strtab.cxx.
Referenced by STR_TAB< STR >::insert().
static mUINT8 STR_INDEX_size | ( | STR_INDEX | idx | ) | [inline, static] |
Definition at line 88 of file strtab.cxx.
UINT32 STR_Table_Size | ( | ) |
Definition at line 442 of file strtab.cxx.
References Strtab.
Referenced by Print_global_symtab(), ST_Verify_Fields(), FLD::Verify(), LABEL::Verify(), PREG::Verify(), ST_ATTR::Verify(), TY::Verify(), and Write_Global_Info().
char* TCON_strtab_buffer | ( | ) |
Definition at line 493 of file strtab.cxx.
References TCON_strtab.
Referenced by ir_b_write_global_symtab().
Definition at line 489 of file strtab.cxx.
References TCON_strtab.
Referenced by ir_b_write_global_symtab().
Definition at line 439 of file strtab.cxx.
Referenced by FLD_name(), LABEL_name(), PREG_name(), ST::Print(), FLD::Print(), LABEL::Print(), PREG::Print(), TY::Print(), ST_name(), and TY_name().
STR_TAB<NULL_TERMINATED_STRING> Strtab(1000) [static] |
Referenced by Index_To_Str(), Initialize_Strtab(), Merge_Strtab(), Save_Str(), and STR_Table_Size().
STR_TAB<CHARACTER_ARRAY> TCON_strtab(TCON_STRTAB_HASH_SIZE) [static] |
Referenced by Index_to_char_array(), Initialize_TCON_strtab(), Merge_TCON_Strtab(), Save_StrN(), TCON_strtab_buffer(), and TCON_strtab_size().
const UINT32 TCON_STRTAB_HASH_SIZE = 512 |
Definition at line 485 of file strtab.cxx.