#include "wn.h"#include "profile_com.h"


Go to the source code of this file.
Defines | |
| #define | INST_INIT_NAME "__profile_init" |
| #define | PU_INIT_NAME "__profile_pu_init" |
| #define | INVOKE_INIT_NAME "__profile_invoke_init" |
| #define | INVOKE_INSTRUMENT_NAME "__profile_invoke" |
| #define | BRANCH_INIT_NAME "__profile_branch_init" |
| #define | BRANCH_INSTRUMENT_NAME "__profile_branch" |
| #define | LOOP_INIT_NAME "__profile_loop_init" |
| #define | LOOP_INSTRUMENT_NAME "__profile_loop" |
| #define | LOOP_INST_ITER_NAME "__profile_loop_iter" |
| #define | SHORT_CIRCUIT_INIT_NAME "__profile_short_circuit_init" |
| #define | SHORT_CIRCUIT_INST_NAME "__profile_short_circuit" |
| #define | CALL_INIT_NAME "__profile_call_init" |
| #define | ICALL_INIT_NAME "__profile_icall_init" |
| #define | ICALL_INSTRUMENT_NAME "__profile_icall" |
| #define | CALL_INST_ENTRY_NAME "__profile_call_entry" |
| #define | CALL_INST_EXIT_NAME "__profile_call_exit" |
| #define | SWITCH_INIT_NAME "__profile_switch_init" |
| #define | SWITCH_INSTRUMENT_NAME "__profile_switch" |
| #define | COMPGOTO_INIT_NAME "__profile_compgoto_init" |
| #define | COMPGOTO_INSTRUMENT_NAME "__profile_compgoto" |
Functions/Subroutines | |
| void | WN_Instrument (WN *wn, PROFILE_PHASE phase) |
| void | WN_Annotate (WN *wn, PROFILE_PHASE phase, MEM_POOL *MEM_pu_pool) |
| void | Set_Instrumentation_File_Name (char *fname) |
| #define BRANCH_INIT_NAME "__profile_branch_init" |
Definition at line 139 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Initialize_Instrumenter_Branch().
| #define BRANCH_INSTRUMENT_NAME "__profile_branch" |
Definition at line 140 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Instrument_Branch(), and WN_INSTRUMENT_WALKER::Instrument_Cselect().
| #define CALL_INIT_NAME "__profile_call_init" |
Definition at line 146 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Initialize_Instrumenter_Call().
| #define CALL_INST_ENTRY_NAME "__profile_call_entry" |
Definition at line 149 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Instrument_Call().
| #define CALL_INST_EXIT_NAME "__profile_call_exit" |
Definition at line 150 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Instrument_Call().
| #define COMPGOTO_INIT_NAME "__profile_compgoto_init" |
Definition at line 153 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Initialize_Instrumenter_Compgoto().
| #define COMPGOTO_INSTRUMENT_NAME "__profile_compgoto" |
Definition at line 154 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Instrument_Compgoto().
| #define ICALL_INIT_NAME "__profile_icall_init" |
Definition at line 147 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Initialize_Instrumenter_Icall().
| #define ICALL_INSTRUMENT_NAME "__profile_icall" |
Definition at line 148 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Instrument_Icall().
| #define INST_INIT_NAME "__profile_init" |
| #define INVOKE_INIT_NAME "__profile_invoke_init" |
Definition at line 137 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Initialize_Instrumenter_Invoke().
| #define INVOKE_INSTRUMENT_NAME "__profile_invoke" |
Definition at line 138 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Instrument_Invoke().
| #define LOOP_INIT_NAME "__profile_loop_init" |
Definition at line 141 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Initialize_Instrumenter_Loop().
| #define LOOP_INST_ITER_NAME "__profile_loop_iter" |
Definition at line 143 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Instrument_Loop().
| #define LOOP_INSTRUMENT_NAME "__profile_loop" |
Definition at line 142 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Instrument_Loop().
| #define PU_INIT_NAME "__profile_pu_init" |
Definition at line 135 of file wn_instrument.h.
| #define SHORT_CIRCUIT_INIT_NAME "__profile_short_circuit_init" |
Definition at line 144 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Initialize_Instrumenter_Circuit().
| #define SHORT_CIRCUIT_INST_NAME "__profile_short_circuit" |
Definition at line 145 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Instrument_Circuit().
| #define SWITCH_INIT_NAME "__profile_switch_init" |
Definition at line 151 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Initialize_Instrumenter_Switch().
| #define SWITCH_INSTRUMENT_NAME "__profile_switch" |
Definition at line 152 of file wn_instrument.h.
Referenced by WN_INSTRUMENT_WALKER::Instrument_Switch().
| void Set_Instrumentation_File_Name | ( | char * | fname | ) |
Definition at line 2326 of file wn_instrument.cxx.
References DevWarn, Instrumentation_File_Name, Instrumentation_Phase_Num, malloc, sprintf(), and strlen().
Referenced by Process_Command_Line().
| void WN_Annotate | ( | WN * | wn, | |
| PROFILE_PHASE | phase, | |||
| MEM_POOL * | MEM_pu_pool | |||
| ) |
Definition at line 2263 of file wn_instrument.cxx.
References addr(), Cur_PU_Feedback, Cur_PU_Name, CXX_NEW, DevWarn, FALSE, Feedback_File_Info, Get_PU_Profile(), h, i, Instrumenter_DEBUG, MEM_POOL_Delete(), MEM_POOL_Initialize, MEM_POOL_Pop, MEM_POOL_Push, NULL, PU_Profile_Handle::runtime_fun_address, Set_Error_Phase(), Src_File_Name, WN_INSTRUMENT_WALKER::Tree_Walk(), UINT64, FEEDBACK::Verify(), and WN_Clean_Mapid_for_Calls().
Referenced by Backend_Processing(), Do_WOPT_and_CG_with_Regions(), and Preprocess_PU().
| void WN_Instrument | ( | WN * | wn, | |
| PROFILE_PHASE | phase | |||
| ) |
Definition at line 2220 of file wn_instrument.cxx.
References DevWarn, FALSE, Instrumenter_DEBUG, MEM_POOL_Delete(), MEM_POOL_Initialize, MEM_POOL_Pop, MEM_POOL_Push, Set_Error_Phase(), WN_INSTRUMENT_WALKER::Tree_Walk(), and TRUE.
Referenced by Backend_Processing(), Do_WOPT_and_CG_with_Regions(), and Preprocess_PU().
1.5.6