diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-05 10:32:54 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-05 10:32:54 +0000 |
commit | 266198273393b6c897773ce84198575284b3738e (patch) | |
tree | 98c5020651c4a61ba9b85e846fb8559e5e983851 /gcc/rtl.h | |
parent | d5790af8baf56df2c67da791338b9e8ff5c576d2 (diff) | |
download | gcc-266198273393b6c897773ce84198575284b3738e.tar.gz |
2004-03-05 Paolo Bonzini <bonzini@gnu.org>
* rtlanal.c: Include target.h and output.h.
(rtx_cost, address_cost, default_address_cost): Move from...
* cse.c (rtx_cost, address_cost, default_address_cost):
... this file.
* rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
* Makefile.in: Adjust dependencies.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78961 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h index 2e911362578..94dc136e53b 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1168,6 +1168,17 @@ enum label_kind #define SUBREG_BYTE(RTX) XCUINT (RTX, 1, SUBREG) /* in rtlanal.c */ +/* Return the right cost to give to an operation + to make the cost of the corresponding register-to-register instruction + N times that of a fast register-to-register instruction. */ +#define COSTS_N_INSNS(N) ((N) * 4) + +/* Maximum cost of an rtl expression. This value has the special meaning + not to use an rtx with this cost under any circumstances. */ +#define MAX_COST INT_MAX + +extern int rtx_cost (rtx, enum rtx_code); +extern int address_cost (rtx, enum machine_mode); extern unsigned int subreg_lsb (rtx); extern unsigned int subreg_lsb_1 (enum machine_mode, enum machine_mode, unsigned int); @@ -2099,25 +2110,10 @@ extern int no_new_pseudos; extern int rtx_to_tree_code (enum rtx_code); /* In cse.c */ -struct cse_basic_block_data; - -/* Return the right cost to give to an operation - to make the cost of the corresponding register-to-register instruction - N times that of a fast register-to-register instruction. */ -#define COSTS_N_INSNS(N) ((N) * 4) - -/* Maximum cost of an rtl expression. This value has the special meaning - not to use an rtx with this cost under any circumstances. */ -#define MAX_COST INT_MAX - -extern int rtx_cost (rtx, enum rtx_code); -extern int address_cost (rtx, enum machine_mode); extern int delete_trivially_dead_insns (rtx, int); #ifdef BUFSIZ extern int cse_main (rtx, int, int, FILE *); #endif -extern void cse_end_of_basic_block (rtx, struct cse_basic_block_data *, - int, int, int); extern void cse_condition_code_reg (void); /* In jump.c */ @@ -2238,12 +2234,10 @@ extern void print_inline_rtx (FILE *, rtx, int); /* In loop.c */ extern void init_loop (void); -extern rtx libcall_other_reg (rtx, rtx); #ifdef BUFSIZ extern void loop_optimize (rtx, FILE *, int); #endif extern void branch_target_load_optimize (rtx, bool); -extern void record_excess_regs (rtx, rtx, rtx *); /* In function.c */ extern void reposition_prologue_and_epilogue_notes (rtx); @@ -2343,7 +2337,6 @@ extern void dbr_schedule (rtx, FILE *); extern void dump_local_alloc (FILE *); #endif extern int local_alloc (void); -extern int function_invariant_p (rtx); /* In profile.c */ extern void init_branch_prob (void); |