osprey/be/cg/orc_intel/if_conv.cxx File Reference

#include <vector>
#include <set>
#include <stdlib.h>
#include <stdio.h>
#include "bb.h"
#include "defs.h"
#include "mempool.h"
#include "error.h"
#include "bb_set.h"
#include "region.h"
#include "cgtarget.h"
#include "if_conv.h"
#include "timing.h"
#include "tracing.h"
#include "cg.h"
#include "profile_util.h"
#include "region_bb_util.h"
#include "ti_res_count.h"
#include "ti_latency.h"
#include "ipfec_defs.h"
#include "cg_dep_graph.h"
#include "dominate.h"
#include "vt_region.h"
#include "recovery.h"
#include <math.h>
#include "whirl2ops.h"
#include "tlog.h"
#include "glob.h"
#include "ipfec_options.h"
#include "be_util.h"
#include "freq.h"
#include "op.h"

Include dependency graph for if_conv.cxx:

Go to the source code of this file.

Defines

#define MAX_NUM_PARA_CMP   2
#define COMP_TOP_NUM   32
#define PARA_COMP_TYPE_NUM   6

Functions/Subroutines

void fPrint_TN (FILE *f, char *fmt, TN *tn)
BOOL CGTARG_Unconditional_Compare (OP *, TOP *)
void BB_SET_Calculate_Dominators (BB_SET *, BOOL, BOOL)
void Calculate_Dominators (void)
void Free_Dominators_Memory (void)
void Exp_True_False_Preds_For_Block (BB *, TN *&, TN *&)
void Exp_Pred_Set (TN *dest, TN *cdest, INT val, OPS *ops)
void Exp_Generic_Pred_Calc (TN *, TN *, COMPARE_TYPE, TN *, OPS *)
void draw_classic_BB_dependence_graph (BB *bb)
void Predicate_Block (BB *bb, TN *pred_tn, BB_SET *)
void Print_BB (BB *)
void Print_OPS (ops const *)
void Print_OP_No_SrcLine (const OP *op)
void GRA_LIVE_Compute_Liveness_For_BB (BB *bb)
BOOL FREQ_Match (float f1, float f2)
BOOL Is_In_Abnormal_Loop (REGION *r)
COMPARE_TYPE Compare_Type (TOP opcode)
BOOL Is_Para_Comp_May_Def (OP *op)
BOOL Is_In_Infinite_Loop (REGION *region)
BOOL Is_Abnormal_Loop (REGION *region)
OPTN_Defined_At_Op (TN *tn, OP *op, std::vector< OP * > *ops)
void Find_BB_Predicates (BB *bb, TN *&first_pred, TN *&second_pred)
TNPredicate_Of_Succ (BB *bb, BB *succ, BB *fall_thru, BB_PREDICATE_INFO *info)

Variables

hTN_MAPf frequency_of_predicates = 0
TN_INFO_MEM info_mem
hTN_MAP init_op_info = 0
TOP cmp_top_index [COMP_TOP_NUM]
TOP para_comp_top [COMP_TOP_NUM][PARA_COMP_TYPE_NUM]


Define Documentation

#define COMP_TOP_NUM   32

Definition at line 77 of file if_conv.cxx.

Referenced by IF_CONVERTOR::Get_Para_Comp_Top().

#define MAX_NUM_PARA_CMP   2

Definition at line 76 of file if_conv.cxx.

Referenced by IF_CONVERTOR::Find_Start_Node().

#define PARA_COMP_TYPE_NUM   6

Definition at line 78 of file if_conv.cxx.

Referenced by IF_CONVERTOR::Get_Para_Comp_Top().


Function Documentation

void BB_SET_Calculate_Dominators ( BB_SET *  ,
BOOL  ,
BOOL   
)

void Calculate_Dominators ( void   ) 

BOOL CGTARG_Unconditional_Compare ( OP ,
TOP *   
)

Definition at line 4049 of file cgtarget.cxx.

References CGTARG_Unconditional_Compare_Helper(), FALSE, and OP_code.

COMPARE_TYPE Compare_Type ( TOP  opcode  ) 

void draw_classic_BB_dependence_graph ( BB bb  ) 

