osprey/be/opt/opt_util.h File Reference

#include "srcpos.h"
#include "opcode_gen_core.h"
#include <vector>
#include "segmented_array.h"

Include dependency graph for opt_util.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Types

module  NUMBER

Defines

#define opt_util_INCLUDED   "opt_util.h"
#define SET_OPT_PHASE(str)   (void) Set_opt_phase(NULL, str)
#define SET_OPT_REPEAT_PHASE(phase_id, str)   (void) Set_opt_phase(&phase_id, str)
#define REPORT_STATISTICS()   Report_statistics()

Typedefs

typedef mempool_allocator< boolBVECTOR_ALLOCATOR
typedef vector< bool,
BVECTOR_ALLOCATOR
BVECTOR

Enumerations

enum  NUMBER_DESC { NUMBER_INVALID, NUMBER_OVERFLOW, NUMBER_UNKNOWN, NUMBER_KNOWN }
enum  NUM_VARIANTS { NO_VARIANT = 0, ONE_VARIANT = 1, NOT_ONE_VARIANT = 2 }

Functions/Subroutines

void Warn_todo (const char *,...)
void Opt_tlog (const char *keyword, SRCPOS srcpos, const char *fmt,...)
void Set_tlog_phase (const INT32 phase)
NUM_VARIANTS Find_one_variant (BB_NODE *bb, CODEREP *iv, CODEREP *expr, NUMBER *, CODEMAP *htable=NULL)
INT Set_opt_phase (INT32 *, const char *)
INT Report_statistics ()
void Set_volatile_map (CFG *cfg, BVECTOR &vol)


Define Documentation

#define opt_util_INCLUDED   "opt_util.h"

Definition at line 55 of file opt_util.h.

 
#define REPORT_STATISTICS (  )     Report_statistics()

Definition at line 144 of file opt_util.h.

Referenced by Pre_Optimizer().

#define SET_OPT_PHASE ( str   )     (void) Set_opt_phase(NULL, str)

#define SET_OPT_REPEAT_PHASE ( phase_id,
str   )     (void) Set_opt_phase(&phase_id, str)


Typedef Documentation

typedef vector<bool, BVECTOR_ALLOCATOR> BVECTOR

Definition at line 161 of file opt_util.h.

Definition at line 160 of file opt_util.h.


Enumeration Type Documentation

Enumerator:
NO_VARIANT 
ONE_VARIANT 
NOT_ONE_VARIANT 

Definition at line 124 of file opt_util.h.

Enumerator:
NUMBER_INVALID 
NUMBER_OVERFLOW 
NUMBER_UNKNOWN 
NUMBER_KNOWN 

Definition at line 87 of file opt_util.h.


Function Documentation

NUM_VARIANTS Find_one_variant ( BB_NODE bb,
CODEREP iv,
CODEREP expr,
NUMBER ,
CODEMAP htable = NULL 
)

void Opt_tlog ( const char *  keyword,
SRCPOS  srcpos,
const char *  fmt,
  ... 
)

INT Report_statistics (  ) 

INT Set_opt_phase ( INT32 ,
const char *   
)

void Set_tlog_phase ( const INT32  phase  ) 

void Set_volatile_map ( CFG cfg,
BVECTOR vol 
)

void Warn_todo ( const char *  ,
  ... 
)

Definition at line 96 of file opt_util.cxx.

References fprintf(), i, len, MAX_WARN_LEN, MAX_WARN_MESSAGES, n_msgs, strcmp(), strdup, va_end, va_start, vsprintf(), and warn_msg.

Referenced by VALNUM_FRE::_contains_undef_val(), VALNUM_FRE::_remove_redundant_phi_nodes(), DCE::Add_goto_stmt(), CODEREP::Antloc_rec(), BB_NODE::Append_stmtrep(), ETABLE::Bottom_up_cr(), ML_WHIRL_EMITTER::Build_loop_info(), EMITTER::Can_raise_to_scf(), ALIAS_CLASSIFICATION::Classify_wn_and_kids(), VALNUM_FRE::collect_cr_occurrences(), IVR::Compute_trip_count(), IVR::Convert_all_ivs(), OPT_STAB::Convert_IO_statement(), CODEREP::Create_cpstmt(), CODEREP::DecUsecnt_rec(), EXP_WORKLST::Determine_inserts_saves_deletions(), STMTREP::Enter_lhs(), CODEREP_CONTAINER::Find_cr(), RVI::Find_loops(), Gen_exp_wn(), Gen_stmt_wn(), EXP_HOISTING::Get_hoisted_exp_occur(), Get_MP_modref(), RVI::Get_wn_local_attributes(), RVI_CTAB::Hash(), CODEMAP::Hash_op_and_canon(), IVR::Ident_all_iv_cands(), CODEREP::IncUsecnt(), VALNUM_FRE::insert_cr_occurrences(), DSE::Is_deleted_statement(), EXP_OCCURS::Is_DT_descendant_of(), RVI::Is_ldid_candidate(), RVI::Is_stid_candidate(), BB_NODE::Kind_name(), ETABLE::LPRE_bottom_up_cr(), RVI::Map_chi_list(), RVI::Map_mu_list(), RVI::Map_mu_node(), DCE::Mark_chinode_live(), RVI::Perform_phase1(), CODEREP::Print_str(), COPYPROP::Prop_const_init_scalar(), ETABLE::Recursive_rehash_and_replace(), BB_LIST::Remove(), BB_LIST_CONTAINER::Remove(), BB_LIST_CONTAINER::Remove_head(), DSE::Required_call(), DCE::Required_call(), DCE::Required_istore(), DCE::Required_store(), CODEREP::Set_usecnt(), OPT_STAB::Simplify_Pointer_Ver(), ETABLE::Stmt_is_redundant(), OPT_PU_POINTS_TO_SUMMARIZER::Summarize_points_to(), DCE::Unreachable_code_elim(), IVR::Update_mp_pragma_list(), Verify_alias(), CODEREP::Verify_CODEMAP(), and WN_is_call_related().


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