GCC Middle and Back End API Reference
tree-dfa.c File Reference

Data Structures

struct  dfa_stats_d
struct  numbered_tree_d

Typedefs

typedef struct numbered_tree_d numbered_tree

Functions

static void collect_dfa_stats (struct dfa_stats_d *)
void renumber_gimple_stmt_uids ()
void renumber_gimple_stmt_uids_in_blocks ()
void dump_variable ()
DEBUG_FUNCTION void debug_variable ()
void dump_dfa_stats ()
DEBUG_FUNCTION void debug_dfa_stats ()
static void collect_dfa_stats ()
tree ssa_default_def ()
void set_ssa_default_def ()
tree get_or_create_ssa_default_def ()
tree get_ref_base_and_extent (tree exp, HOST_WIDE_INT *poffset, HOST_WIDE_INT *psize, HOST_WIDE_INT *pmax_size)
tree get_addr_base_and_unit_offset ()
bool stmt_references_abnormal_ssa_name ()
static int compare_decls_by_uid ()
static tree dump_enumerated_decls_push ()
void dump_enumerated_decls ()

Typedef Documentation


Function Documentation

static void collect_dfa_stats ( struct dfa_stats_d )
static
Local functions.   

Referenced by dump_dfa_stats().

static void collect_dfa_stats ( )
static
Collect DFA statistics and store them in the structure pointed to by
   DFA_STATS_P.   

References gimple_phi_num_args(), gimple_vdef(), gimple_vuse(), gsi_end_p(), gsi_next(), gsi_start_bb(), gsi_start_phis(), gsi_stmt(), memset(), and si.

static int compare_decls_by_uid ( )
static
Compare two declarations references by their DECL_UID / sequence number.
   Called via qsort.   

References numbered_tree_d::num, and numbered_tree_d::t.

Referenced by dump_enumerated_decls().

DEBUG_FUNCTION void debug_dfa_stats ( void  )
Dump DFA statistics on stderr.   

References dump_dfa_stats().

DEBUG_FUNCTION void debug_variable ( )
Dump variable VAR and its may-aliases to stderr.   

References dump_variable().

void dump_enumerated_decls ( )
Find all the declarations used by the current function, sort them by uid,
   and emit the sorted list.  Each declaration is tagged with a sequence
   number indicating when it was found during statement / tree walking,
   so that TDF_NOUID comparisons of anonymous declarations are still
   meaningful.  Where a declaration was encountered more than once, we
   emit only the sequence number of the first encounter.
   FILE is the dump file where to output the list and FLAGS is as in
   print_generic_expr.   

References compare_decls_by_uid(), current_function_name(), dump_enumerated_decls_push(), walk_stmt_info::gsi, gsi_end_p(), gsi_next(), gsi_start_bb(), gsi_stmt(), walk_stmt_info::info, is_gimple_debug(), last, memset(), numbered_tree_d::num, print_generic_decl(), numbered_tree_d::t, and walk_gimple_stmt().

Referenced by dump_function_to_file(), and execute_cleanup_cfg_post_optimizing().

static tree dump_enumerated_decls_push ( )
static
Called via walk_gimple_stmt / walk_gimple_op by dump_enumerated_decls.   

References walk_stmt_info::info, and numbered_tree_d::t.

Referenced by dump_enumerated_decls().

void dump_variable ( )
Dump variable VAR and its may-aliases to FILE.   

References cfun, dump_flags, dump_points_to_info_for(), is_global_var(), print_generic_expr(), and ssa_default_def().

Referenced by debug_variable(), and dump_alias_info().

tree get_addr_base_and_unit_offset ( )
tree get_or_create_ssa_default_def ( )
void renumber_gimple_stmt_uids_in_blocks ( )
Like renumber_gimple_stmt_uids, but only do work on the basic blocks
   in BLOCKS, of which there are N_BLOCKS.  Also renumbers PHIs.   

References cfun, gimple_set_uid(), gsi_end_p(), gsi_next(), gsi_start_bb(), gsi_start_phis(), gsi_stmt(), inc_gimple_stmt_max_uid(), and set_gimple_stmt_max_uid().

Referenced by cond_if_else_store_replacement(), and tree_ssa_iv_optimize_loop().

bool stmt_references_abnormal_ssa_name ( )
Returns true if STMT references an SSA_NAME that has
   SSA_NAME_OCCURS_IN_ABNORMAL_PHI set, otherwise false.   

Referenced by can_propagate_from(), and ssa_forward_propagate_and_combine().