Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <errno.h>
#include <stdio.h>
#include <sys/stat.h>
#include <elf.h>
#include "defs.h"
#include "x_libgen.h"
#include "mempool.h"
#include "wn.h"
#include "wn_simp.h"
#include "stab.h"
#include "const.h"
#include "pu_info.h"
#include "irbdata.h"
#include "ir_reader.h"
#include "ir_bwrite.h"
#include "ir_bread.h"
#include "dwarf_DST_dump.h"
#include "erglob.h"
#include "errors.h"
#include "err_host.tab"
#include "config.h"
#include "config_opt.h"
#include "tracing.h"
#include "profile_com.h"
#include "fb_info.h"
Go to the source code of this file.
Functions | |
BOOL | file_exists (char *path) |
template<class T > | |
void | FB_Print (const T *info, INT size, const char *name) |
static void | Print_Feedback_Info (const Pu_Hdr *pu_hdr) |
static void | ir_b2a_process_PUs (PU_Info *pu_tree, BOOL stflag, BOOL fbflag) |
static void | ir_b2a (char *global_file, char *input_file, char *output_file, BOOL stflag, BOOL fbflag) |
static void | ir_sel (char *input_file, char *output_file, char *func_name) |
static void | usage (char *progname) |
main (INT argc, char *argv[]) | |
void | Signal_Cleanup (INT sig) |
char * | Host_Format_Parm (INT kind, MEM_PTR parm) |
Variables | |
static BOOL | simplify_tree = FALSE |
INT8 | Debug_Level = 0 |
BOOL file_exists | ( | char * | path | ) |
Definition at line 66 of file ir_a2b.cxx.
References errno, FALSE, stat, and TRUE.
Referenced by cgt_fini(), and main().
char* Host_Format_Parm | ( | INT | kind, |
MEM_PTR | parm | ||
) |
Definition at line 422 of file ir_a2b.cxx.
References fprintf().
static void ir_b2a | ( | char * | global_file, |
char * | input_file, | ||
char * | output_file, | ||
BOOL | stflag, | ||
BOOL | fbflag | ||
) | [static] |
Definition at line 182 of file ir_a2b.cxx.
References Dump_DST(), exit(), FALSE, fprintf(), Free_Input_Info(), GLOBAL_SYMTAB, Initialize_Symbol_Tables(), ir_b2a_process_PUs(), IR_Dwarf_Gen_File_Table(), IR_reader_init(), Malloc_Mem_Pool, New_Scope(), NULL, Open_Global_Input(), Open_Input_Info(), Open_Local_Input(), Print_global_symtab(), Read_Global_Info(), and TRUE.
Referenced by main().
static void ir_b2a_process_PUs | ( | PU_Info * | pu_tree, |
BOOL | stflag, | ||
BOOL | fbflag | ||
) | [static] |
Definition at line 135 of file ir_a2b.cxx.
References Free_Local_Info(), IR_put_func(), MEM_POOL_Pop, MEM_POOL_Push, MEM_pu_nz_pool_ptr, MEM_pu_pool_ptr, NULL, Print_Feedback_Info(), Print_local_symtab(), PU_Info_child, PU_Info_feedback_ptr, PU_Info_next, PU_Info_proc_sym, PU_Info_tree_ptr, PU_lexical_level(), Read_Local_Info(), Scope_tab, simplify_tree, St_Table, wn, and WN_Simplify_Tree().
Referenced by ir_b2a().
static void ir_sel | ( | char * | input_file, |
char * | output_file, | ||
char * | func_name | ||
) | [static] |
Definition at line 223 of file ir_a2b.cxx.
References Close_Output_Info(), exit(), FALSE, fprintf(), Free_Input_Info(), Free_Local_Info(), MEM_POOL_Pop, MEM_POOL_Push, MEM_pu_nz_pool_ptr, MEM_pu_pool_ptr, NULL, OPC_FUNC_ENTRY, Open_Input_Info(), Open_Output_Info(), PU_Info_child, PU_Info_next, PU_Info_tree_ptr, Read_Global_Info(), Read_Local_Info(), ST_name(), TRUE, wn, WN_opcode(), WN_st(), Write_Global_Info(), and Write_PU_Info().
Referenced by main().
Definition at line 305 of file ir_a2b.cxx.
References Div_Split_Allowed, Enable_Cfold_Aggressive, Enable_Cfold_Reassociate, ERROR_LINE_UNKNOWN, exit(), FALSE, file_exists(), fprintf(), IEEE_ANY, IEEE_Arithmetic, infile, Init_Error_Handler(), ir_b2a(), IR_dump_line_numbers, IR_dump_map_info, ir_sel(), IR_set_dump_order(), MEM_Initialize(), NULL, outfile, Phases, Read_Global_Data, Recip_Allowed, ROUNDOFF_ANY, Roundoff_Level, Rsqrt_Allowed, Set_Error_File(), Set_Error_Line(), Set_Error_Tables(), Set_Trace(), Set_Verbose_Info(), Simp_Multiply_To_Shift, simplify_tree, strcpy, TP_WHIRLSIMP, TRUE, usage(), ux_basename(), WHIRL_Mldid_Mstid_On, and WN_Simplifier_Enable().
static void Print_Feedback_Info | ( | const Pu_Hdr * | pu_hdr | ) | [static] |
Definition at line 92 of file ir_a2b.cxx.
References FB_Print(), FB_Info_Switch::freq_targets, FB_Info_Switch::Print(), Pu_Hdr::pu_br_offset, Pu_Hdr::pu_call_offset, Pu_Hdr::pu_inv_offset, Pu_Hdr::pu_loop_offset, Pu_Hdr::pu_num_br_entries, Pu_Hdr::pu_num_call_entries, Pu_Hdr::pu_num_inv_entries, Pu_Hdr::pu_num_loop_entries, Pu_Hdr::pu_num_scircuit_entries, Pu_Hdr::pu_num_switch_entries, Pu_Hdr::pu_scircuit_offset, Pu_Hdr::pu_switch_offset, and Pu_Hdr::pu_switch_target_offset.
Referenced by ir_b2a_process_PUs().
void Signal_Cleanup | ( | INT | sig | ) |
Definition at line 419 of file ir_a2b.cxx.
static void usage | ( | char * | progname | ) | [static] |
Definition at line 279 of file ir_a2b.cxx.
References exit(), and fprintf().
Referenced by main().
INT8 Debug_Level = 0 |
Definition at line 428 of file ir_a2b.cxx.
BOOL simplify_tree = FALSE [static] |
Definition at line 63 of file ir_a2b.cxx.
Referenced by ir_b2a_process_PUs(), and main().