#include "symtab_idx.h"#include <map>#include "mempool_allocator.h"

Go to the source code of this file.
Classes | |
| struct | STRING_TABLE |
| class | STR_IDX_MAP |
| struct | STR_IDX_MAP::STR_IDX_compare |
Defines | |
| #define | Str_To_Index(s, t) (s) |
Functions | |
| void | Initialize_Strtab (UINT32 size) |
| void | Initialize_Strtab (const char *buf, UINT32 size) |
| STR_IDX | Save_Str (const char *str) |
| STR_IDX | Save_Str2 (const char *s1, const char *s2) |
| STR_IDX | Save_Str2i (const char *s1, const char *s2, UINT i) |
| char * | Index_To_Str (STR_IDX idx) |
| UINT32 | STR_Table_Size () |
| char * | Index_To_Str (STR_IDX idx, void *) |
| UINT32 | TCON_strtab_size () |
| char * | TCON_strtab_buffer () |
| void | Initialize_TCON_strtab (UINT32 size) |
| void | Initialize_TCON_strtab (const char *buf, UINT32 size) |
| UINT32 | Save_StrN (const char *s1, UINT32 len) |
| char * | Index_to_char_array (UINT32 idx) |
| void | Merge_Strtab (const char *buf, UINT32 size, STR_IDX_MAP &map) |
| void | Merge_TCON_Strtab (const char *buf, UINT32 size, STR_IDX_MAP &map) |
Variables | |
| STRING_TABLE | Str_Table |
Definition at line 105 of file strtab.h.
Referenced by WN_CreateAsm_Input(), WN_CreateAsm_Stmt(), and WN_CreateComment().
| 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, | |
| void * | ||||
| ) | [inline] |
Definition at line 103 of file strtab.h.
References Index_To_Str().

| 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().

| void Initialize_Strtab | ( | const char * | buf, | |
| UINT32 | size | |||
| ) |
Definition at line 453 of file strtab.cxx.
References initialize_strtab(), and Strtab.

| 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_TCON_strtab | ( | const char * | buf, | |
| UINT32 | size | |||
| ) |
Definition at line 503 of file strtab.cxx.
References initialize_strtab(), and TCON_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 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.

| STR_IDX Save_Str | ( | const char * | str | ) |
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().
| STR_IDX Save_Str2 | ( | const char * | s1, | |
| const char * | s2 | |||
| ) |
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().

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().
| UINT32 STR_Table_Size | ( | ) |
Definition at line 442 of file strtab.cxx.
References Strtab.
Referenced by Print_global_symtab(), ST_Verify_Fields(), TY::Verify(), ST_ATTR::Verify(), PREG::Verify(), LABEL::Verify(), FLD::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().
| UINT32 TCON_strtab_size | ( | ) |
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.
1.6.1