aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorMichael Meissner <meissner@linux.ibm.com>2019-05-29 02:10:59 +0000
committerWilliam Schmidt <wschmidt@gcc.gnu.org>2019-05-29 02:10:59 +0000
commit02441f3eecb42f3c38858bb4c5dae916620b1a52 (patch)
treec8d24b5eec868f1cfcbc77328df34050530bf32f /gcc/rtl.h
parent2872594a9597149ad7d41c44eb8da563637b634a (diff)
downloadgcc-02441f3eecb42f3c38858bb4c5dae916620b1a52.zip
gcc-02441f3eecb42f3c38858bb4c5dae916620b1a52.tar.gz
gcc-02441f3eecb42f3c38858bb4c5dae916620b1a52.tar.bz2
rtl.h (LABEL_REF_P): New #define.
2019-05-28 Michael Meissner <meissner@linux.ibm.com> * rtl.h (LABEL_REF_P): New #define. From-SVN: r271727
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 b4a906f..31fba82 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1052,6 +1052,10 @@ is_a_helper <rtx_note *>::test (rtx_insn *insn)
#define CONSTANT_P(X) \
(GET_RTX_CLASS (GET_CODE (X)) == RTX_CONST_OBJ)
+/* 1 if X is a LABEL_REF. */
+#define LABEL_REF_P(X) \
+ (GET_CODE (X) == LABEL_REF)
+
/* 1 if X can be used to represent an object. */
#define OBJECT_P(X) \
((GET_RTX_CLASS (GET_CODE (X)) & RTX_OBJ_MASK) == RTX_OBJ_RESULT)