Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
Go to the source code of this file.
#define W2F_ACTIVE_TYPE_LEN 28 |
Definition at line 226 of file w2f_driver.h.
Referenced by Process_Command_Line().
typedef map<TY_IDX, ST_IDX> TyIdxToStIdxMap |
Definition at line 296 of file w2f_driver.h.
typedef enum W2F_File_Kind W2F_FILE_KIND |
enum W2F_File_Kind |
Definition at line 233 of file w2f_driver.h.
void W2F_Cleanup | ( | void | ) |
Definition at line 1473 of file w2f_driver.cxx.
References Close_W2f_Output_File(), NULL, unlink, W2F_File_Name, W2F_FTN_FILE, and W2F_LOC_FILE.
void W2F_Def_ST | ( | FILE * | outfile, |
ST * | st | ||
) |
void W2F_Fini | ( | void | ) |
Definition at line 1110 of file w2f_driver.cxx.
References Check_Initialized(), Diag_Exit(), End_Locations_File(), F77_ANSI_FORMAT, FALSE, File_Is_Created, MEM_POOL_Delete(), MEM_POOL_Pop, NULL, PUinfo_finalize(), reset_WN2F_CONTEXT, ST2F_finalize(), Stab_finalize_flags(), Terminate_Token_Buffer(), TRUE, W2CF_Symtab_Terminate(), W2F_Ansi_Format, W2F_Emit_All_Regions, W2F_Emit_Frequency, W2F_Emit_Linedirs, W2F_Emit_Nested_PUs, W2F_Emit_Prefetch, W2F_Enabled, W2F_File, W2F_File_Name, W2F_Format_Kind, W2F_Initialized, W2F_Line_Length, W2F_LOC_FILE, W2F_No_Pragmas, W2F_NUM_FILES, W2F_Old_F77, W2F_Only_Mark_Loads, W2F_Outfile_Initialized, W2F_Progname, W2F_Verbose, and WN2F_finalize().
Referenced by Local_Terminate(), and W2F_Outfile_Fini().
const char* W2F_Get_Transformed_Src_Path | ( | void | ) |
Definition at line 923 of file w2f_driver.cxx.
References W2F_File_Name, and W2F_FTN_FILE.
Referenced by Anl_Init().
void W2F_Init | ( | void | ) |
Definition at line 774 of file w2f_driver.cxx.
References Diag_Init(), Diag_Set_Max_Diags(), Diag_Set_Phase(), FALSE, Get_Error_Phase(), Initialize_Token_Buffer(), MEM_POOL_Initialize, MEM_POOL_Push, NULL, PUinfo_initialize(), reset_WN2F_CONTEXT, Set_Maximum_Linelength(), ST2F_initialize(), Stab_initialize_flags(), TRUE, W2CF_Symtab_Push(), W2F_Enter_Global_Symbols(), W2F_Format_Kind, W2F_Initialized, W2F_Line_Length, W2F_Progname, W2F_Prompf_Emission, and WN2F_initialize().
void W2F_Mark_Loads | ( | void | ) |
Definition at line 894 of file w2f_driver.cxx.
References TRUE, and W2F_Only_Mark_Loads.
void W2F_Nomark_Loads | ( | void | ) |
Definition at line 901 of file w2f_driver.cxx.
References FALSE, and W2F_Only_Mark_Loads.
const char* W2F_Object_Name | ( | ST * | func_st | ) |
Definition at line 959 of file w2f_driver.cxx.
References W2CF_Symtab_Nameof_St().
Referenced by W2CF_TRANSLATOR::Transformed_Symname_To_String(), WN2F_Append_Purple_Funcinfo(), WN2F_Append_Purple_Xsym(), and WN2F_Exit_PU_Block().
void W2F_Outfile_Fini | ( | void | ) |
Definition at line 1430 of file w2f_driver.cxx.
References Check_Outfile_Initialized(), Clear_w2fc_flags(), Close_W2f_Output_File(), FALSE, Move_Locations_To_Anl_File(), New_Token_Buffer(), NULL, W2F_File, W2F_File_Name, W2F_Fini(), W2F_FTN_FILE, W2F_LOC_FILE, W2F_Outfile_Initialized, W2F_Prompf_Emission, WN2F_Append_Block_Data(), WN2F_Emit_End_Stmt(), and Write_And_Reclaim_Tokens().
void W2F_Outfile_Init | ( | void | ) |
Definition at line 1192 of file w2f_driver.cxx.
References Begin_New_Locations_File(), fprintf(), Irb_File_Name, NULL, Open_W2f_Output_File(), TRUE, W2F_File, W2F_File_Name, W2F_FTN_FILE, W2F_Init(), W2F_Initialized, W2F_LOC_FILE, W2F_Old_F77, W2F_OpenAD, W2F_ORIG_FILE, W2F_Outfile_Initialized, W2F_Progname, W2F_Prompf_Emission, W2F_Verbose, and Write_String().
void W2F_Outfile_Translate_Pu | ( | WN * | pu | ) |
Definition at line 1315 of file w2f_driver.cxx.
References Append_F77_Directive_Newline(), Append_ST_String(), Append_Token_Special(), Check_Outfile_Initialized(), Continue_Locations_File(), Decrement_Indentation(), Diag_Set_Phase(), FALSE, filePragma, Get_Error_Phase(), Increment_Indentation(), Is_True, KIND_STRUCT, LOWER_MP, LOWER_NULL, New_Token_Buffer(), NULL, OPC_FUNC_ENTRY, Open_W2f_Output_File(), OPR_PRAGMA, PU_f90_lang(), PU_is_nested_func(), Pu_Table, PUinfo_current_func, PUINFO_FUNC_ST, Set_TY_is_translated_to_c(), ST_pu(), Start_Timer(), Stop_Timer(), T_W2F_CU, Targ_Print(), TRUE, TY_kind(), TY_Table_Size(), W2F_Emit_Nested_PUs, W2F_File, W2F_FTN_FILE, W2F_LOC_FILE, W2F_OpenAD, W2F_Pop_PU(), W2F_Progname, W2F_Push_PU(), W2F_Undo_Whirl_Side_Effects(), WN2F_Emit_End_Stmt(), WN2F_F90_pu, WN2F_translate(), WN_func_body, WN_has_sym, WN_Lower(), WN_opcode(), WN_operator(), WN_pragma(), WN_PRAGMA_OPENAD_XXX, WN_val(), and Write_And_Reclaim_Tokens().
void W2F_Pop_PU | ( | void | ) |
Definition at line 867 of file w2f_driver.cxx.
References Check_Initialized(), Check_PU_Pushed(), FALSE, MEM_POOL_Pop, Next_Skip_Item, PUinfo_exit_pu(), Restore_Skips(), Stab_finalize(), W2CF_Parent_Map, W2F_Frequency_Map, WN_MAP_Delete, and WN_MAP_UNDEFINED.
void W2F_Process_Command_Line | ( | INT | phase_argc, |
char * | phase_argv[], | ||
INT | argc, | ||
char * | argv[] | ||
) |
Definition at line 732 of file w2f_driver.cxx.
References F77_ANSI_FORMAT, FLIST_ansi_format, FLIST_emit_all_regions, FLIST_emit_cgtag, FLIST_emit_frequency, FLIST_emit_linedirs, FLIST_emit_omp, FLIST_emit_pcf, FLIST_emit_prefetch, FLIST_enabled, FLIST_ftn_filename, FLIST_line_length, FLIST_loc_filename, FLIST_no_pragmas, FLIST_old_f77, FLIST_orig_filename, FLIST_verbose, Irb_File_Name, NULL, Process_Command_Line(), Process_Filename_Options(), Src_File_Name, TRUE, W2F_Ansi_Format, W2F_Emit_All_Regions, W2F_Emit_Cgtag, W2F_Emit_Frequency, W2F_Emit_Linedirs, W2F_Emit_Nested_PUs, W2F_Emit_Omp, W2F_Emit_Pcf, W2F_Emit_Prefetch, W2F_Enabled, W2F_File_Name, W2F_Format_Kind, W2F_FTN_FILE, W2F_Line_Length, W2F_LOC_FILE, W2F_No_Pragmas, W2F_Old_F77, W2F_ORIG_FILE, W2F_Progname, and W2F_Verbose.
void W2F_Push_PU | ( | WN * | pu, |
WN * | body_part_of_interest | ||
) |
Definition at line 830 of file w2f_driver.cxx.
References Check_Initialized(), Clear_w2fc_flags(), FALSE, Is_True, MEM_POOL_Push, Next_Skip_Item, OPC_FUNC_ENTRY, OPR_BLOCK, PUinfo_init_pu(), Remove_Skips(), Stab_initialize(), W2CF_Parent_Map, W2CF_Parentize(), W2F_MAX_SKIP_ITEMS, WN_MAP_Create, WN_opc_operator, and WN_opcode().
void W2F_Reset_Purple_Emission | ( | void | ) |
Definition at line 937 of file w2f_driver.cxx.
References FALSE, and W2F_Purple_Emission.
void W2F_Set_Frequency_Map | ( | WN_MAP | frequency_map | ) |
Definition at line 916 of file w2f_driver.cxx.
References W2F_Frequency_Map.
void W2F_Set_Prompf_Emission | ( | WN_MAP * | construct_map | ) |
Definition at line 908 of file w2f_driver.cxx.
References TRUE, W2F_Construct_Map, and W2F_Prompf_Emission.
void W2F_Set_Purple_Emission | ( | void | ) |
Definition at line 930 of file w2f_driver.cxx.
References TRUE, and W2F_Purple_Emission.
BOOL W2F_Should_Emit_Nested_PUs | ( | void | ) |
Definition at line 725 of file w2f_driver.cxx.
References W2F_Emit_Nested_PUs.
void W2F_Translate_Istore_Lhs | ( | char * | strbuf, |
UINT | bufsize, | ||
WN * | lhs, | ||
mINT64 | istore_ofst, | ||
TY_IDX | istore_addr_ty, | ||
TYPE_ID | istore_mtype | ||
) |
Definition at line 996 of file w2f_driver.cxx.
References INIT_WN2F_CONTEXT, New_Token_Buffer(), Str_Write_And_Reclaim_Tokens(), TY_Is_Pointer(), TY_pointed(), W2F_Undo_Whirl_Side_Effects(), WN2F_Offset_Memref(), and WN_Tree_Type().
void W2F_Translate_Purple_Main | ( | FILE * | outfile, |
WN * | pu, | ||
const char * | region_name | ||
) |
Definition at line 1080 of file w2f_driver.cxx.
References Check_Initialized(), Get_Error_Phase(), INIT_WN2F_CONTEXT, Is_True, New_Token_Buffer(), OPC_FUNC_ENTRY, Set_Error_Phase(), Start_Timer(), Stop_Timer(), T_W2F_CU, W2F_File, W2F_LOC_FILE, W2F_Pop_PU(), W2F_Push_PU(), W2F_Undo_Whirl_Side_Effects(), WN2F_translate_purple_main(), WN_func_body, WN_opcode(), and Write_And_Reclaim_Tokens().
void W2F_Translate_Stid_Lhs | ( | char * | strbuf, |
UINT | bufsize, | ||
ST * | stid_st, | ||
mINT64 | stid_ofst, | ||
TY_IDX | stid_ty, | ||
TYPE_ID | stid_mtype | ||
) |
Definition at line 966 of file w2f_driver.cxx.
References CLASS_PREG, INIT_WN2F_CONTEXT, New_Token_Buffer(), ST2F_Use_Preg(), ST_class(), ST_type(), Stab_Pointer_To(), Str_Write_And_Reclaim_Tokens(), W2F_Undo_Whirl_Side_Effects(), and WN2F_Offset_Symref().
Referenced by W2CF_TRANSLATOR::Stid_Lhs_To_String().
void W2F_Translate_Wn | ( | FILE * | outfile, |
WN * | wn | ||
) |
Definition at line 1026 of file w2f_driver.cxx.
References Check_Initialized(), Check_PU_Pushed(), Diag_Set_Phase(), Get_Error_Phase(), INIT_WN2F_CONTEXT, New_Token_Buffer(), NULL, Start_Timer(), Stop_Timer(), T_W2F_CU, W2F_File, W2F_LOC_FILE, W2F_Progname, W2F_Undo_Whirl_Side_Effects(), WN2F_translate(), and Write_And_Reclaim_Tokens().
void W2F_Translate_Wn_Str | ( | char * | strbuf, |
UINT | bufsize, | ||
WN * | wn | ||
) |
Definition at line 1053 of file w2f_driver.cxx.
References Check_Initialized(), Check_PU_Pushed(), Diag_Set_Phase(), Get_Error_Phase(), INIT_WN2F_CONTEXT, New_Token_Buffer(), NULL, Start_Timer(), Stop_Timer(), Str_Write_And_Reclaim_Tokens(), T_W2F_CU, W2F_Progname, W2F_Undo_Whirl_Side_Effects(), and WN2F_translate().
Definition at line 176 of file w2f_driver.cxx.
Referenced by build_type_mod_map::operator()(), and WN2F_interface_blk().
Definition at line 165 of file w2f_driver.cxx.
Referenced by Process_Command_Line(), and TY2F_scalar().
Definition at line 151 of file w2f_driver.cxx.
Referenced by W2F_Fini(), W2F_Process_Command_Line(), WN2F_ashr(), WN2F_ceil(), and WN2F_floor().
Definition at line 154 of file w2f_driver.cxx.
Referenced by W2F_Fini(), and W2F_Process_Command_Line().
Definition at line 158 of file w2f_driver.cxx.
Referenced by W2F_Fini(), W2F_Process_Command_Line(), and WN2F_block().
Definition at line 155 of file w2f_driver.cxx.
Referenced by W2F_Fini(), W2F_Process_Command_Line(), and WN2F_Stmt_Newline().
Definition at line 161 of file w2f_driver.cxx.
Definition at line 160 of file w2f_driver.cxx.
Referenced by W2F_Process_Command_Line().
Definition at line 153 of file w2f_driver.cxx.
Referenced by W2F_Fini(), W2F_Process_Command_Line(), WN2F_iload(), WN2F_istore(), WN2F_pstore(), and WN2F_Skip_Stmt().
FILE* W2F_File[W2F_NUM_FILES] |
Definition at line 147 of file w2f_driver.cxx.
Referenced by Begin_New_Locations_File(), Close_W2f_Output_File(), End_Locations_File(), Open_W2f_Output_File(), write_st::operator()(), W2F_def_ST(), W2F_Fini(), W2F_Outfile_Fini(), W2F_Outfile_Init(), W2F_Outfile_Translate_Pu(), W2F_Translate_Purple_Main(), W2F_Translate_Wn(), WN2F_Append_Symtab_Consts(), WN2F_Directive_Newline(), and WN2F_Stmt_Newline().
Definition at line 152 of file w2f_driver.cxx.
Referenced by W2F_Fini(), W2F_Process_Command_Line(), WN2F_func_entry(), and WN2F_Skip_Stmt().
Definition at line 150 of file w2f_driver.cxx.
Referenced by W2F_Fini(), W2F_Outfile_Init(), and W2F_Process_Command_Line().
Definition at line 164 of file w2f_driver.cxx.
Definition at line 170 of file w2f_driver.cxx.
Referenced by W2F_Reset_Purple_Emission(), W2F_Set_Purple_Emission(), WN2F_Exit_PU_Block(), and WN2F_pragma().
Definition at line 149 of file w2f_driver.cxx.
Referenced by W2F_Fini(), W2F_Outfile_Init(), and W2F_Process_Command_Line().