This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [GSoC][match-and-simplify] include is-a.h
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>
- Cc: Diego Novillo <dnovillo at google dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Maxim Kuvyrkov <maxim dot kuvyrkov at linaro dot org>
- Date: Mon, 28 Jul 2014 12:11:42 +0200
- Subject: Re: [GSoC][match-and-simplify] include is-a.h
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsBWkjCiMaf2p9_vSRe0+VXVSY9UXvyDdpyy5mk9nfhGLA at mail dot gmail dot com>
On Sun, Jul 27, 2014 at 11:05 PM, Prathamesh Kulkarni
<bilbotheelffriend@gmail.com> wrote:
> Is it okay to include is-a.h ?
> I have adjusted print_operand to use is_a<> and as_a<> in this patch.
>
> * genmatch.c (is-a.h): Include.
> (is_a_helper::test): Specialize for operand subclasses.
> (print_operand): Adjust to use is_a and as_a.
Yes, this is fine.
Applied.
Thanks,
Richard.
> Thanks,
> Prathamesh.