diff options
author | aesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-14 21:46:11 +0000 |
---|---|---|
committer | aesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-14 21:46:11 +0000 |
commit | 2dfa2c74c15975f8a1194ae4f21b13d026b3d3c3 (patch) | |
tree | 42001d8bb449f06f92f0ebc3b08ec3a3934bffc4 /gcc/reload.h | |
parent | 773ddbb1af26d7ddc760b7bc87463421e20789c7 (diff) | |
download | gcc-2dfa2c74c15975f8a1194ae4f21b13d026b3d3c3.tar.gz |
* reload.h (register_move_cost, memory_move_secondary_cost,
secondary_reload_class): Adjust prototype.
* rtl.h (reg_class_subset_p): Adjust prototype.
* reload.c (secondary_reload_class): Change arguments type from
enum reg_class to reg_class_t. Change result type to reg_class_t.
* reginfo.c (register_move_cost, reg_class_subset_p): Change
arguments type from enum reg_class to reg_class_t.
(memory_move_secondary_cost): Change arguments type from
enum reg_class to reg_class_t. Change type of saved_flags to
reg_class_t.
* config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
Remove macros.
(mips_cost): Remove.
(struct mips_rtx_cost_data): Moved to mips.c.
* config/mips/mips-protos.h (mips_register_move_cost): Remove.
* config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
(mips_cost): Make static.
(mips_canonicalize_move_class): Change argument type to reg_class_t.
Change result type to reg_class_t.
(mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
type from enum reg_class to reg_class_t.
(mips_register_move_cost): Make static. Change arguments
type from enum reg_class to reg_class_t.
(mips_memory_move_cost): New function.
(TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163252 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.h')
-rw-r--r-- | gcc/reload.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/reload.h b/gcc/reload.h index 01bbfb1bbc6..340f81d514e 100644 --- a/gcc/reload.h +++ b/gcc/reload.h @@ -30,11 +30,9 @@ along with GCC; see the file COPYING3. If not see SECONDARY_RELOAD_CLASS (CLASS, MODE, X) #endif -extern int register_move_cost (enum machine_mode, enum reg_class, - enum reg_class); +extern int register_move_cost (enum machine_mode, reg_class_t, reg_class_t); extern int memory_move_cost (enum machine_mode, enum reg_class, bool); -extern int memory_move_secondary_cost (enum machine_mode, enum reg_class, - bool); +extern int memory_move_secondary_cost (enum machine_mode, reg_class_t, bool); /* Maximum number of reloads we can need. */ #define MAX_RELOADS (2 * MAX_RECOG_OPERANDS * (MAX_REGS_PER_ADDRESS + 1)) @@ -292,8 +290,8 @@ extern void compute_use_by_pseudos (HARD_REG_SET *, bitmap); /* Functions from reload.c: */ -extern enum reg_class secondary_reload_class (bool, enum reg_class, - enum machine_mode, rtx); +extern reg_class_t secondary_reload_class (bool, reg_class_t, + enum machine_mode, rtx); #ifdef GCC_INSN_CODES_H extern enum reg_class scratch_reload_class (enum insn_code); |