From d614335f7796ca828cfab1a9e789bbb91165755b Mon Sep 17 00:00:00 2001 From: Anatoly Sokolov Date: Fri, 30 Oct 2015 23:56:32 +0300 Subject: Add contains_symbol_ref_p From-SVN: r229607 --- gcc/rtl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/rtl.h') 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. */ -- cgit v1.1