This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Generate switch statements in genpreds.c
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 28 Jun 2006 12:16:15 -0400
- Subject: Re: [PATCH] Generate switch statements in genpreds.c
- References: <Pine.LNX.4.44.0606270633170.31322-100000@www.eyesopen.com>
Roger Sayle wrote:
> 2006-06-27 Roger Sayle <roger@eyesopen.com>
>
> * genpreds.c (generate_switch_p): New function.
> (add_mode_tests): Push the new mode test down inside an AND expr
> if this allows the switch-suitable MATCH_CODE to be near the root.
> (write_match_code_switch): New function to write a MATCH_CODE as
> a switch statement.
> (write_predicate_stmts): New function to write a predicate RTX
> expression as a sequence of statements.
> (write_one_predicate_function): Use write_predicate_stmts.
> (write_tm_constrs_h): Likewise.
OK, thanks.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713