diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-12 19:03:50 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-12 19:03:50 +0000 |
commit | f3c52538c7b8890c49fccde6be7130c9541299b7 (patch) | |
tree | 509b4507d79280dce679e79dda34e3da0d380119 /gcc/ira-int.h | |
parent | 1ad9923aaae1c56d6fbc5e347e4f6621f4a0179a (diff) | |
download | gcc-f3c52538c7b8890c49fccde6be7130c9541299b7.tar.gz |
gcc/
* ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
and x_ira_prohibited_mode_move_regs_initialized_p.
(ira_prohibited_mode_move_regs): Redefine as a macro.
* ira.c (ira_prohibited_mode_move_regs): Delete.
(ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162107 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira-int.h')
-rw-r--r-- | gcc/ira-int.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gcc/ira-int.h b/gcc/ira-int.h index f32c22bb1ca..605350dc720 100644 --- a/gcc/ira-int.h +++ b/gcc/ira-int.h @@ -823,6 +823,14 @@ struct target_ira_int { (excluding the class itself. Non-allocatable registers are excluded from the consideration;. */ enum reg_class x_alloc_reg_class_subclasses[N_REG_CLASSES][N_REG_CLASSES]; + + /* Array whose values are hard regset of hard registers for which + move of the hard register in given mode into itself is + prohibited. */ + HARD_REG_SET x_ira_prohibited_mode_move_regs[NUM_MACHINE_MODES]; + + /* Flag of that the above array has been initialized. */ + bool x_ira_prohibited_mode_move_regs_initialized_p; }; extern struct target_ira_int default_target_ira_int; @@ -860,14 +868,11 @@ extern struct target_ira_int *this_target_ira_int; (this_target_ira_int->x_ira_reg_class_super_classes) #define ira_reg_class_union \ (this_target_ira_int->x_ira_reg_class_union) +#define ira_prohibited_mode_move_regs \ + (this_target_ira_int->x_ira_prohibited_mode_move_regs) /* ira.c: */ -/* Array whose values are hard regset of hard registers for which - move of the hard register in given mode into itself is - prohibited. */ -extern HARD_REG_SET ira_prohibited_mode_move_regs[NUM_MACHINE_MODES]; - extern void *ira_allocate (size_t); extern void *ira_reallocate (void *, size_t); extern void ira_free (void *addr); |