OpenADFortTk (including Open64 and OpenAnalysis references)
|
#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.
Classes | |
struct | NULL_TERMINATED_STRING |
union | UNALIGN_INT32 |
struct | CHARACTER_ARRAY |
struct | STR_TAB< STR > |
struct | STR_TAB< STR >::StringHashKey |
class | STR_TAB< STR >::ExtractStringBufferFromStringTable |
class | STR_TAB< STR >::HashStringHashKey |
class | STR_TAB< STR >::EqStringHashKey |
Macros | |
#define | UC(x) ((unsigned char)(x)) |
Typedefs | |
typedef UINT32 | STR_INDEX |
Variables | |
static STR_TAB < NULL_TERMINATED_STRING > | Strtab (1000) |
STRING_TABLE | Str_Table |
const UINT32 | TCON_STRTAB_HASH_SIZE = 512 |
static STR_TAB< CHARACTER_ARRAY > | TCON_strtab (TCON_STRTAB_HASH_SIZE) |
#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 Em_Targ_Emit_Const(), Hash_TCON(), Host_To_Targ_String(), operator<<(), Targ_Emit_Const(), Targ_Print(), Targ_String_Address(), whirl2sexp::xlate_SYMTAB_entry_TCON_STR(), and whirl2sexp::xlate_TCON_STR_TAB().
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 DRA_Clone_Instantiate(), fortTkSupport::GetCFGControlFlowVertexType(), Index_To_Str(), ir_put_wn(), STRING_TABLE::operator[](), ST_ATTR::Print(), Spill_Shared_Load(), Write_Global_Info(), whirl2sexp::xlate_STR_TAB(), and whirl2sexp::xlate_SYMTAB_entry_STR().
|
inlinestatic |
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().
|
inlinestatic |
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(), WN_get_strtab(), and sexp2whirl::xlate_STR_TAB().
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(), WN_get_global_symtab(), and sexp2whirl::xlate_TCON_STR_TAB().
void Initialize_TCON_strtab | ( | const char * | buf, |
UINT32 | size | ||
) |
Definition at line 503 of file strtab.cxx.
References initialize_strtab(), and TCON_strtab.
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.
STR_IDX Save_Str | ( | const char * | str) |
Definition at line 458 of file strtab.cxx.
Referenced by xaif2whirl::ConvertIntoGlobalST(), Create_All_Preg_Symbols(), Create_Base_Reg(), Create_Global_Array_ST(), Create_Local_ST(), Create_Preg_explicit(), xaif2whirl::CreateST(), Declare_Func_N_Arg(), Declare_Function(), xaif2whirl::DeclareActiveTypes(), DRA_EC_Declare_Types(), DRA_Mangle_Call_Site(), DRA_Mangle_Entry(), DRA_Process_Requests(), Fill_Structure_Type(), Gen_Intrinsic_Function(), Get_Section_ST(), xaif2whirl::GetOrCreateSymbol(), 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(), whirl2xaif::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 Save_Str().
Referenced by Create_All_Preg_Symbols(), Create_And_Set_ST_Base(), Create_Special_Shared_Global_Symbols(), 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 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().
Definition at line 90 of file strtab.cxx.
Referenced by STR_TAB< STR >::insert().
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(), Write_Global_Info(), and whirl2sexp::xlate_STR_TAB().
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(), and whirl2sexp::xlate_TCON_STR_TAB().
STRING_TABLE Str_Table |
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().
|
static |
Referenced by Index_To_Str(), Initialize_Strtab(), Merge_Strtab(), Save_Str(), and STR_Table_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.