osprey/be/opt/opt_wn.cxx File Reference

#include <sys/types.h>
#include <elf.h>
#include "defs.h"
#include "tracing.h"
#include "mempool.h"
#include "opt_base.h"
#include "topcode.h"
#include "wn.h"
#include "wn_util.h"
#include "pu_info.h"
#include "stab.h"
#include "w2op.h"
#include "stblock.h"
#include "region_util.h"
#include "opt_wn.h"
#include "ir_reader.h"
#include "opt_sym.h"
#include "opt_htable.h"
#include "opt_mu_chi.h"
#include "dep_graph.h"
#include "pf_cg.h"
#include "opt_alias_interface.h"
#include "opt_points_to.h"
#include "opt_alias_rule.h"
#include "config.h"
#include "config_opt.h"
#include "opt_cvtl_rule.h"
#include "opt_main.h"

Include dependency graph for opt_wn.cxx:

Go to the source code of this file.

Functions/Subroutines

WNWN_copy (WN *wn)
MTYPE Mtype_from_class_size (MTYPE t1, MTYPE t2)
BOOL WN_has_chi (const WN *wn, const REGION_LEVEL region_level)
BOOL OPERATOR_has_chi (OPERATOR opr)
BOOL OPCODE_has_chi (OPCODE opc)
BOOL WN_has_mu (const WN *wn, const REGION_LEVEL region_level)
BOOL OPERATOR_has_mu (OPERATOR opr)
BOOL OPCODE_has_mu (OPCODE opc)
void WN_init_flags (MEM_POOL *pool)
void WN_fini_flags (void)
INT32 Wn_flags (const WN *wn)
void Set_wn_flags (WN *wn, INT32 flags)
BOOL WN_has_ver (const WN *wn)
BOOL OPERATOR_has_aux (const OPERATOR opr)
BOOL OPCODE_has_aux (const OPCODE opc)
BOOL WN_has_aux (const WN *wn)
STWN_sym (const WN *wn)
AUX_ID WN_aux (const WN *wn)
VER_ID WN_ver (const WN *wn)
void WN_set_aux (WN *wn, AUX_ID s)
void WN_set_ver (WN *wn, VER_ID v)
void WN_copy_stmap (WN *src, WN *dst)
INT32 Get_mtype_class (MTYPE mtype)
OPCODE Ldid_from_mtype (MTYPE mtype)
MTYPE Mtype_from_mtype_class_and_size (INT mtype_class, INT bytes)
OPCODE Ldid_from_mtype_class_and_size (INT mtype_class, INT bytes)
OPCODE Stid_from_mtype_class_and_size (INT mtype_class, INT bytes)
void Init_lno_info_for_main_emitter (void)
void Print_dep_graph (FILE *fp)
INT32 WN_get_dep_graph_vertex (WN *wn)
void WN_detach_wn_from_dep_graph (INT32 vertex)
void WN_add_lno_info (WN *wn, CODEREP *cr)
void WN_dup_dep_vertex (WN *oldwn, WN *newwn)
PF_POINTERWN_get_pf_pointer (WN *wn)
void Print_pf_pointer (FILE *fp, PF_POINTER *p)
BOOL Lod_TY_is_volatile (TY_IDX ty)
BOOL Ilod_TY_is_volatile (TY_IDX ty)
INT64 WN_get_const_val (WN *wn)
UINT Actual_data_size (CODEREP *cr, OPT_STAB *opt_stab, INT &signess)
TY_IDX Identity_assignment_type (AUX_STAB_ENTRY *sym, OPT_PHASE phase)
WNCreate_identity_assignment (AUX_STAB_ENTRY *sym, AUX_ID aux_id, TY_IDX ty)
READ_WRITE Get_MP_modref (const WN *pragma_list, const POINTS_TO *pt, const ALIAS_RULE *rule)
WNGet_MP_accessed_id_list (const ST *st)
BOOL Op_can_be_propagated (OPCODE op, OPT_PHASE phase)
BOOL Is_region_with_pragma (WN *wn, WN_PRAGMA_ID pragma_id)
BOOL Is_hi_sign_extended (MTYPE result_ty, MTYPE desc_ty)
BOOL Is_lo_sign_extended (MTYPE result_ty, MTYPE desc_ty)
MTYPE Type_for_saved_load (BOOL hi_ever_sign_extended, BOOL lo_ever_sign_extended, MTYPE lod_type)
void Connect_cr_wn (WN_MAP *cr_wn_map, CODEREP *cr, WN *wn)
BOOL OPERATOR_is_fake (OPERATOR oper)
BOOL OPCODE_is_fake (OPCODE opc)
BOOL OPERATOR_is_volatile (OPERATOR oper)
BOOL OPCODE_is_volatile (OPCODE opc)

