osprey/be/cg/gra_mon/gra_trace.cxx File Reference

#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include "defs.h"
#include "tracing.h"
#include "cgir.h"
#include "register.h"
#include "gra_bb.h"
#include "gra_lrange.h"
#include "gra_region.h"
#include "gra_interfere.h"

Include dependency graph for gra_trace.cxx:

Go to the source code of this file.

Functions/Subroutines

void GRA_Trace_Color_LRANGE (const char *str, LRANGE *lrange)
void GRA_Trace_Color_REGION (GRA_REGION *region)
void GRA_Trace_Grant (GRA_BB *gbb, ISA_REGISTER_CLASS cl, REGISTER reg)
void GRA_Trace_Grant_Unused_Caller_Saved (void)
void GRA_Trace (INT detail, const char *fmt,...)
void GRA_Trace_Split (INT detail, const char *fmt,...)
void GRA_Trace_Split_Removing_Block (GRA_BB *gbb)
void GRA_Trace_Split_Add_Priority (GRA_BB *gbb, BOOL is_store)
void GRA_Trace_Split_Sub_Priority (GRA_BB *gbb, BOOL is_store)
void GRA_Trace_Split_Priority_On (const char *msg)
void GRA_Trace_Split_Priority_Off ()
void GRA_Trace_Color (INT detail, const char *fmt,...)
void GRA_Trace_Place (INT detail, const char *fmt,...)
void GRA_Trace_Place_LRANGE_GBB (const char *str, LRANGE *lrange, GRA_BB *gbb)
static void print_lr (LRANGE *lr)
void GRA_Trace_Preference_Attempt (LRANGE *lrange0, LRANGE *lrange1, GRA_REGION *region, BOOL outcome)
void GRA_Trace_Preference_Copy (LRANGE *lrange0, LRANGE *lrange1, GRA_BB *gbb)
void GRA_Trace_Preference_Conflict (LRANGE *lrange0, LRANGE *lrange1, GRA_BB *gbb)
void GRA_Trace_Possible_Preference_Copy (LRANGE *lrange0, LRANGE *lrange1, GRA_BB *gbb)
void GRA_Trace_Global_Preference_Failure (LRANGE *lrange0, LRANGE *lrange1, GRA_BB *gbb)
void GRA_Trace_Global_Preference_Success (LRANGE *lrange0, LRANGE *lrange1)
void GRA_Trace_Spill_Stats (float freq_restore_count, INT restore_count, float freq_spill_count, INT spill_count, float priority_count)
void GRA_Trace_LRANGE_Stats (INT32 complement_count, INT32 region_count, INT32 local_count, INT32 split_count)
void GRA_Trace_Regs_Stats (ISA_REGISTER_CLASS rc, REGISTER_SET regs_all, REGISTER_SET &regs_used)
void GRA_Trace_Wired_Local_Count (INT32 count)
void GRA_Trace_Complement_LRANGE_Neighbors (LRANGE *lr, GRA_REGION *region)
BOOL GRA_Trace_Loops (void)
void GRA_Trace_Homing (TN *tn, BB *bb)
void GRA_Trace_Home_Removal (TN *tn, GRA_BB *gbb, OP *op)
void GRA_Init_Trace_Memory (void)
void GRA_Trace_Memory (const char *string)
void GRA_Trace_Memory_Realloc (const char *string)
void GRA_Trace_Memory_Counts ()
void GRA_Trace_Split_LUNIT_Spill (LUNIT *lunit)
BOOL GRA_Trace_Check_Splits ()
void GRA_Trace_LRANGE_Allocate (LRANGE *lrange)
void GRA_Trace_Initialize (void)

Variables

static INT trace_detail
static BOOL trace_color
static BOOL trace_split
static BOOL trace_split_priority
static BOOL trace_grants
static BOOL trace_preference
static BOOL trace_place
static BOOL trace_stats
static BOOL trace_neighbors
static BOOL trace_loops
static BOOL trace_homing
static BOOL trace_memory
static BOOL trace_perf_comp
static BOOL trace_check_splits
static voidlast_brk


Function Documentation

void GRA_Init_Trace_Memory ( void   ) 

void GRA_Trace ( INT  detail,
const char *  fmt,
  ... 
)

