Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
Go to the source code of this file.
typedef enum W2C_File_Kind W2C_FILE_KIND |
enum W2C_File_Kind |
Definition at line 251 of file w2c_driver.h.
void W2C_Cleanup | ( | void | ) |
Definition at line 1347 of file w2c_driver.cxx.
References Close_W2c_Output_File(), NULL, unlink, W2C_DOTC_FILE, W2C_DOTH_FILE, W2C_File_Name, and W2C_LOC_FILE.
void W2C_Fini | ( | void | ) |
Definition at line 1029 of file w2c_driver.cxx.
References Check_Initialized(), CONTEXT_reset, End_Locations_File(), FALSE, File_Is_Created, GLOBAL_SYMTAB, MEM_POOL_Delete(), MEM_POOL_Pop, NULL, PUinfo_finalize(), ST2C_finalize(), Stab_finalize_flags(), Stab_Reset_Referenced_Flag(), TCON2C_finalize(), Terminate_Token_Buffer(), TRUE, TY2C_finalize(), W2C_Cplus_Initializer, W2C_Emit_Adims, W2C_Emit_All_Regions, W2C_Emit_Frequency, W2C_Emit_Linedirs, W2C_Emit_Nested_PUs, W2C_Emit_Prefetch, W2C_Enabled, W2C_File, W2C_File_Name, W2C_Initialized, W2C_Line_Length, W2C_LOC_FILE, W2C_Lower_Fortran, W2C_No_Pragmas, W2C_NUM_FILES, W2C_Only_Mark_Loads, W2C_Outfile_Initialized, W2C_Progname, W2C_Verbose, W2CF_Symtab_Terminate(), and WN2C_finalize().
Referenced by Local_Terminate(), and W2C_Outfile_Fini().
const char* W2C_Get_Transformed_Src_Path | ( | void | ) |
Definition at line 817 of file w2c_driver.cxx.
References W2C_DOTC_FILE, and W2C_File_Name.
Referenced by Anl_Init().
void W2C_Init | ( | void | ) |
Definition at line 671 of file w2c_driver.cxx.
References CONTEXT_reset, FALSE, FREE_FORMAT, Get_Error_Phase(), Initialize_Token_Buffer(), MEM_POOL_Initialize, MEM_POOL_Push, PUinfo_initialize(), Set_Error_Phase(), Set_Maximum_Linelength(), ST2C_initialize(), Stab_initialize_flags(), TCON2C_initialize(), TRUE, TY2C_initialize(), W2C_Enter_Global_Symbols(), W2C_Initialized, W2C_Line_Length, W2C_Prompf_Emission, W2CF_Symtab_Push(), and WN2C_initialize().
void W2C_Mark_Loads | ( | void | ) |
Definition at line 788 of file w2c_driver.cxx.
References TRUE, and W2C_Only_Mark_Loads.
void W2C_Nomark_Loads | ( | void | ) |
Definition at line 795 of file w2c_driver.cxx.
References FALSE, and W2C_Only_Mark_Loads.
const char* W2C_Object_Name | ( | const ST * | func_st | ) |
Definition at line 893 of file w2c_driver.cxx.
References W2CF_Symtab_Nameof_St().
Referenced by W2CF_TRANSLATOR::Transformed_Symname_To_String(), WN2C_Append_Purple_Funcinfo(), and WN2C_block().
void W2C_Outfile_Fini | ( | BOOL | emit_global_decls | ) |
Definition at line 1295 of file w2c_driver.cxx.
References Check_Outfile_Initialized(), Close_W2c_Output_File(), Compile_Upc, Continue_Locations_File(), FALSE, Move_Locations_To_Anl_File(), New_Token_Buffer(), NULL, Open_W2c_Output_File(), ST2C_Define_Common_Blocks(), W2C_DOTC_FILE, W2C_DOTH_FILE, W2C_File, W2C_File_Name, W2C_Fini(), W2C_LOC_FILE, W2C_Outfile_Initialized, W2C_Prompf_Emission, WN2C_translate_file_scope_defs(), and Write_And_Reclaim_Tokens().
void W2C_Outfile_Init | ( | BOOL | emit_global_decls | ) |
Definition at line 1112 of file w2c_driver.cxx.
References Begin_New_Locations_File(), buf, Compile_Upc, EC_IR_Open, ErrMsg(), errno, fprintf(), Irb_File_Name, MAX_LINE_LEN, NULL, Open_W2c_Output_File(), TRUE, W2C_DATA_FILE, W2C_DOTC_FILE, W2C_DOTH_FILE, W2C_File, W2C_File_Name, W2C_Init(), W2C_Initialized, W2C_LOC_FILE, W2C_ORIG_FILE, W2C_Outfile_Initialized, W2C_Progname, W2C_Prompf_Emission, W2C_Verbose, WN2C_translate_structured_types(), and Write_String().
void W2C_Outfile_Translate_Pu | ( | WN * | pu, |
BOOL | emit_global_decls | ||
) |
Definition at line 1242 of file w2c_driver.cxx.
References Check_Outfile_Initialized(), Continue_Locations_File(), Get_Error_Phase(), Is_True, LOWER_INTRINSIC, LOWER_IO_STATEMENT, LOWER_MP, LOWER_NULL, New_Token_Buffer(), NULL, OPC_FUNC_ENTRY, Open_W2c_Output_File(), PUinfo_current_func, Set_Error_Phase(), Start_Timer(), Stop_Timer(), T_W2C_CU, W2C_DOTC_FILE, W2C_DOTH_FILE, W2C_Emit_Nested_PUs, W2C_File, W2C_LOC_FILE, W2C_Lower_Fortran, W2C_Pop_PU(), W2C_Push_PU(), W2C_Undo_Whirl_Side_Effects(), WN2C_translate(), WN_func_body, WN_Lower(), WN_opcode(), and Write_And_Reclaim_Tokens().
void W2C_Pop_PU | ( | void | ) |
Definition at line 751 of file w2c_driver.cxx.
References Check_Initialized(), Check_PU_Pushed(), CURRENT_SYMTAB, GLOBAL_SYMTAB, MEM_POOL_Pop, Next_Skip_Item, PUinfo_exit_pu(), Restore_Skips(), Stab_finalize(), TRUE, W2C_Frequency_Map, W2CF_Parent_Map, WN2C_new_symtab(), WN_MAP_Delete, and WN_MAP_UNDEFINED.
void W2C_Process_Command_Line | ( | INT | phase_argc, |
char *const | phase_argv[], | ||
INT | argc, | ||
char *const | argv[] | ||
) |
Definition at line 636 of file w2c_driver.cxx.
References CLIST_dotc_filename, CLIST_doth_filename, CLIST_emit_adims, CLIST_emit_all_regions, CLIST_emit_cgtag, CLIST_emit_frequency, CLIST_emit_linedirs, CLIST_emit_nested_pus, CLIST_emit_omp, CLIST_emit_prefetch, CLIST_enabled, CLIST_line_length, CLIST_loc_filename, CLIST_lower_ftn, CLIST_no_pragmas, CLIST_orig_filename, CLIST_verbose, Irb_File_Name, NULL, Process_Filename_Options(), Src_File_Name, W2C_DOTC_FILE, W2C_DOTH_FILE, W2C_Emit_Adims, W2C_Emit_All_Regions, W2C_Emit_Cgtag, W2C_Emit_Frequency, W2C_Emit_Linedirs, W2C_Emit_Nested_PUs, W2C_Emit_Omp, W2C_Emit_Prefetch, W2C_Enabled, W2C_File_Name, W2C_Line_Length, W2C_LOC_FILE, W2C_Lower_Fortran, W2C_No_Pragmas, W2C_ORIG_FILE, W2C_Progname, and W2C_Verbose.
void W2C_Push_PU | ( | const WN * | pu, |
WN * | body_part_of_interest | ||
) |
Definition at line 719 of file w2c_driver.cxx.
References Check_Initialized(), Is_True, MEM_POOL_Push, Next_Skip_Item, OPC_FUNC_ENTRY, OPR_BLOCK, PUinfo_init_pu(), Remove_Skips(), Stab_initialize(), TRUE, W2C_MAX_SKIP_ITEMS, W2CF_Parent_Map, W2CF_Parentize(), WN_MAP_Create, WN_opc_operator, and WN_opcode().
void W2C_Reset_Purple_Emission | ( | void | ) |
Definition at line 831 of file w2c_driver.cxx.
References FALSE, and W2C_Purple_Emission.
void W2C_Set_Frequency_Map | ( | WN_MAP | frequency_map | ) |
Definition at line 810 of file w2c_driver.cxx.
References W2C_Frequency_Map.
void W2C_Set_Prompf_Emission | ( | const WN_MAP * | construct_map | ) |
Definition at line 802 of file w2c_driver.cxx.
References TRUE, W2C_Construct_Map, and W2C_Prompf_Emission.
void W2C_Set_Purple_Emission | ( | void | ) |
Definition at line 824 of file w2c_driver.cxx.
References TRUE, and W2C_Purple_Emission.
BOOL W2C_Should_Emit_Nested_PUs | ( | void | ) |
Definition at line 628 of file w2c_driver.cxx.
References W2C_Emit_Nested_PUs.
void W2C_Translate_Global_Defs | ( | FILE * | outfile | ) |
Definition at line 877 of file w2c_driver.cxx.
References Check_Initialized(), outfile, W2C_DOTH_FILE, W2C_File, W2C_Undo_Whirl_Side_Effects(), and WN2C_translate_file_scope_defs().
void W2C_Translate_Global_Types | ( | FILE * | outfile | ) |
Definition at line 854 of file w2c_driver.cxx.
References Check_Initialized(), outfile, W2C_DOTH_FILE, W2C_File, W2C_Undo_Whirl_Side_Effects(), and WN2C_translate_structured_types().
void W2C_Translate_Istore_Lhs | ( | char * | strbuf, |
UINT | bufsize, | ||
const WN * | lhs, | ||
mINT64 | istore_ofst, | ||
TY_IDX | istore_addr_ty, | ||
TYPE_ID | istore_mtype | ||
) |
Definition at line 925 of file w2c_driver.cxx.
References INIT_CONTEXT, New_Token_Buffer(), Str_Write_And_Reclaim_Tokens(), Ty_Table, W2C_Undo_Whirl_Side_Effects(), and WN2C_memref_lhs().
void W2C_Translate_Purple_Main | ( | FILE * | outfile, |
const WN * | pu, | ||
const char * | region_name | ||
) |
Definition at line 999 of file w2c_driver.cxx.
References Check_Initialized(), Get_Error_Phase(), INIT_CONTEXT, Is_True, New_Token_Buffer(), OPC_FUNC_ENTRY, Set_Error_Phase(), Start_Timer(), Stop_Timer(), T_W2C_CU, W2C_File, W2C_LOC_FILE, W2C_Pop_PU(), W2C_Push_PU(), W2C_Undo_Whirl_Side_Effects(), WN2C_translate_purple_main(), WN_func_body, WN_opcode(), and Write_And_Reclaim_Tokens().
void W2C_Translate_Stid_Lhs | ( | char * | strbuf, |
UINT | bufsize, | ||
const ST * | stid_st, | ||
mINT64 | stid_ofst, | ||
TY_IDX | stid_ty, | ||
TYPE_ID | stid_mtype | ||
) |
Definition at line 900 of file w2c_driver.cxx.
References INIT_CONTEXT, New_Token_Buffer(), Str_Write_And_Reclaim_Tokens(), W2C_Undo_Whirl_Side_Effects(), and WN2C_stid_lhs().
Referenced by W2CF_TRANSLATOR::Stid_Lhs_To_String().
void W2C_Translate_Wn | ( | FILE * | outfile, |
const WN * | wn | ||
) |
Definition at line 951 of file w2c_driver.cxx.
References Check_Initialized(), Check_PU_Pushed(), Get_Error_Phase(), INIT_CONTEXT, New_Token_Buffer(), Set_Error_Phase(), Start_Timer(), Stop_Timer(), T_W2C_CU, W2C_File, W2C_LOC_FILE, W2C_Undo_Whirl_Side_Effects(), WN2C_translate(), and Write_And_Reclaim_Tokens().
void W2C_Translate_Wn_Str | ( | char * | strbuf, |
UINT | bufsize, | ||
const WN * | wn | ||
) |
Definition at line 975 of file w2c_driver.cxx.
References Check_Initialized(), Check_PU_Pushed(), Get_Error_Phase(), INIT_CONTEXT, New_Token_Buffer(), Set_Error_Phase(), Start_Timer(), Stop_Timer(), Str_Write_And_Reclaim_Tokens(), T_W2C_CU, W2C_Undo_Whirl_Side_Effects(), and WN2C_translate().
Definition at line 171 of file w2c_driver.cxx.
Referenced by W2C_Set_Prompf_Emission(), WN2C_End_Prompf_Construct(), WN2C_Prompf_Construct_End(), WN2C_Prompf_Construct_Start(), and WN2C_Start_Prompf_Construct().
Definition at line 173 of file w2c_driver.cxx.
Referenced by W2C_Enter_Global_Symbols(), W2C_Fini(), and WN2C_block().
Definition at line 156 of file w2c_driver.cxx.
Referenced by W2C_Fini(), W2C_Process_Command_Line(), and WN2C_Normalize_Idx_To_Onedim().
Definition at line 158 of file w2c_driver.cxx.
Referenced by W2C_Fini(), W2C_Process_Command_Line(), and WN2C_region().
Definition at line 162 of file w2c_driver.cxx.
Referenced by W2C_Process_Command_Line(), and WN2C_do_loop().
Definition at line 161 of file w2c_driver.cxx.
Referenced by W2C_Fini(), W2C_Process_Command_Line(), and WN2C_Translate_Stmt_Sequence().
Definition at line 159 of file w2c_driver.cxx.
Referenced by W2C_Fini(), W2C_Process_Command_Line(), and WN2C_Stmt_Newline().
Definition at line 157 of file w2c_driver.cxx.
Referenced by W2C_Fini(), W2C_Process_Command_Line(), WN2C_iload(), WN2C_istore(), and WN2C_Skip_Stmt().
FILE* W2C_File[W2C_NUM_FILES] |
Definition at line 152 of file w2c_driver.cxx.
Referenced by Begin_New_Locations_File(), Close_W2c_Output_File(), End_Locations_File(), Open_W2c_Output_File(), TY2C_Output_Struct_Type(), TY2C_Translate_Structure(), W2C_def_TY(), W2C_Fini(), W2C_Outfile_Fini(), W2C_Outfile_Init(), W2C_Outfile_Translate_Pu(), W2C_Translate_Global_Defs(), W2C_Translate_Global_Types(), W2C_Translate_Purple_Main(), W2C_Translate_Wn(), WN2C_Append_Symtab_Consts(), WN2C_Append_Symtab_Types(), WN2C_Append_Symtab_Vars(), WN2C_Stmt_Newline(), WN2C_translate_file_scope_defs(), and WN2C_translate_structured_types().
Definition at line 172 of file w2c_driver.cxx.
Referenced by W2C_Pop_PU(), W2C_Set_Frequency_Map(), and WN2C_Translate_Stmt_Sequence().
Definition at line 163 of file w2c_driver.cxx.
Referenced by W2C_Fini(), W2C_Outfile_Translate_Pu(), and W2C_Process_Command_Line().
Definition at line 155 of file w2c_driver.cxx.
Referenced by W2C_Fini(), W2C_Process_Command_Line(), WN2C_func_entry(), WN2C_region(), and WN2C_Skip_Stmt().
Definition at line 168 of file w2c_driver.cxx.
Referenced by W2C_Fini(), W2C_Mark_Loads(), W2C_Nomark_Loads(), WN2C_iload(), WN2C_ldid(), and WN2C_mload().
Definition at line 170 of file w2c_driver.cxx.
Referenced by Begin_New_Locations_File(), End_Locations_File(), Process_Filename_Options(), W2C_Init(), W2C_Outfile_Fini(), W2C_Outfile_Init(), W2C_Set_Prompf_Emission(), WN2C_do_loop(), WN2C_do_while(), WN2C_func_entry(), WN2C_process_pragma(), WN2C_region(), and WN2C_while_do().
Definition at line 169 of file w2c_driver.cxx.
Referenced by W2C_Reset_Purple_Emission(), W2C_Set_Purple_Emission(), WN2C_block(), and WN2C_pragma().
Definition at line 154 of file w2c_driver.cxx.
Referenced by W2C_Fini(), W2C_Outfile_Init(), and W2C_Process_Command_Line().
Definition at line 161 of file w2f_driver.cxx.
Referenced by W2F_Process_Command_Line(), and WN2F_is_omp().