Variables

static WN_MAP _wn_flag_map


Function Documentation

UINT Actual_data_size ( CODEREP cr,
OPT_STAB opt_stab,
INT signess 
)

void Connect_cr_wn ( WN_MAP cr_wn_map,
CODEREP cr,
WN wn 
)

Definition at line 1686 of file opt_wn.cxx.

References WN_MAP_Set.

Referenced by Gen_exp_wn().

WN* Create_identity_assignment ( AUX_STAB_ENTRY sym,
AUX_ID  aux_id,
TY_IDX  ty 
)

WN* Get_MP_accessed_id_list ( const ST st  ) 

READ_WRITE Get_MP_modref ( const WN pragma_list,
const POINTS_TO pt,
const ALIAS_RULE rule 
)

INT32 Get_mtype_class ( MTYPE  mtype  ) 

TY_IDX Identity_assignment_type ( AUX_STAB_ENTRY sym,
OPT_PHASE  phase 
)

BOOL Ilod_TY_is_volatile ( TY_IDX  ty  ) 

void Init_lno_info_for_main_emitter ( void   ) 

Definition at line 899 of file opt_wn.cxx.

References Current_Dep_Graph, and NULL.

BOOL Is_hi_sign_extended ( MTYPE  result_ty,
MTYPE  desc_ty 
)

Definition at line 1588 of file opt_wn.cxx.

References FALSE, Is_True, MTYPE_I4, MTYPE_is_integral, MTYPE_is_signed, MTYPE_size_min, and TRUE.

Referenced by Sign_extended().

BOOL Is_lo_sign_extended ( MTYPE  result_ty,
MTYPE  desc_ty 
)

Definition at line 1634 of file opt_wn.cxx.

References FALSE, Is_True, MTYPE_is_integral, MTYPE_is_signed, MTYPE_size_min, and TRUE.

Referenced by Sign_extended().

BOOL Is_region_with_pragma ( WN wn,
WN_PRAGMA_ID  pragma_id 
)

OPCODE Ldid_from_mtype ( MTYPE  mtype  ) 

OPCODE Ldid_from_mtype_class_and_size ( INT  mtype_class,
INT  bytes 
)

BOOL Lod_TY_is_volatile ( TY_IDX  ty  ) 

MTYPE Mtype_from_class_size ( MTYPE  t1,
MTYPE  t2 
)

MTYPE Mtype_from_mtype_class_and_size ( INT  mtype_class,
INT  bytes 
)

BOOL Op_can_be_propagated ( OPCODE  op,
OPT_PHASE  phase 
)

BOOL OPCODE_has_aux ( const OPCODE  opc  ) 

BOOL OPCODE_has_chi ( OPCODE  opc  ) 

Definition at line 299 of file opt_wn.cxx.

References OPCODE_operator(), and OPERATOR_has_chi().

Referenced by WN_has_chi().

BOOL OPCODE_has_mu ( OPCODE  opc  ) 

Definition at line 384 of file opt_wn.cxx.

References OPCODE_operator(), and OPERATOR_has_mu().

BOOL OPCODE_is_fake ( OPCODE  opc  ) 

BOOL OPCODE_is_volatile ( OPCODE  opc  ) 

BOOL OPERATOR_has_aux ( const OPERATOR  opr  ) 

BOOL OPERATOR_has_chi ( OPERATOR  opr  ) 

BOOL OPERATOR_has_mu ( OPERATOR  opr  ) 

