#include "defs.h"

Go to the source code of this file.
Defines | |
| #define | Is_Trace(Cond, Parmlist) { if (Cond) fprintf Parmlist ; } |
| #define | Is_Trace_cmd(Cond, Cmd) { if (Cond) Cmd ; } |
| #define | TKIND_INFO -1 |
| #define | TKIND_DEBUG -2 |
| #define | TKIND_IR -3 |
| #define | TKIND_SYMTAB -4 |
| #define | TKIND_TN -5 |
| #define | TKIND_BB -6 |
| #define | TKIND_XPHASE -7 |
| #define | TKIND_CTRL -8 |
| #define | TKIND_ALLOC -9 |
| #define | TKIND_MIN -10 |
| #define | TINFO_TIME 1 |
| #define | TINFO_CTIME 2 |
| #define | TINFO_STATS 8 |
| #define | TINFO_SOURCE 32 |
| #define | TINFO_TFLAGS 64 |
| #define | TINFO_PREFIXDUMP 128 |
| #define | TP_MIN 1 |
| #define | TP_PTRACE1 1 |
| #define | TP_PTRACE2 2 |
| #define | TP_MISC 3 |
| #define | TP_SEMANTICS 8 |
| #define | TP_IRB 10 |
| #define | TP_IR_READ 11 |
| #define | TP_WHIRL2FC 12 |
| #define | TP_WHIRLSIMP 13 |
| #define | TP_REGION 14 |
| #define | TP_ORI 15 |
| #define | TP_FEEDBACK 16 |
| #define | TP_INLINE 17 |
| #define | TP_IPL 18 |
| #define | TP_IPA 19 |
| #define | TP_IPO 20 |
| #define | TP_IPM 21 |
| #define | TP_ALIAS 24 |
| #define | TP_WOPT1 25 |
| #define | TP_WOPT2 26 |
| #define | TP_WOPT3 27 |
| #define | TP_GLOBOPT TP_WOPT1 |
| #define | TP_VECDD 30 |
| #define | TP_LNOPT 31 |
| #define | TP_LNOPT2 32 |
| #define | TP_LNOPT3 33 |
| #define | TP_VHO_LOWER 36 |
| #define | TP_LOWER 37 |
| #define | TP_LOWER90 38 |
| #define | TP_DATALAYOUT 39 |
| #define | TP_CG 40 |
| #define | TP_CGEXP 41 |
| #define | TP_LOCALIZE 42 |
| #define | TP_FIND_GLOB 43 |
| #define | TP_EBO 44 |
| #define | TP_CGPREP 45 |
| #define | TP_FLOWOPT 47 |
| #define | TP_GCM 48 |
| #define | TP_CGLOOP 49 |
| #define | TP_SWPIPE 50 |
| #define | TP_SRA 51 |
| #define | TP_SCHED 52 |
| #define | TP_GRA 53 |
| #define | TP_ALLOC 54 |
| #define | TP_PSGCM 55 |
| #define | TP_EMIT 56 |
| #define | TP_HBF 57 |
| #define | TP_PQS 58 |
| #define | TP_THR 59 |
| #define | TP_TEMP 60 |
| #define | TP_LAST 60 |
| #define | TP_COUNT 61 |
| #define | TP_PTRACE1_ALL 0x001 |
| #define | TP_PTRACE1_INL 0x002 |
| #define | TP_PTRACE1_IPA 0x004 |
| #define | TP_PTRACE1_LNO 0x008 |
| #define | TP_PTRACE1_OPT 0x010 |
| #define | TP_PTRACE1_CG 0x020 |
| #define | TP_PTRACE1_IPALNO 0x040 |
| #define | TP_PTRACE1_IPA_CPROP 0x080 |
| #define | TP_PTRACE1_CALLINFO 0x100 |
| #define | TP_PTRACE1_PARALLEL 0x200 |
| #define | TP_PTRACE1_NOHDR 0x400 |
| #define | TFile Get_Trace_File() |
Functions | |
| INT32 | Get_Trace_Phase_Number (char **cp, char *arg) |
| void | List_Phase_Numbers (void) |
| void | Set_Trace (INT func, INT arg) |
| void | Set_Trace_Pu (char *name) |
| void | Set_Trace_Pu_Number (INT number) |
| void | Set_Current_PU_For_Trace (char *name, INT number) |
| void | Set_Trace_Region_Number (INT number) |
| void | Set_Current_Region_For_Trace (INT number) |
| BOOL | Get_Trace (INT func, INT arg) |
| BOOL | Get_BB_Trace (INT bb_id) |
| BOOL | Stop_Execution (INT phase) |
| FILE * | Get_Trace_File (void) |
| void | Set_Trace_File (char *filename) |
| void | Set_Trace_File_internal (FILE *) |
| void | Nest_Indent (FILE *file) |
| INT | Get_Current_Phase_Number (void) |
| void | Set_Current_Phase_Number (INT) |
Variables | |
| char * | SBar |
| char * | DBar |
| char * | Sharps |
| #define Is_Trace | ( | Cond, | ||
| Parmlist | ||||
| ) | { if (Cond) fprintf Parmlist ; } |
Definition at line 78 of file tracing.h.
Referenced by ID_MAP< NODE_TYPE, KEY_TYPE >::Add_to_free_list(), ID_MAP< NODE_TYPE, KEY_TYPE >::Alloc_from_free_list(), ID_MAP< NODE_TYPE, KEY_TYPE >::Alloc_table_space(), Do_WOPT_and_CG_with_Regions(), ID_MAP< NODE_TYPE, KEY_TYPE >::Enlarge(), ID_MAP< NODE_TYPE, KEY_TYPE >::Insert(), OPTIONS_STACK::OPTIONS_STACK(), OPTIONS_STACK::Pop_Current_Options(), OPTIONS_STACK::Process_Pragma_Options(), OPTIONS_STACK::Push_Current_Options(), ID_MAP< NODE_TYPE, KEY_TYPE >::Remove_from_free_list(), Save_or_restore_options(), and ID_MAP< NODE_TYPE, KEY_TYPE >::~ID_MAP().
| #define Is_Trace_cmd | ( | Cond, | ||
| Cmd | ||||
| ) | { if (Cond) Cmd ; } |
Definition at line 79 of file tracing.h.
Referenced by ID_MAP< NODE_TYPE, KEY_TYPE >::Enlarge().
| #define TFile Get_Trace_File() |
Definition at line 322 of file tracing.h.
Referenced by CFG_NODE_INFO::Add_array_param(), LOOPINFO::Add_bound(), CFG_NODE_INFO::Add_def_array(), CFG_NODE_INFO::Add_may_def_array(), Add_Object_To_Frame_Segment(), RAIL::Add_region_around_loop(), ID_MAP< NODE_TYPE, KEY_TYPE >::Add_to_free_list(), Adjust_Opt_Level(), ID_MAP< NODE_TYPE, KEY_TYPE >::Alloc_from_free_list(), ID_MAP< NODE_TYPE, KEY_TYPE >::Alloc_table_space(), Allocate_Block(), Allocate_Space(), Assign_Object_To_Frame_Segment(), Assign_Object_To_Section(), Build_Skiplist(), Calc_Actual_Area(), Calc_Local_Area(), Calculate_Stack_Frame_Sizes(), ID_MAP< NODE_TYPE, KEY_TYPE >::Check(), Check_for_IR_Dump(), PROJECTED_REGION::Compare(), Configure_Source(), cwh_stats_print(), cwh_stats_print_details(), Do_WOPT_and_CG_with_Regions(), Em_Dwarf_Symbolic_Relocs_To_Elf(), ID_MAP< NODE_TYPE, KEY_TYPE >::Enlarge(), Finalize_Stack_Frame(), Formal_Sym(), Hash_TCON(), Init_Controls_Tbl(), Initialize_Stack_Frame(), ID_MAP< NODE_TYPE, KEY_TYPE >::Insert(), Ipl_Processing(), LNO_Processing(), main(), MEM_POOL_Pop_P(), MEM_POOL_Report(), MEM_Trace(), OPTIONS_STACK::OPTIONS_STACK(), PDGCS_do_proc(), PDGCS_initialize(), PDGCS_terminate(), OPTIONS_STACK::Pop_Current_Options(), Post_Process_Backend(), Preprocess_PU(), LINEX::Print(), Print_INITO(), Print_INITV(), Print_PU_Stats(), Print_Total_Stats(), RAIL::Process_block(), RAIL::Process_func_entry(), OPTIONS_STACK::Process_Pragma_Options(), PROJECTED_KERNEL::Project(), OPTIONS_STACK::Push_Current_Options(), Rail(), ID_MAP< NODE_TYPE, KEY_TYPE >::Remove_from_free_list(), RESHAPE::RESHAPE(), RESHAPE::Reshape_Callee_To_Caller(), RESHAPE::Reshape_Constant_Shape(), RESHAPE::Reshape_Passed_Section(), RESHAPE::Reshapeable_Passed_Section(), Restore_Cmd_Line_Ctrls(), Restore_Routine_Top_Ctrls(), Save_or_restore_options(), Save_Routine_Top_Ctrls(), Set_Error_Phase(), PROJECTED_NODE::Set_linex_eq(), PROJECTED_NODE::Set_linex_le(), PROJECTED_REGION::Set_region(), sgi_cmd_line(), Shorten_Section(), St_Block_Union(), OPTIONS_STACK::str2argv(), Trace_Memory_Allocation(), Trace_Stack_Segments(), WOPT_Processing(), and ID_MAP< NODE_TYPE, KEY_TYPE >::~ID_MAP().
| #define TINFO_CTIME 2 |
Definition at line 148 of file tracing.h.
Referenced by Finish_BE_Timing(), Prepare_Source(), and Report_CG_Region_Timing().
| #define TINFO_PREFIXDUMP 128 |
Definition at line 152 of file tracing.h.
Referenced by Configure().
| #define TINFO_SOURCE 32 |
Definition at line 150 of file tracing.h.
Referenced by Gen_File_Table().
| #define TINFO_STATS 8 |
Definition at line 149 of file tracing.h.
Referenced by Adjust_Opt_Level(), PDGCS_do_proc(), PDGCS_initialize(), Print_PU_Stats(), and Print_Total_Stats().
| #define TINFO_TFLAGS 64 |
Definition at line 151 of file tracing.h.
Referenced by Process_Command_Line().
| #define TINFO_TIME 1 |
Definition at line 147 of file tracing.h.
Referenced by Prepare_Source().
| #define TKIND_ALLOC -9 |
Definition at line 143 of file tracing.h.
Referenced by Get_Trace(), Ipl_Processing(), main(), Process_Trace_Option(), Set_Trace(), and Trace_Memory_Allocation().
| #define TKIND_BB -6 |
Definition at line 140 of file tracing.h.
Referenced by Get_Trace(), Process_Trace_Option(), and Set_Trace().
| #define TKIND_CTRL -8 |
Definition at line 142 of file tracing.h.
Referenced by Get_Trace(), Process_Trace_Option(), and Set_Trace().
| #define TKIND_DEBUG -2 |
Definition at line 136 of file tracing.h.
Referenced by Get_Trace(), Process_Trace_Option(), and Set_Trace().
| #define TKIND_INFO -1 |
Definition at line 135 of file tracing.h.
Referenced by Adjust_Opt_Level(), Configure(), Finish_BE_Timing(), Gen_File_Table(), Get_Trace(), Prepare_Source(), Print_PU_Stats(), Print_Total_Stats(), Process_Command_Line(), Process_Trace_Option(), Report_CG_Region_Timing(), and Set_Trace().
| #define TKIND_IR -3 |
Definition at line 137 of file tracing.h.
Referenced by Check_for_IR_Dump(), Get_Trace(), PDGCS_do_proc(), PDGCS_initialize(), Process_Trace_Option(), and Set_Trace().
| #define TKIND_MIN -10 |
Definition at line 144 of file tracing.h.
Referenced by Set_Trace().
| #define TKIND_SYMTAB -4 |
Definition at line 138 of file tracing.h.
Referenced by Check_for_IR_Dump(), Get_Trace(), PDGCS_do_proc(), PDGCS_initialize(), PDGCS_terminate(), Process_Trace_Option(), and Set_Trace().
| #define TKIND_TN -5 |
Definition at line 139 of file tracing.h.
Referenced by Get_Trace(), Process_Trace_Option(), and Set_Trace().
| #define TKIND_XPHASE -7 |
Definition at line 141 of file tracing.h.
Referenced by Get_Trace(), Process_Trace_Option(), and Set_Trace().
| #define TP_ALIAS 24 |
Definition at line 186 of file tracing.h.
Referenced by Set_Error_Phase().
| #define TP_CGEXP 41 |
Definition at line 205 of file tracing.h.
Referenced by Set_Error_Phase().
| #define TP_COUNT 61 |
Definition at line 230 of file tracing.h.
Referenced by Get_Trace_Phase_Number(), and List_Phase_Numbers().
| #define TP_DATALAYOUT 39 |
Definition at line 203 of file tracing.h.
Referenced by Allocate_File_Statics(), Initialize_Stack_Frame(), and St_Block_Union().
| #define TP_EMIT 56 |
Definition at line 219 of file tracing.h.
Referenced by Set_Error_Phase().
| #define TP_FIND_GLOB 43 |
Definition at line 207 of file tracing.h.
Referenced by Set_Error_Phase().
| #define TP_FLOWOPT 47 |
Definition at line 210 of file tracing.h.
Referenced by Configure_Source(), and Set_Error_Phase().
| #define TP_GCM 48 |
Definition at line 211 of file tracing.h.
Referenced by Set_Error_Phase().
| #define TP_GLOBOPT TP_WOPT1 |
Definition at line 190 of file tracing.h.
Referenced by Configure_Source(), LNO_Processing(), Set_Error_Phase(), and WOPT_Processing().
| #define TP_GRA 53 |
Definition at line 216 of file tracing.h.
Referenced by Set_Error_Phase().
| #define TP_HBF 57 |
Definition at line 220 of file tracing.h.
Referenced by Set_Error_Phase().
| #define TP_IPA 19 |
Definition at line 181 of file tracing.h.
Referenced by IPL_EX_Simplify(), IPL_EXS_Eliminate_Duplicate_Exprs(), IPL_EXS_Eliminate_Duplicate_Values(), IPL_EXS_Eliminate_Expr_Identities(), IPL_EXS_Inner_Fold(), IPL_EXS_Outer_Fold(), IPL_EXS_Reassociate(), IPL_EXS_Sort_Exprs(), IPL_EXS_Useless(), and Ipl_Processing().
| #define TP_IPL 18 |
Definition at line 180 of file tracing.h.
Referenced by IPL_EX_Simplify(), IPL_EXS_Eliminate_Duplicate_Exprs(), IPL_EXS_Eliminate_Duplicate_Values(), IPL_EXS_Eliminate_Expr_Identities(), IPL_EXS_Inner_Fold(), IPL_EXS_Outer_Fold(), IPL_EXS_Reassociate(), IPL_EXS_Sort_Exprs(), and IPL_EXS_Useless().
| #define TP_IR_READ 11 |
Definition at line 171 of file tracing.h.
Referenced by Preprocess_PU(), and Set_Error_Phase().
| #define TP_IRB 10 |
Definition at line 168 of file tracing.h.
Referenced by PDGCS_do_proc(), PDGCS_initialize(), PDGCS_terminate(), and sgi_cmd_line().
| #define TP_LAST 60 |
Definition at line 229 of file tracing.h.
Referenced by Get_Trace_Phase_Number(), and Set_Trace().
| #define TP_LNOPT 31 |
Definition at line 194 of file tracing.h.
Referenced by LNO_Configure(), and LNO_Processing().
| #define TP_MIN 1 |
Definition at line 158 of file tracing.h.
Referenced by Get_Trace_Phase_Number(), and Set_Trace().
| #define TP_MISC 3 |
Definition at line 164 of file tracing.h.
Referenced by Build_Skiplist(), Configure(), Configure_Source(), Hash_TCON(), Init_Controls_Tbl(), main(), OPTIONS_STACK::OPTIONS_STACK(), Restore_Cmd_Line_Ctrls(), Restore_Routine_Top_Ctrls(), Save_or_restore_options(), Save_Routine_Top_Ctrls(), and Set_Error_Phase().
| #define TP_PTRACE1 1 |
Definition at line 162 of file tracing.h.
Referenced by Print_Tlog_Header(), and Process_Command_Line().
| #define TP_PTRACE1_ALL 0x001 |
Definition at line 242 of file tracing.h.
Referenced by Process_Command_Line().
| #define TP_PTRACE1_NOHDR 0x400 |
Definition at line 252 of file tracing.h.
Referenced by Print_Tlog_Header().
| #define TP_PTRACE2 2 |
Definition at line 163 of file tracing.h.
Referenced by Process_Command_Line().
| #define TP_REGION 14 |
Definition at line 174 of file tracing.h.
Referenced by Do_WOPT_and_CG_with_Regions(), LNO_Processing(), Post_Process_Backend(), Preprocess_PU(), RAIL::RAIL(), and WOPT_Processing().
| #define TP_SWPIPE 50 |
Definition at line 213 of file tracing.h.
Referenced by Set_Error_Phase().
| #define TP_THR 59 |
Definition at line 222 of file tracing.h.
Referenced by Set_Error_Phase().
| #define TP_WHIRLSIMP 13 |
Definition at line 173 of file tracing.h.
Referenced by main(), and SIMPNODE_Simplify_Initialize().
| #define TP_WOPT1 25 |
Definition at line 187 of file tracing.h.
Referenced by Set_Error_Phase().
| INT Get_Current_Phase_Number | ( | void | ) |
Definition at line 1258 of file errors.cxx.
References Current_Phase_Number.
Definition at line 509 of file tracing.c.
References Current_PU_Name, Current_PU_Number, Current_Region_Number, PU_Cnt, PU_Enable, PU_NCnt, PU_Num_Enable, REGION_NCnt, Region_Num_Enable, result, TA_Phase, TC_Enable, TD_Mask, TI_Mask, TI_Phase, TKIND_ALLOC, TKIND_BB, TKIND_CTRL, TKIND_DEBUG, TKIND_INFO, TKIND_IR, TKIND_SYMTAB, TKIND_TN, TKIND_XPHASE, TN_Phase, TP_Mask, and TS_Phase.
Referenced by Adjust_Opt_Level(), Allocate_File_Statics(), Build_Skiplist(), Check_for_IR_Dump(), Configure(), Configure_Source(), Do_WOPT_and_CG_with_Regions(), Finish_BE_Timing(), Gen_File_Table(), Hash_TCON(), Init_Controls_Tbl(), Initialize_Stack_Frame(), IPL_EX_Simplify(), IPL_EXS_Eliminate_Duplicate_Exprs(), IPL_EXS_Eliminate_Duplicate_Values(), IPL_EXS_Eliminate_Expr_Identities(), IPL_EXS_Inner_Fold(), IPL_EXS_Outer_Fold(), IPL_EXS_Reassociate(), IPL_EXS_Sort_Exprs(), IPL_EXS_Useless(), Ipl_Processing(), LNO_Configure(), LNO_Processing(), main(), OPTIONS_STACK::OPTIONS_STACK(), PDGCS_do_proc(), PDGCS_initialize(), PDGCS_terminate(), Post_Process_Backend(), Prepare_Source(), Preprocess_PU(), Print_PU_Stats(), Print_Tlog_Header(), Print_Total_Stats(), Process_Command_Line(), RAIL::RAIL(), Report_CG_Region_Timing(), Restore_Cmd_Line_Ctrls(), Restore_Routine_Top_Ctrls(), Save_or_restore_options(), Save_Routine_Top_Ctrls(), Set_Error_Phase(), sgi_cmd_line(), SIMPNODE_Simplify_Initialize(), St_Block_Union(), Trace_Memory_Allocation(), and WOPT_Processing().
| FILE* Get_Trace_File | ( | void | ) |
Definition at line 649 of file tracing.c.
References NULL, and TFile_internal.
Referenced by dump_INITO_idx(), dump_INITV_idx(), List_Phase_Numbers(), and Print_INITVs().
| INT32 Get_Trace_Phase_Number | ( | char ** | cp, | |
| char * | arg | |||
| ) |
Definition at line 226 of file tracing.c.
References EC_Trace_Phase, ErrMsg(), Get_Numeric_Flag(), PD_id, PD_num, TP_COUNT, TP_LAST, and TP_MIN.
Referenced by Process_Trace_Option().

