target.def: Add code_for_* hooks.
authorRichard Sandiford <richard.sandiford@arm.com>
Sun, 5 Jul 2015 07:44:45 +0000 (07:44 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 5 Jul 2015 07:44:45 +0000 (07:44 +0000)
commit8684d89dea02aad5fba0ef4cef4eb7e51ea74450
tree3dfeb08ec615098e110099500704dd3f816af3a1
parent9d07490f09ebb24ea3fd58237878fff6ca676f99
target.def: Add code_for_* hooks.

gcc/
* target.def: Add code_for_* hooks.
* gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
* defaults.h (HAVE_tablejump, gen_tablejump): Delete.
* target-insns.def (casesi, tablejump): New targetm instruction
patterns.
* expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
(do_tablejump): Likewise.
* stmt.c (expand_switch_as_decision_tree_p): Likewise.
(expand_sjlj_dispatch_table): Likewise.
* targhooks.c (default_case_values_threshold): Likewise.

From-SVN: r225421
gcc/ChangeLog
gcc/defaults.h
gcc/expr.c
gcc/gentarget-def.c
gcc/stmt.c
gcc/target-insns.def
gcc/target.def
gcc/targhooks.c