This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add LABEL_REF_P to rtl.h


On Thu, May 23, 2019 at 10:59 PM Bill Schmidt <wschmidt@linux.ibm.com> wrote:
>
> Hi,
>
> This patch just adds a convenience macro to be used in subsequent patches.
>
> Bootstrapped successfully on powerpc64le-unknown-linux-gnu.  Okay for trunk?

OK.

> Thanks,
> Bill
>
>
> 2019-05-23  Michael Meissner  <meissner@linux.ibm.com>
>
>         * rtl.h (LABEL_REF_P): New #define.
>
>
> Index: gcc/rtl.h
> ===================================================================
> --- gcc/rtl.h   (revision 271579)
> +++ gcc/rtl.h   (working copy)
> @@ -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)
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]