BOOL OPERATOR_is_fake ( OPERATOR  oper  ) 

BOOL OPERATOR_is_volatile ( OPERATOR  oper  ) 

void Print_dep_graph ( FILE fp  ) 

Definition at line 908 of file opt_wn.cxx.

References Current_Dep_Graph, and NULL.

Referenced by ML_WHIRL_EMITTER::Emit().

void Print_pf_pointer ( FILE fp,
PF_POINTER p 
)

void Set_wn_flags ( WN wn,
INT32  flags 
)

Definition at line 410 of file opt_wn.cxx.

References _wn_flag_map, and WN_MAP32_Set.

Referenced by NORMALIZE_LOOP::Normalize_do_loop(), WN_set_aux(), and WN_set_ver().

OPCODE Stid_from_mtype_class_and_size ( INT  mtype_class,
INT  bytes 
)

MTYPE Type_for_saved_load ( BOOL  hi_ever_sign_extended,
BOOL  lo_ever_sign_extended,
MTYPE  lod_type 
)

Definition at line 1659 of file opt_wn.cxx.

References FALSE, Is_True, MTYPE_I4, MTYPE_I8, MTYPE_size_min, MTYPE_U4, and MTYPE_U8.

void WN_add_lno_info ( WN wn,
CODEREP cr 
)

AUX_ID WN_aux ( const WN wn  ) 

WN* WN_copy ( WN wn  ) 

Definition at line 219 of file opt_wn.cxx.

References WN_COPY_Tree().

Referenced by CFG::Lower_do_loop(), and CFG::Lower_while_do().

void WN_copy_stmap ( WN src,
WN dst 
)

void WN_detach_wn_from_dep_graph ( INT32  vertex  ) 

Definition at line 928 of file opt_wn.cxx.

References Current_Dep_Graph, and NULL.

Referenced by OPT_STAB::Enter_occ_tab().

void WN_dup_dep_vertex ( WN oldwn,
WN newwn 
)

void WN_fini_flags ( void   ) 

Definition at line 396 of file opt_wn.cxx.

References _wn_flag_map, and WN_MAP_Delete.

Referenced by COMP_UNIT::~COMP_UNIT().

INT32 Wn_flags ( const WN wn  ) 

INT64 WN_get_const_val ( WN wn  ) 

INT32 WN_get_dep_graph_vertex ( WN wn  ) 

Definition at line 917 of file opt_wn.cxx.

References Current_Dep_Graph, and NULL.

Referenced by OPT_STAB::Enter_occ_tab().

PF_POINTER* WN_get_pf_pointer ( WN wn  ) 

Definition at line 999 of file opt_wn.cxx.

References WN_MAP_Get, and WN_MAP_PREFETCH.

Referenced by OPT_STAB::Enter_occ_tab().

BOOL WN_has_aux ( const WN wn  ) 

Definition at line 440 of file opt_wn.cxx.

References OPERATOR_has_aux(), and WN_operator().

Referenced by OPT_STAB::Convert_EH_pragmas().

BOOL WN_has_chi ( const WN wn,
const REGION_LEVEL  region_level 
)

BOOL WN_has_mu ( const WN wn,
const REGION_LEVEL  region_level 
)

BOOL WN_has_ver ( const WN wn  ) 

void WN_init_flags ( MEM_POOL pool  ) 

Definition at line 391 of file opt_wn.cxx.

References _wn_flag_map, and WN_MAP32_Create.

Referenced by COMP_UNIT::COMP_UNIT().

void WN_set_aux ( WN wn,
AUX_ID  s 
)

void WN_set_ver ( WN wn,
VER_ID  v 
)

ST* WN_sym ( const WN wn  ) 

VER_ID WN_ver ( const WN wn  ) 


Variable Documentation

WN_MAP _wn_flag_map [static]

Definition at line 389 of file opt_wn.cxx.

Referenced by Set_wn_flags(), WN_fini_flags(), Wn_flags(), and WN_init_flags().


Generated on Wed Apr 8 14:36:12 2009 for Open64 by  doxygen 1.5.6