BOOL GRA_Trace_Check_Splits (  ) 

Definition at line 688 of file gra_trace.cxx.

References trace_check_splits.

Referenced by LRANGE_Do_Split(), and Optimize_Placement().

void GRA_Trace_Color ( INT  detail,
const char *  fmt,
  ... 
)

Definition at line 275 of file gra_trace.cxx.

References args, fprintf(), TFile, trace_color, trace_detail, va_end, va_start, and vfprintf().

void GRA_Trace_Color_LRANGE ( const char *  str,
LRANGE lrange 
)

Definition at line 92 of file gra_trace.cxx.

References LRANGE::Format(), fprintf(), LRANGE::Priority(), TFile, trace_color, and trace_detail.

Referenced by GRA_Note_Spill(), and LRANGE_Do_Split().

void GRA_Trace_Color_REGION ( GRA_REGION region  ) 

Definition at line 106 of file gra_trace.cxx.

References fprintf(), GRA_REGION::Rid(), RID_Fprint(), TFile, and trace_color.

void GRA_Trace_Complement_LRANGE_Neighbors ( LRANGE lr,
GRA_REGION region 
)

void GRA_Trace_Global_Preference_Failure ( LRANGE lrange0,
LRANGE lrange1,
GRA_BB gbb 
)

Definition at line 468 of file gra_trace.cxx.

References GRA_BB::Bb(), BB_id, LRANGE::Format(), GRA_Trace(), and trace_preference.

Referenced by Check_Global_Preference().

void GRA_Trace_Global_Preference_Success ( LRANGE lrange0,
LRANGE lrange1 
)

Definition at line 486 of file gra_trace.cxx.

References LRANGE::Format(), GRA_Trace(), and trace_preference.

Referenced by Check_Global_Preference().

void GRA_Trace_Grant ( GRA_BB gbb,
ISA_REGISTER_CLASS  cl,
REGISTER  reg 
)

Definition at line 119 of file gra_trace.cxx.

References GRA_BB::Bb(), BB_id, fprintf(), REGISTER_name, TFile, and trace_grants.

Referenced by GRA_GRANT_Local_Register().

void GRA_Trace_Grant_Unused_Caller_Saved ( void   ) 

Definition at line 132 of file gra_trace.cxx.

References fprintf(), TFile, and trace_grants.

Referenced by GRA_GRANT_Unused_Caller_Saved().

void GRA_Trace_Home_Removal ( TN tn,
GRA_BB gbb,
OP op 
)

Definition at line 609 of file gra_trace.cxx.

References GRA_BB::Bb(), BB_id, fprintf(), Print_OP_No_SrcLine(), TFile, TN_number, and trace_homing.

Referenced by Spill_Homeable_TN().

void GRA_Trace_Homing ( TN tn,
BB bb 
)

Definition at line 599 of file gra_trace.cxx.

References BB_id, fprintf(), TFile, TN_number, and trace_homing.

Referenced by Spill_Homeable_TN().

void GRA_Trace_Initialize ( void   ) 

BOOL GRA_Trace_Loops ( void   ) 

Definition at line 588 of file gra_trace.cxx.

References trace_loops.

Referenced by GRA_LOOP_MGR::Find_Loops().

void GRA_Trace_LRANGE_Allocate ( LRANGE lrange  ) 

Definition at line 695 of file gra_trace.cxx.

References LRANGE::Format(), GRA_Trace(), and trace_color.

Referenced by LRANGE::Allocate_Register().

void GRA_Trace_LRANGE_Stats ( INT32  complement_count,
INT32  region_count,
INT32  local_count,
INT32  split_count 
)

Definition at line 521 of file gra_trace.cxx.

References GRA_Trace(), and trace_stats.

Referenced by LRANGE_MGR::Finalize().

void GRA_Trace_Memory ( const char *  string  ) 

void GRA_Trace_Memory_Counts (  ) 

void GRA_Trace_Memory_Realloc ( const char *  string  ) 

Definition at line 647 of file gra_trace.cxx.

References fprintf(), TFile, and trace_memory.

Referenced by LRANGE_SET_SUBUNIVERSE::Add().

void GRA_Trace_Place ( INT  detail,
const char *  fmt,
  ... 
)

Definition at line 291 of file gra_trace.cxx.

