[PATCH] Generate switch statements in genpreds.c

Mark Mitchell mark@codesourcery.com
Wed Jun 28 16:22:00 GMT 2006


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



More information about the Gcc-patches mailing list