void Exp_Generic_Pred_Calc ( TN ,
TN ,
COMPARE_TYPE  ,
TN ,
OPS  
)

Definition at line 3756 of file expand.cxx.

References Build_OP(), COMPARE_TYPE_and, COMPARE_TYPE_or, FALSE, FmtAssert, TOP, and Zero_TN.

void Exp_Pred_Set ( TN dest,
TN cdest,
INT  val,
OPS ops 
)

void Exp_True_False_Preds_For_Block ( BB ,
TN *&  ,
TN *&   
)

void Find_BB_Predicates ( BB bb,
TN *&  first_pred,
TN *&  second_pred 
)

void fPrint_TN ( FILE f,
char *  fmt,
TN tn 
)

void Free_Dominators_Memory ( void   ) 

BOOL FREQ_Match ( float  f1,
float  f2 
) [inline]

void GRA_LIVE_Compute_Liveness_For_BB ( BB bb  ) 

BOOL Is_Abnormal_Loop ( REGION region  ) 

BOOL Is_In_Abnormal_Loop ( REGION r  ) 

Definition at line 214 of file prdb.cxx.

Referenced by PARTITION_GRAPH::Collect_Info(), and IF_CONVERTOR::IF_CONVERTOR().

BOOL Is_In_Infinite_Loop ( REGION region  ) 

BOOL Is_Para_Comp_May_Def ( OP op  ) 

Definition at line 104 of file if_conv.cxx.

References Compare_Type(), COMPARE_TYPE_normal, COMPARE_TYPE_unc, and OP_code.

Referenced by Predicate_Block().

void Predicate_Block ( BB bb,
TN pred_tn,
BB_SET *   
)

TN* Predicate_Of_Succ ( BB bb,
BB succ,
BB fall_thru,
BB_PREDICATE_INFO info 
)

void Print_BB ( BB  ) 

void Print_OP_No_SrcLine ( const OP op  ) 

Definition at line 978 of file oputil.cxx.

void Print_OPS ( ops const *   ) 

Definition at line 1091 of file oputil.cxx.

References FOR_ALL_OPS_OPs_FWD, and Print_OP().

OP* TN_Defined_At_Op ( TN tn,
OP op,
std::vector< OP * > *  ops 
)


Variable Documentation

TOP cmp_top_index[COMP_TOP_NUM]

Initial value:

 
{                          TOP_cmp_ne,       TOP_cmp_ne_unc,       
                           TOP_cmp4_ne,      TOP_cmp4_ne_unc, 
                           TOP_cmp_i_ne,     TOP_cmp_i_ne_unc,     
                           TOP_cmp4_i_ne,    TOP_cmp4_i_ne_unc,
                           TOP_cmp4_ge,      TOP_cmp4_ge_unc,      
                           TOP_cmp4_gt,      TOP_cmp4_gt_unc,
                           TOP_cmp4_le,      TOP_cmp4_le_unc,      
                           TOP_cmp4_lt,      TOP_cmp4_lt_unc, 
                           TOP_cmp_ge,       TOP_cmp_ge_unc,       
                           TOP_cmp_gt,       TOP_cmp_gt_unc, 
                           TOP_cmp_le,       TOP_cmp_le_unc,       
                           TOP_cmp_lt,       TOP_cmp_lt_unc,
                           TOP_cmp4_i_eq,    TOP_cmp4_i_eq_unc,    
                           TOP_cmp4_eq,      TOP_cmp4_eq_unc,
                           TOP_cmp_i_eq,     TOP_cmp_i_eq_unc,     
                           TOP_cmp_eq,       TOP_cmp_eq_unc
}

Definition at line 2566 of file if_conv.cxx.

Referenced by IF_CONVERTOR::Get_Para_Comp_Top().

Definition at line 99 of file if_conv.cxx.

Definition at line 100 of file if_conv.cxx.

TOP para_comp_top[COMP_TOP_NUM][PARA_COMP_TYPE_NUM]

Definition at line 2585 of file if_conv.cxx.

Referenced by IF_CONVERTOR::Get_Para_Comp_Top().


Generated on Wed Apr 8 14:29:08 2009 for Open64 by  doxygen 1.5.6