This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [match-and-simplify] add new lower function
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 24 Oct 2014 11:20:26 +0200
- Subject: Re: [match-and-simplify] add new lower function
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsA7okOtHOP=YxYrpzWWy5Z-tqqc=pEs+-S=Wqv4kRoSgg at mail dot gmail dot com>
On Thu, Oct 23, 2014 at 11:22 AM, Prathamesh Kulkarni
<bilbotheelffriend@gmail.com> wrote:
> Instead of iterating each time for calling lowering function
> (lower_opt_convert, etc.),
> add new lower function and pass lower_opt_convert, lower_for etc. to
> it as callback.
I don't think this is more readable.
Thanks,
Richard.
> * genmatch.c (lower): New overloaded function.
> (lower): Adjust to call overloaded lower.
>
> Thanks,
> Prathamesh