References args, fprintf(), TFile, trace_detail, trace_place, va_end, va_start, and vfprintf().

Referenced by Dumb_Placement(), and Optimize_Placement().

void GRA_Trace_Place_LRANGE_GBB ( const char *  str,
LRANGE lrange,
GRA_BB gbb 
)

void GRA_Trace_Possible_Preference_Copy ( LRANGE lrange0,
LRANGE lrange1,
GRA_BB gbb 
)

void GRA_Trace_Preference_Attempt ( LRANGE lrange0,
LRANGE lrange1,
GRA_REGION region,
BOOL  outcome 
)

void GRA_Trace_Preference_Conflict ( LRANGE lrange0,
LRANGE lrange1,
GRA_BB gbb 
)

void GRA_Trace_Preference_Copy ( LRANGE lrange0,
LRANGE lrange1,
GRA_BB gbb 
)

void GRA_Trace_Regs_Stats ( ISA_REGISTER_CLASS  rc,
REGISTER_SET  regs_all,
REGISTER_SET regs_used 
)

Definition at line 539 of file gra_trace.cxx.

References GRA_Trace(), REGISTER_SET_Size(), and trace_stats.

void GRA_Trace_Spill_Stats ( float  freq_restore_count,
INT  restore_count,
float  freq_spill_count,
INT  spill_count,
float  priority_count 
)

Definition at line 502 of file gra_trace.cxx.

References Get_Current_PU_ST, GRA_Trace(), ST_name, trace_perf_comp, and trace_stats.

Referenced by GRA_Spill().

void GRA_Trace_Split ( INT  detail,
const char *  fmt,
  ... 
)

void GRA_Trace_Split_Add_Priority ( GRA_BB gbb,
BOOL  is_store 
)

void GRA_Trace_Split_LUNIT_Spill ( LUNIT lunit  ) 

void GRA_Trace_Split_Priority_Off (  ) 

Definition at line 265 of file gra_trace.cxx.

References FALSE, and trace_split_priority.

Referenced by LRANGE_Do_Split().

void GRA_Trace_Split_Priority_On ( const char *  msg  ) 

Definition at line 252 of file gra_trace.cxx.

References fprintf(), TFile, trace_check_splits, trace_split_priority, and TRUE.

Referenced by LRANGE_Do_Split().

void GRA_Trace_Split_Removing_Block ( GRA_BB gbb  ) 

Definition at line 179 of file gra_trace.cxx.

References GRA_BB::Bb(), BB_id, fprintf(), TFile, and trace_split.

Referenced by Choose_Best_Split().

void GRA_Trace_Split_Sub_Priority ( GRA_BB gbb,
BOOL  is_store 
)

void GRA_Trace_Wired_Local_Count ( INT32  count  ) 

Definition at line 551 of file gra_trace.cxx.

References GRA_Trace(), and trace_stats.

Referenced by GBB_MGR::Finalize().

static void print_lr ( LRANGE lr  )  [static]


Variable Documentation

void* last_brk [static]

Definition at line 622 of file gra_trace.cxx.

BOOL trace_color [static]

INT trace_detail [static]

BOOL trace_grants [static]

BOOL trace_homing [static]

Definition at line 82 of file gra_trace.cxx.

Referenced by GRA_Trace_Home_Removal(), GRA_Trace_Homing(), and GRA_Trace_Initialize().

BOOL trace_loops [static]

Definition at line 81 of file gra_trace.cxx.

Referenced by GRA_Trace_Initialize(), and GRA_Trace_Loops().

BOOL trace_memory [static]

Definition at line 80 of file gra_trace.cxx.

Referenced by GRA_Trace_Complement_LRANGE_Neighbors(), and GRA_Trace_Initialize().

Definition at line 84 of file gra_trace.cxx.

Referenced by GRA_Trace_Initialize(), and GRA_Trace_Spill_Stats().

BOOL trace_place [static]

Definition at line 78 of file gra_trace.cxx.

Referenced by GRA_Trace_Initialize(), GRA_Trace_Place(), and GRA_Trace_Place_LRANGE_GBB().

BOOL trace_split [static]

BOOL trace_stats [static]


Generated on Wed Apr 8 14:26:34 2009 for Open64 by  doxygen 1.5.6