aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2020-12-17 00:15:10 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2020-12-17 00:15:10 +0000
commita20cc01679040fb3b069285a638e3a469c688159 (patch)
tree3ebd7235e422ff4188b800acebed59a3b9e83d93 /gcc/rtl.h
parent04ee46ed1c06cbbffcd8eb0626b4ab6c3a5082d9 (diff)
downloadgcc-a20cc01679040fb3b069285a638e3a469c688159.zip
gcc-a20cc01679040fb3b069285a638e3a469c688159.tar.gz
gcc-a20cc01679040fb3b069285a638e3a469c688159.tar.bz2
rtlanal: Add simple_regno_set
This patch adds a routine for finding a “simple” SET for a register definition. See the comment in the patch for details. gcc/ * rtl.h (simple_regno_set): Declare. * rtlanal.c (simple_regno_set): New function.
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index e9df95b..3915fae 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -3539,6 +3539,7 @@ extern void set_insn_deleted (rtx_insn *);
/* Functions in rtlanal.c */
extern rtx single_set_2 (const rtx_insn *, const_rtx);
+extern rtx simple_regno_set (rtx, unsigned int);
extern bool contains_symbol_ref_p (const_rtx);
extern bool contains_symbolic_reference_p (const_rtx);
extern bool contains_constant_pool_address_p (const_rtx);