diff options
author | Alan Hayward <alan.hayward@arm.com> | 2018-08-06 09:38:29 +0000 |
---|---|---|
committer | Alan Hayward <alahay01@gcc.gnu.org> | 2018-08-06 09:38:29 +0000 |
commit | 6a7fa0c213063683b2011c735bbf78ee8185fbfd (patch) | |
tree | 7e88dabc4b2041dc9eeedc5bafb3835656b42851 /gcc/rtl.h | |
parent | 14196e023fa2a07f86e864a9492e7cf3950d5ce9 (diff) | |
download | gcc-6a7fa0c213063683b2011c735bbf78ee8185fbfd.zip gcc-6a7fa0c213063683b2011c735bbf78ee8185fbfd.tar.gz gcc-6a7fa0c213063683b2011c735bbf78ee8185fbfd.tar.bz2 |
Add func to check if register is clobbered by clobber_high
gcc/
* rtl.h (reg_is_clobbered_by_clobber_high): Add declarations.
* rtlanal.c (reg_is_clobbered_by_clobber_high): Add function.
From-SVN: r263328
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -3467,6 +3467,16 @@ extern bool tablejump_p (const rtx_insn *, rtx_insn **, rtx_jump_table_data **); extern int computed_jump_p (const rtx_insn *); extern bool tls_referenced_p (const_rtx); extern bool contains_mem_rtx_p (rtx x); +extern bool reg_is_clobbered_by_clobber_high (unsigned int, machine_mode, + const_rtx); + +/* Convenient wrapper for reg_is_clobbered_by_clobber_high. */ +inline bool +reg_is_clobbered_by_clobber_high (const_rtx x, const_rtx clobber_high_op) +{ + return reg_is_clobbered_by_clobber_high (REGNO (x), GET_MODE (x), + clobber_high_op); +} /* Overload for refers_to_regno_p for checking a single register. */ inline bool |