aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2015-10-30 23:56:32 +0300
committerAnatoly Sokolov <aesok@gcc.gnu.org>2015-10-30 23:56:32 +0300
commitd614335f7796ca828cfab1a9e789bbb91165755b (patch)
tree2e6dad106e2c0be6d7bcd62276c61e90c5b1dc22 /gcc/rtl.h
parenta6906c809772feaead79e533e79535bd03a49aa6 (diff)
downloadgcc-d614335f7796ca828cfab1a9e789bbb91165755b.zip
gcc-d614335f7796ca828cfab1a9e789bbb91165755b.tar.gz
gcc-d614335f7796ca828cfab1a9e789bbb91165755b.tar.bz2
Add contains_symbol_ref_p
From-SVN: r229607
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index ad0cf6a..fe081ed 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -829,6 +829,9 @@ struct GTY(()) rtvec_def {
/* Predicate yielding nonzero iff RTX is a subreg. */
#define SUBREG_P(RTX) (GET_CODE (RTX) == SUBREG)
+/* Predicate yielding true iff RTX is a symbol ref. */
+#define SYMBOL_REF_P(RTX) (GET_CODE (RTX) == SYMBOL_REF)
+
template <>
template <>
inline bool
@@ -2926,6 +2929,7 @@ extern void set_insn_deleted (rtx);
/* Functions in rtlanal.c */
extern rtx single_set_2 (const rtx_insn *, const_rtx);
+extern bool contains_symbol_ref_p (const_rtx);
/* Handle the cheap and common cases inline for performance. */