GCC Middle and Back End API Reference
regstat.c File Reference

Functions

void regstat_init_n_sets_and_refs ()
void regstat_free_n_sets_and_refs ()
static void regstat_bb_compute_ri (unsigned int bb_index, bitmap live, bitmap artificial_uses, bitmap local_live, bitmap local_processed, int *local_live_last_luid)
void regstat_compute_ri ()
void regstat_free_ri ()
bitmap regstat_get_setjmp_crosses ()
static void regstat_bb_compute_calls_crossed ()
void regstat_compute_calls_crossed ()
void regstat_free_calls_crossed ()
void dump_reg_info ()

Variables

struct regstat_n_sets_and_refs_tregstat_n_sets_and_refs
static bitmap setjmp_crosses
struct reg_info_treg_info_p
size_t reg_info_p_size

Function Documentation

static void regstat_bb_compute_calls_crossed ( )
static
static void regstat_bb_compute_ri ( unsigned int  bb_index,
bitmap  live,
bitmap  artificial_uses,
bitmap  local_live,
bitmap  local_processed,
int *  local_live_last_luid 
)
static
void regstat_compute_calls_crossed ( void  )
Compute register info: lifetime, bb, and number of defs and uses.   

References df_bitmap_obstack, basic_block_def::index, live, max_reg_num(), max_regno, reg_info_p_size, regstat_bb_compute_calls_crossed(), timevar_pop(), and timevar_push().

Referenced by sched_init().

void regstat_compute_ri ( void  )
Compute register info: lifetime, bb, and number of defs and uses.   

References df_bitmap_obstack, free(), basic_block_def::index, live, max_reg_num(), max_regno, reg_info_p_size, regstat_bb_compute_ri(), timevar_pop(), and timevar_push().

Referenced by find_moveable_pseudos(), ira(), and regmove_optimize().

void regstat_free_calls_crossed ( void  )
Free all storage associated with the problem.   

References free(), and reg_info_p_size.

Referenced by sched_finish().

void regstat_free_n_sets_and_refs ( void  )
Free the array that holds the REG_N_SETS and REG_N_REFS.   

References free().

Referenced by do_reload(), find_moveable_pseudos(), ira(), lra(), move_loop_invariants(), one_code_hoisting_pass(), regmove_optimize(), rest_of_handle_combine(), and sched_finish().

void regstat_free_ri ( void  )
Free all storage associated with the problem.   

References free(), and reg_info_p_size.

Referenced by do_reload(), find_moveable_pseudos(), ira(), lra(), and regmove_optimize().

bitmap regstat_get_setjmp_crosses ( void  )
Return a bitmap containing the set of registers that cross a setjmp.
   The client should not change or delete this bitmap.   

References setjmp_crosses.

Referenced by assign_spill_hard_regs(), coalesce_spill_slots(), and generate_setjmp_warnings().

void regstat_init_n_sets_and_refs ( void  )
If a pass need to change these values in some magical way or the
   pass needs to have accurate values for these and is not using
   incremental df scanning, then it should use REG_N_SETS and
   REG_N_USES.  If the pass is doing incremental scanning then it
   should be getting the info from DF_REG_DEF_COUNT and
   DF_REG_USE_COUNT.   

References df_grow_reg_info(), max_reg_num(), max_regno, REG_N_SETS(), timevar_pop(), and timevar_push().

Referenced by find_moveable_pseudos(), ira(), move_loop_invariants(), one_code_hoisting_pass(), regmove_optimize(), rest_of_handle_combine(), and sched_init().


Variable Documentation

struct reg_info_t* reg_info_p

Referenced by maybe_extend_reg_info_p().

size_t reg_info_p_size
struct regstat_n_sets_and_refs_t* regstat_n_sets_and_refs
@verbatim Scanning of rtl for dataflow analysis.

Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by Kenneth Zadeck (zadec.nosp@m.k@na.nosp@m.tural.nosp@m.brid.nosp@m.ge.co.nosp@m.m).

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.

Referenced by sched_finish().

bitmap setjmp_crosses
static