[genmatch] Introduce reverse keyword

Richard Biener rguenther@suse.de
Mon Oct 17 08:24:00 GMT 2016

On Sun, 16 Oct 2016, Prathamesh Kulkarni wrote:

> Hi Richard,
> This patch makes a minor change to genmatch to add reverse keyword for iterating
> over user-defined operators in reverse in for-stmt and in define_operator_list.
> eg:
> (for op (bit_and bit_ior)
>       rop (reverse (op))
>   ...)
> Verified gimple-match.c and generic-match.c remain unchanged with patch.
> Bootstrap+test in progress on x86_64-unknown-linux-gnu.
> OK to commit if passes ?

Hmm.  This is a very special thing that will only be useful for
two-entry operator lists.  So I don't think it's any clearer,
instead it complicates the IL giving you two choices to do the
same thing ...


> Thanks,
> Prathamesh

Richard Biener <rguenther@suse.de>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)

More information about the Gcc-patches mailing list