osprey-gcc/gcc/tree-ssa.c File Reference

#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "tree.h"
#include "flags.h"
#include "rtl.h"
#include "tm_p.h"
#include "ggc.h"
#include "langhooks.h"
#include "hard-reg-set.h"
#include "basic-block.h"
#include "output.h"
#include "errors.h"
#include "expr.h"
#include "function.h"
#include "diagnostic.h"
#include "bitmap.h"
#include "pointer-set.h"
#include "tree-flow.h"
#include "tree-gimple.h"
#include "tree-inline.h"
#include "varray.h"
#include "timevar.h"
#include "hashtab.h"
#include "tree-dump.h"
#include "tree-pass.h"

Include dependency graph for tree-ssa.c:

Go to the source code of this file.

Functions/Subroutines

edge ssa_redirect_edge (edge e, basic_block dest)
void flush_pending_stmts (edge e)
static bool verify_ssa_name (tree ssa_name, bool is_virtual)
static bool verify_def (basic_block bb, basic_block *definition_block, tree ssa_name, tree stmt, bool is_virtual)
static bool verify_use (basic_block bb, basic_block def_bb, tree ssa_name, tree stmt, bool check_abnormal, bool is_virtual, bitmap names_defined_in_bb)
static bool verify_phi_args (tree phi, basic_block bb, basic_block *definition_block)
static void verify_flow_insensitive_alias_info (void)
static void verify_flow_sensitive_alias_info (void)
 DEF_VEC_MALLOC_P (bitmap)
static void verify_name_tags (void)
static void verify_alias_info (void)
void verify_ssa (void)
void init_tree_ssa (void)
void delete_tree_ssa (void)
bool tree_ssa_useless_type_conversion_1 (tree outer_type, tree inner_type)
bool tree_ssa_useless_type_conversion (tree expr)
bool stmt_references_memory_p (tree stmt)
static bool walk_use_def_chains_1 (tree var, walk_use_def_chains_fn fn, void *data, struct pointer_set_t *visited, bool is_dfs)
void walk_use_def_chains (tree var, walk_use_def_chains_fn fn, void *data, bool is_dfs)
static void propagate_into_addr (tree stmt, tree var, tree *x, tree repl)
static void replace_immediate_uses (tree var, tree repl)
static tree get_eq_name (tree *eq_to, tree var)
static void check_phi_redundancy (tree phi, tree *eq_to)
void kill_redundant_phi_nodes (void)
static void warn_uninit (tree t, const char *gmsgid, location_t *locus)
static tree warn_uninitialized_var (tree *tp, int *walk_subtrees, void *data)
static void warn_uninitialized_phi (tree phi)
static void execute_early_warn_uninitialized (void)
static void execute_late_warn_uninitialized (void)
static bool gate_warn_uninitialized (void)

Variables

struct tree_opt_pass pass_redundant_phi
struct tree_opt_pass pass_early_warn_uninitialized
struct tree_opt_pass pass_late_warn_uninitialized


Function Documentation

static void check_phi_redundancy ( tree  phi,
tree eq_to 
) [static]

DEF_VEC_MALLOC_P ( bitmap   ) 

void delete_tree_ssa ( void   ) 

Definition at line 733 of file tree-ssa.c.

static void execute_early_warn_uninitialized ( void   )  [static]

static void execute_late_warn_uninitialized ( void   )  [static]

void flush_pending_stmts ( edge  e  ) 

Definition at line 85 of file tree-ssa.c.

static bool gate_warn_uninitialized ( void   )  [static]

Definition at line 1447 of file tree-ssa.c.

References warn_uninitialized.

static tree get_eq_name ( tree eq_to,
tree  var 
) [static]

Definition at line 1147 of file tree-ssa.c.

References SSA_NAME, SSA_NAME_VERSION, TREE_CODE, and val.

Referenced by check_phi_redundancy(), and kill_redundant_phi_nodes().

void init_tree_ssa ( void   ) 

Definition at line 717 of file tree-ssa.c.

void kill_redundant_phi_nodes ( void   ) 

static void propagate_into_addr ( tree  stmt,
tree  var,
tree x,
tree  repl 
) [static]

static void replace_immediate_uses ( tree  var,
tree  repl 
) [static]

edge ssa_redirect_edge ( edge  e,
basic_block  dest 
)

Definition at line 54 of file tree-ssa.c.

bool stmt_references_memory_p ( tree  stmt  ) 

Definition at line 878 of file tree-ssa.c.

bool tree_ssa_useless_type_conversion ( tree  expr  ) 

Definition at line 858 of file tree-ssa.c.

bool tree_ssa_useless_type_conversion_1 ( tree  outer_type,
tree  inner_type 
)

Definition at line 779 of file tree-ssa.c.

static void verify_alias_info ( void   )  [static]

static bool verify_def ( basic_block  bb,
basic_block definition_block,
tree  ssa_name,
tree  stmt,
bool  is_virtual 
) [static]

static void verify_flow_insensitive_alias_info ( void   )  [static]

static void verify_flow_sensitive_alias_info ( void   )  [static]

static void verify_name_tags ( void   )  [static]

static bool verify_phi_args ( tree  phi,
basic_block  bb,
basic_block definition_block 
) [static]

void verify_ssa ( void   ) 

static bool verify_ssa_name ( tree  ssa_name,
bool  is_virtual 
) [static]

Definition at line 109 of file tree-ssa.c.

References error(), is_gimple_reg(), SSA_NAME, SSA_NAME_IN_FREE_LIST, SSA_NAME_VAR, TREE_CODE, and TREE_TYPE.

Referenced by verify_def(), and verify_use().

static bool verify_use ( basic_block  bb,
basic_block  def_bb,
tree  ssa_name,
tree  stmt,
bool  check_abnormal,
bool  is_virtual,
bitmap  names_defined_in_bb 
) [static]

void walk_use_def_chains ( tree  var,
walk_use_def_chains_fn  fn,
void data,
bool  is_dfs 
)

Definition at line 978 of file tree-ssa.c.

static bool walk_use_def_chains_1 ( tree  var,
walk_use_def_chains_fn  fn,
void data,
struct pointer_set_t visited,
bool  is_dfs 
) [static]

static void warn_uninit ( tree  t,
const char *  gmsgid,
location_t locus 
) [static]

static void warn_uninitialized_phi ( tree  phi  )  [static]

static tree warn_uninitialized_var ( tree tp,
int *  walk_subtrees,
void data 
) [static]

Definition at line 1380 of file tree-ssa.c.

References IS_TYPE_OR_DECL_P, NULL_TREE, SSA_NAME, TREE_CODE, and warn_uninit().

Referenced by execute_early_warn_uninitialized().


Variable Documentation

Initial value:

Definition at line 1452 of file tree-ssa.c.

Initial value:

Definition at line 1469 of file tree-ssa.c.

Initial value:

Definition at line 1310 of file tree-ssa.c.

Referenced by init_tree_optimization_passes().


Generated on Wed Apr 8 14:23:00 2009 for Open64 by  doxygen 1.5.6