GCC Middle and Back End API 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_t * | regstat_n_sets_and_refs |
static bitmap | setjmp_crosses |
struct reg_info_t * | reg_info_p |
size_t | reg_info_p_size |
void dump_reg_info | ( | ) |
Dump the register info to FILE.
References df, max_reg_num(), reg_alternate_class(), reg_class_names, reg_info_p_size, REG_N_REFS(), REG_N_SETS(), reg_preferred_class(), regno_reg_rtx, and reload_completed.
|
static |
Compute calls crossed for BB. Live is a scratch bitvector.
References bitmap_clear_bit(), bitmap_copy(), bitmap_set_bit(), df_get_artificial_defs(), df_get_artificial_uses(), df_get_live_out(), DF_REF_AT_TOP, DF_REF_CONDITIONAL, DF_REF_MAY_CLOBBER, DF_REF_MUST_CLOBBER, and DF_REF_PARTIAL.
Referenced by regstat_compute_calls_crossed().
|
static |
Compute register info: lifetime, bb, and number of defs and uses for basic block BB. The three bitvectors are scratch regs used here.
References bitmap_and_compl_into(), bitmap_bit_p(), bitmap_clear(), bitmap_clear_bit(), bitmap_copy(), bitmap_set_bit(), can_throw_internal(), df_get_artificial_defs(), df_get_artificial_uses(), df_get_live_out(), DF_REF_AT_TOP, DF_REF_CONDITIONAL, DF_REF_MAY_CLOBBER, DF_REF_MUST_CLOBBER, DF_REF_MW_HARDREG, DF_REF_PARTIAL, df_mw_hardreg::end_regno, find_reg_note(), basic_block_def::index, and df_mw_hardreg::start_regno.
Referenced by regstat_compute_ri().
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().
struct reg_info_t* reg_info_p |
Referenced by maybe_extend_reg_info_p().
size_t reg_info_p_size |
The number allocated elements of reg_info_p.
Referenced by dump_reg_info(), maybe_extend_reg_info_p(), regstat_compute_calls_crossed(), regstat_compute_ri(), regstat_free_calls_crossed(), and regstat_free_ri().
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). k@na tural brid ge.co 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().
|
static |
Referenced by generate_setjmp_warnings(), and regstat_get_setjmp_crosses().