| void List_Phase_Numbers | ( | void | ) |
Definition at line 260 of file tracing.c.
References fprintf(), Get_Trace_File(), PD_id, PD_name, PD_num, TP_COUNT, and TP_Mask.
Referenced by Process_Command_Line().

| void Nest_Indent | ( | FILE * | file | ) |
| void Set_Current_Phase_Number | ( | INT | ) |
Definition at line 1252 of file errors.cxx.
References Current_Phase_Number.
Referenced by Set_Error_Phase().
| void Set_Current_PU_For_Trace | ( | char * | name, | |
| INT | number | |||
| ) |
Definition at line 392 of file tracing.c.
References Current_PU_Name, Current_PU_Number, RID_CREATE_NEW_ID, and Set_Current_Region_For_Trace().
Referenced by Preprocess_PU().

| void Set_Current_Region_For_Trace | ( | INT | number | ) |
Definition at line 401 of file tracing.c.
References Current_Region_Number.
Referenced by Do_WOPT_and_CG_with_Regions(), and Set_Current_PU_For_Trace().
Definition at line 295 of file tracing.c.
References BB_Cnt, BB_COUNT, Check_Range(), CTRL_COUNT, EC_Trace_BBs, EC_Trace_Control, EC_Trace_Func, EC_Trace_Phase, ErrMsg(), TA_Phase, TB_Enable, TC_Enable, TD_Mask, TI_Mask, TI_Phase, TKIND_ALLOC, TKIND_BB, TKIND_CTRL, TKIND_DEBUG, TKIND_INFO, TKIND_IR, TKIND_MIN, TKIND_SYMTAB, TKIND_TN, TKIND_XPHASE, TN_Phase, TP_LAST, TP_Mask, TP_MIN, TS_Phase, and Xstop_Phase.
Referenced by main(), Process_Command_Line(), and Process_Trace_Option().

