Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include "defs.h"
#include "wn_pragmas.h"
#include "cxx_memory.h"
#include "cxx_hash.h"
#include "cxx_base.h"
#include "mtypes.h"
#include "symtab.h"
Go to the source code of this file.
typedef HASH_TABLE<ST_IDX, BOOL> DRA_COMMON_HASH_TABLE |
Definition at line 349 of file dra_internal.h.
typedef HASH_TABLE<ST*, DRA_GLOBAL_INFO*> DRA_GLOBAL_HASH_TABLE |
Definition at line 346 of file dra_internal.h.
typedef HASH_TABLE<ST*, DRA_INFO*> DRA_HASH_TABLE |
Definition at line 315 of file dra_internal.h.
typedef HASH_TABLE<STR_IDX, MANGLED_FUNC*> NAME_ST_TABLE |
Definition at line 331 of file dra_internal.h.
typedef HASH_TABLE_ITER<STR_IDX, MANGLED_FUNC*> NAME_ST_TABLE_ITER |
Definition at line 333 of file dra_internal.h.
typedef HASH_TABLE<STR_IDX, STRING_LIST*> STRING_LIST_TABLE |
Definition at line 320 of file dra_internal.h.
void DRA_Close_File | ( | ) |
Definition at line 251 of file dra_file_util.cxx.
References close, and DRA_file_desc.
Referenced by DRA_Finalize().
void DRA_EC_Array_Portion_Parms | ( | WN * | func_nd, |
WN * | entry_nd | ||
) |
Definition at line 244 of file dra_ec.cxx.
References Be_Type_Tbl, block, CART_array_base, CART_element_size, CART_index, CART_ndims, Create_Local_ST(), DRA_Demangle_Func(), DRA_EC_struct_ptr_ty, FALSE, Gen_Call_Array(), Gen_Free_Cart(), Gen_Malloc_Cart(), Gen_String_Sym(), Get_Array_Dim_Size(), Get_Preamble_End(), Host_To_Targ_String(), Is_True, KIND_ARRAY, KIND_POINTER, Make_Pointer_Type(), MTYPE_I8, MTYPE_STRING, MTYPE_U1, MTYPE_V, name, NULL, OPC_ALTENTRY, OPC_FUNC_ENTRY, OPR_CALL, OPR_ISTORE, OPR_LDA, Pointer_type, SCLASS_FORMAL, SCLASS_FORMAL_REF, ST_name(), ST_sclass(), ST_st_idx(), St_Table, ST_type(), strcpy, TRUE, TY_AR_etype(), TY_AR_ndims(), TY_kind(), TY_pointed(), TY_size(), Ty_Table, WN_COPY_Tree(), WN_Create(), WN_CreateBlock(), WN_CreateIf(), WN_CreateIstore(), WN_CreateLda(), WN_CreateParm(), WN_first(), WN_formal, WN_func_body, WN_Get_Linenum(), WN_INSERT_BlockAfter(), WN_INSERT_BlockBefore(), WN_Intconst(), WN_kid(), WN_kid_count(), WN_Ldid(), WN_next(), WN_num_formals, WN_opcode(), WN_PARM_BY_REFERENCE, WN_PARM_BY_VALUE, WN_Set_Linenum(), WN_st(), WN_st_idx(), and WN_then.
Referenced by DRA_Processing().
void DRA_EC_Declare_Types | ( | ) |
Definition at line 165 of file dra_ec.cxx.
References ARB_Init(), Be_Type_Tbl, CART_array_base, CART_element_size, CART_index, CART_ndims, Declare_Func_N_Arg(), DRA_EC_struct_ptr_ty, FLD_Init(), KIND_ARRAY, KIND_STRUCT, Make_Pointer_Type(), MTYPE_I8, MTYPE_M, MTYPE_U1, MTYPE_UNKNOWN, MTYPE_V, New_ARB(), New_FLD(), New_TY(), Save_Str(), Set_ARB_const_lbnd(), Set_ARB_const_stride(), Set_ARB_const_ubnd(), Set_ARB_first_dimen(), Set_ARB_last_dimen(), Set_ARB_lbnd_val(), Set_ARB_stride_val(), Set_ARB_ubnd_val(), TY::Set_etype(), Set_FLD_last_field(), Set_TY_align(), Set_TY_arb(), Set_TY_fld(), Set_TY_ptr_as_array(), TRUE, TY_Init(), TY_size(), and Ty_Table.
Referenced by DRA_Initialize().
void DRA_Mangle_All | ( | WN * | func_wn, |
DRA_HASH_TABLE * | dra_table, | ||
struct pu_info * | pu_info | ||
) |
Definition at line 270 of file dra_mangle.cxx.
References CXX_NEW, DRA_func_table, DRA_Mangle_Call_Site(), DRA_Mangle_Entry(), DST_ASSOC_INFO_st_index, DST_ATTR_IDX_TO_PTR, DST_ENTRY_POINT_st, DST_INFO_attributes, DST_INFO_IDX_TO_PTR, DST_INFO_sibling, DST_INFO_tag, DST_IS_NULL, DST_SUBPROGRAM_def_st, DW_TAG_entry_point, MEM_src_pool, NULL, OPC_ALTENTRY, OPR_CALL, OPR_ICALL, PU_Info_pu_dst, ST_index(), WN_ITER_wn, WN_kid_count(), WN_num_formals, WN_opcode(), WN_operator(), WN_st(), WN_WALK_TreeIter(), and WN_WALK_TreeNext().
Referenced by DRA_Processing().
void DRA_Mem_Unmap_File | ( | ) |
Definition at line 233 of file dra_file_util.cxx.
References DRA_file_mmap, and DRA_file_size.
Referenced by DRA_Clone_Initialize().
void DRA_Open_And_Map_File | ( | ) |
Definition at line 118 of file dra_file_util.cxx.
References close, CXX_NEW_ARRAY, DRA_bytes_to_keep, DRA_file_desc, DRA_file_mmap, DRA_file_name, DRA_FILE_SEPARATOR, DRA_file_size, DRA_keep_old_file, DRA_Make_File_Name(), EC_DRA_rii_file_format, EC_DRA_rii_file_io, EC_No_Mem, ErrMsg(), errno, fstat, Malloc_Mem_Pool, NULL, open, Set_Error_Phase(), stat, and unlink.
Referenced by DRA_Initialize().
void DRA_Read_Pragmas | ( | WN * | func_nd, |
DRA_HASH_TABLE * | dra_table | ||
) |
Definition at line 242 of file dra_mangle.cxx.
References block, DRA_Read_Pragmas_In_Block(), Get_Preamble_End(), Set_Error_Phase(), and WN_func_body.
Referenced by DRA_Processing().
void DRA_Set_Write_Location | ( | ) |
Definition at line 203 of file dra_file_util.cxx.
References close, CXX_DELETE_ARRAY, DRA_bytes_to_keep, DRA_file_desc, DRA_file_name, DRA_FILE_SEPARATOR, DRA_keep_old_file, EC_DRA_rii_file_io, ErrMsg(), errno, Malloc_Mem_Pool, open, and write.
Referenced by DRA_Initialize().
ST* Find_Return_Registers | ( | TYPE_ID | type, |
PREG_NUM * | rreg1, | ||
PREG_NUM * | rreg2 | ||
) |
Definition at line 379 of file dra_mangle.cxx.
References Be_Type_Tbl, Fail_FmtAssertion(), Float32_Preg, Float64_Preg, Get_Return_Info(), Get_Return_Mtypes(), Get_Return_Pregs(), Int32_Preg, Int64_Preg, MTYPE_bit_size, NULL, Preg_Offset_Is_Int, RETURN_INFO_count(), RETURN_INFO_preg(), Use_Simulated, and WHIRL_Return_Info_On.
TY_IDX Get_Array_Type | ( | ST * | st | ) |
Definition at line 201 of file dra_clone.cxx.
References Get_Original_Type(), KIND_POINTER, ONST, SCLASS_AUTO, SCLASS_BASED, SCLASS_FORMAL, ST_base(), ST_base_idx(), ST_sclass(), ST_st_idx(), TY_kind(), and TY_pointed().
Referenced by DRA_Insert_Pragmas(), DRA_Mangle_Call_Site(), DRA_Mangle_Entry(), DRA_New_Clone_Sig(), DRA_Preprocess_Call_Site(), DRA_Preprocess_Entry(), DRA_Read_Pragmas_In_Block(), and Find_Insertion_Point().
TY_IDX Get_Original_Type | ( | ST * | st | ) |
Definition at line 165 of file dra_clone.cxx.
References CLASS_VAR, CXX_NEW, dra_global, DRA_GLOBAL_INFO::Get_TY(), GLOBAL_SYMTAB, Malloc_Mem_Pool, ONST, ST_class(), ST_is_reshaped(), ST_level(), and ST_type().
Referenced by DRA_Process_Globals(), and Get_Array_Type().
WN* Get_Preamble_End | ( | WN * | pu_wn | ) |
Definition at line 342 of file dra_mangle.cxx.
References Is_True, NULL, OPC_ALTENTRY, OPC_FUNC_ENTRY, OPC_PRAGMA, wn, WN_entry_first, WN_next(), WN_opcode(), WN_pragma(), and WN_PRAGMA_PREAMBLE_END.
Referenced by DRA_EC_Array_Portion_Parms(), DRA_Read_Pragmas(), and Find_Insertion_Point().
const char DRA_ARG_SEPARATOR = '_' [static] |
Definition at line 424 of file dra_internal.h.
const char DRA_BLOCK_CODE = 'B' [static] |
Definition at line 420 of file dra_internal.h.
const char DRA_CYCLIC_CODE = 'C' [static] |
Definition at line 421 of file dra_internal.h.
const char DRA_ESIZE_END = 'E' [static] |
Definition at line 423 of file dra_internal.h.
Definition at line 72 of file dra_file_util.cxx.
Referenced by DRA_Close_File(), DRA_Open_And_Map_File(), DRA_Process_Commons(), DRA_Process_Globals(), and DRA_Set_Write_Location().
char* DRA_file_mmap |
Definition at line 74 of file dra_file_util.cxx.
Referenced by DRA_Clone_Initialize(), DRA_Mem_Unmap_File(), and DRA_Open_And_Map_File().
char DRA_file_name[] |
Definition at line 76 of file dra_file_util.cxx.
Referenced by DRA_Make_File_Name(), DRA_Open_And_Map_File(), DRA_Process_Requests(), and DRA_Set_Write_Location().
const char* DRA_FILE_SEPARATOR = "----\n" [static] |
Definition at line 429 of file dra_internal.h.
Referenced by DRA_Clone_Initialize(), DRA_Open_And_Map_File(), DRA_Process_Requests(), and DRA_Set_Write_Location().
Definition at line 129 of file dra_clone.cxx.
Referenced by DRA_Add_Clone(), DRA_Clone_Initialize(), DRA_Finalize(), DRA_Mangle_All(), DRA_Mangle_Call_Site(), and DRA_Mangle_Entry().
Definition at line 133 of file dra_clone.cxx.
Referenced by DRA_Finalize(), DRA_Initialize(), and Get_Original_Type().
const char* DRA_MANGLE_SIG = "__nn__" [static] |
Definition at line 416 of file dra_internal.h.
const INT DRA_MANGLE_SIG_LEN = strlen(DRA_MANGLE_SIG) [static] |
Definition at line 417 of file dra_internal.h.
struct mem_pool DRA_name_pool* DRA_name_pool_ptr |
Definition at line 131 of file dra_clone.cxx.
Referenced by New_DRA().
const char DRA_NDIMS_END = 'D' [static] |
Definition at line 422 of file dra_internal.h.
const char DRA_STAR_CODE = 'S' [static] |
Definition at line 419 of file dra_internal.h.