| void Set_Trace_File | ( | char * | filename | ) |
Definition at line 614 of file tracing.c.
References EC_Trace_Open, ErrMsg(), errno, Non_stdout_TFile, NULL, Set_Error_Trace(), TFile_internal, and TFile_Name.
Referenced by Cleanup_Files(), and Prepare_Source().

| void Set_Trace_File_internal | ( | FILE * | ) |
Definition at line 644 of file tracing.c.
References TFile_internal.
Referenced by dump_INITO_idx(), dump_INITV_idx(), PDGCS_initialize(), and Print_INITVs().
| void Set_Trace_Pu | ( | char * | name | ) |
Definition at line 416 of file tracing.c.
References EC_Trace_PUs, ErrMsg(), PU_Cnt, PU_COUNT, and PU_Enable.
Referenced by Process_Trace_Option().

| void Set_Trace_Pu_Number | ( | INT | number | ) |
Definition at line 428 of file tracing.c.
References EC_Trace_PUs, ErrMsg(), PU_COUNT, PU_NCnt, and PU_Num_Enable.
Referenced by Process_Trace_Option().

| void Set_Trace_Region_Number | ( | INT | number | ) |
Definition at line 448 of file tracing.c.
References EC_Trace_REGIONs, ErrMsg(), REGION_COUNT, REGION_NCnt, and Region_Num_Enable.
Referenced by Process_Trace_Option().

Definition at line 595 of file tracing.c.
References Xstop_Phase.
| char* DBar |
Definition at line 66 of file tracing.c.
Referenced by Finish_BE_Timing(), Finish_Compilation_Timing(), Ipl_Processing(), main(), Print_global_symtab(), Print_local_symtab(), Report_CG_Region_Timing(), and Trace_Memory_Allocation().
1.7.1