libfirm
15 years agoMore cleanup:
Michael Beck [Sun, 12 Oct 2008 14:40:43 +0000 (14:40 +0000)]
More cleanup:
 - move debug output registration out of walker called function
 - add missing param description
 - fixed parameter types

[r22814]

15 years agoDo not qsort() the entries of a Perm in lower_perm_node(), it is pointless.
Christoph Mallon [Sun, 12 Oct 2008 14:27:05 +0000 (14:27 +0000)]
Do not qsort() the entries of a Perm in lower_perm_node(), it is pointless.

[r22813]

15 years ago- simplified gen_assure_different_pattern()
Michael Beck [Sun, 12 Oct 2008 14:26:26 +0000 (14:26 +0000)]
- simplified gen_assure_different_pattern()

[r22812]

15 years ago- no need for belower_skip_proj()
Michael Beck [Sun, 12 Oct 2008 14:19:03 +0000 (14:19 +0000)]
- no need for belower_skip_proj()
- removed useless return of get_perm_cycle()

[r22811]

15 years agoClean up get_perm_cycle() and lower_perm_node() a bit.
Christoph Mallon [Sun, 12 Oct 2008 14:13:40 +0000 (14:13 +0000)]
Clean up get_perm_cycle() and lower_perm_node() a bit.

[r22810]

15 years ago- kicked useless cast
Michael Beck [Sun, 12 Oct 2008 13:54:46 +0000 (13:54 +0000)]
- kicked useless cast

[r22809]

15 years ago- split get_pairidx_for_regidx(), always called with constant parameter
Michael Beck [Sun, 12 Oct 2008 13:53:55 +0000 (13:53 +0000)]
- split get_pairidx_for_regidx(), always called with constant parameter

[r22808]

15 years ago- remove debug module handles from environments
Michael Beck [Sun, 12 Oct 2008 13:45:57 +0000 (13:45 +0000)]
- remove debug module handles from environments

[r22807]

15 years ago- do not use block-wise topologic walker if NOT needed
Michael Beck [Sun, 12 Oct 2008 13:36:23 +0000 (13:36 +0000)]
- do not use block-wise topologic walker if NOT needed

[r22806]

15 years ago- fixed r22803
Michael Beck [Sun, 12 Oct 2008 13:30:08 +0000 (13:30 +0000)]
- fixed r22803

[r22805]

15 years agoRemove write-only variable.
Christoph Mallon [Sun, 12 Oct 2008 13:00:55 +0000 (13:00 +0000)]
Remove write-only variable.

[r22804]

15 years agoSimplify condition in lower_nodes_after_ra_walker().
Christoph Mallon [Sun, 12 Oct 2008 12:59:26 +0000 (12:59 +0000)]
Simplify condition in lower_nodes_after_ra_walker().

[r22803]

15 years agoRemove unused variable.
Christoph Mallon [Sun, 12 Oct 2008 12:57:26 +0000 (12:57 +0000)]
Remove unused variable.

[r22802]

15 years ago- BugFix: check mode_T nodes for different_constraints
Michael Beck [Sun, 12 Oct 2008 12:53:58 +0000 (12:53 +0000)]
- BugFix: check mode_T nodes for different_constraints
- split get_node_for_register() always called with constants
- simplified find_copy by removing impossible condition checks
- simplified assure_constraint_walker: no need to do a topo-walk, walk the schedule

[r22801]

15 years agoRemove logical impossibility: A node cannot be a Perm and a Proj at the same time...
Christoph Mallon [Sun, 12 Oct 2008 12:49:50 +0000 (12:49 +0000)]
Remove logical impossibility: A node cannot be a Perm and a Proj at the same time.  Even then the code makes no sense, because setting the proj no of a Proj and exchanging it right after that is pretty pointless.

[r22800]

15 years agoDo not generate IncMem/DecMem, when the target cpu does not like it.
Christoph Mallon [Sun, 12 Oct 2008 12:01:05 +0000 (12:01 +0000)]
Do not generate IncMem/DecMem, when the target cpu does not like it.

[r22799]

15 years agoRemove the unused arch irn classes arch_irn_class_call and arch_irn_class_stackparam.
Christoph Mallon [Sun, 12 Oct 2008 11:12:01 +0000 (11:12 +0000)]
Remove the unused arch irn classes arch_irn_class_call and arch_irn_class_stackparam.

[r22798]

15 years agoRemove unreachable code.
Christoph Mallon [Sun, 12 Oct 2008 11:08:15 +0000 (11:08 +0000)]
Remove unreachable code.

[r22797]

15 years agoNobody cares what a "normal" node is, so do not try to identify one.
Christoph Mallon [Sun, 12 Oct 2008 11:04:17 +0000 (11:04 +0000)]
Nobody cares what a "normal" node is, so do not try to identify one.

[r22796]

15 years agoOnly regard be_Perm as Perm in the copyopt. There are no customs Perms and I doubt...
Christoph Mallon [Sun, 12 Oct 2008 10:36:15 +0000 (10:36 +0000)]
Only regard be_Perm as Perm in the copyopt.  There are no customs Perms and I doubt anything could handle them.

[r22795]

15 years agoRemove unused macros.
Christoph Mallon [Sun, 12 Oct 2008 10:23:49 +0000 (10:23 +0000)]
Remove unused macros.

[r22794]

15 years agoRemove the unused function get_ia32_out_reg_name().
Christoph Mallon [Sun, 12 Oct 2008 09:52:00 +0000 (09:52 +0000)]
Remove the unused function get_ia32_out_reg_name().

[r22793]

15 years agoRemove the unused function get_ia32_out_regnr().
Christoph Mallon [Sun, 12 Oct 2008 09:50:52 +0000 (09:50 +0000)]
Remove the unused function get_ia32_out_regnr().

[r22792]

15 years agoRemove the unused function get_ia32_result_proj().
Christoph Mallon [Sun, 12 Oct 2008 09:49:48 +0000 (09:49 +0000)]
Remove the unused function get_ia32_result_proj().

[r22791]

15 years agoRemove unnecessary global variable.
Christoph Mallon [Sun, 12 Oct 2008 09:11:04 +0000 (09:11 +0000)]
Remove unnecessary global variable.

[r22790]

15 years agoconst.
Christoph Mallon [Sun, 12 Oct 2008 09:09:27 +0000 (09:09 +0000)]
const.

[r22789]

15 years ago- undo r22777 due to const problems (different understanding of const between MSVC...
Michael Beck [Sun, 12 Oct 2008 05:44:51 +0000 (05:44 +0000)]
- undo r22777 due to const problems (different understanding of const between MSVC/gcc)

[r22788]

15 years ago- use ir_nodemap_t instead of pset: This probably
Michael Beck [Sun, 12 Oct 2008 04:00:35 +0000 (04:00 +0000)]
- use ir_nodemap_t instead of pset: This probably
  remove some indeterminism

[r22787]

15 years ago- fixed warning
Michael Beck [Sun, 12 Oct 2008 03:23:00 +0000 (03:23 +0000)]
- fixed warning

[r22786]

15 years ago- fixed iterator handling
Michael Beck [Sun, 12 Oct 2008 03:08:31 +0000 (03:08 +0000)]
- fixed iterator handling

[r22785]

15 years ago- typo fixed
Michael Beck [Sun, 12 Oct 2008 02:05:17 +0000 (02:05 +0000)]
- typo fixed

[r22784]

15 years ago- removed shadowed local variable
Michael Beck [Sun, 12 Oct 2008 01:50:58 +0000 (01:50 +0000)]
- removed shadowed local variable
- placed cheap exit test first

[r22783]

15 years ago- simplified foreach handling
Michael Beck [Sun, 12 Oct 2008 01:42:36 +0000 (01:42 +0000)]
- simplified foreach handling

[r22782]

15 years ago- typos fixed
Michael Beck [Sun, 12 Oct 2008 01:29:25 +0000 (01:29 +0000)]
- typos fixed

[r22781]

15 years ago- simplified
Michael Beck [Sun, 12 Oct 2008 01:20:08 +0000 (01:20 +0000)]
- simplified
- add some doxygen comments

[r22780]

15 years ago- cleaned up
Michael Beck [Sun, 12 Oct 2008 00:53:40 +0000 (00:53 +0000)]
- cleaned up

[r22779]

15 years ago- removed unused (and outdated) be_collect_phis()
Michael Beck [Sun, 12 Oct 2008 00:36:31 +0000 (00:36 +0000)]
- removed unused (and outdated) be_collect_phis()
- add some doxygen docu

[r22778]

15 years ago- constify
Michael Beck [Sun, 12 Oct 2008 00:28:29 +0000 (00:28 +0000)]
- constify
- add some doxygen comments

[r22777]

15 years ago- typo fixed
Michael Beck [Sun, 12 Oct 2008 00:27:51 +0000 (00:27 +0000)]
- typo fixed

[r22776]

15 years ago- typos fixed
Michael Beck [Sat, 11 Oct 2008 23:37:06 +0000 (23:37 +0000)]
- typos fixed
- move stat_ev declarations AFTER all others, else it will end in non C89 if stat_ev is diabled

[r22775]

15 years agoUpdate the MIPS scheduler by removing stale arch_env uses.
Christoph Mallon [Sat, 11 Oct 2008 22:50:04 +0000 (22:50 +0000)]
Update the MIPS scheduler by removing stale arch_env uses.

[r22774]

15 years agoRemove the unused attribute const arch_env_t *aenv from struct mris_env_t.
Christoph Mallon [Sat, 11 Oct 2008 22:42:29 +0000 (22:42 +0000)]
Remove the unused attribute const arch_env_t *aenv from struct mris_env_t.

[r22773]

15 years agoRemove the unused attributes const arch_env_t *arch_env and const ir_graph *irg from...
Christoph Mallon [Sat, 11 Oct 2008 22:39:52 +0000 (22:39 +0000)]
Remove the unused attributes const arch_env_t *arch_env and const ir_graph *irg from struct sched_env_t.

[r22772]

15 years agoia32_transform_sub_to_neg_add() now can handle mode_T.
Christoph Mallon [Sat, 11 Oct 2008 22:03:48 +0000 (22:03 +0000)]
ia32_transform_sub_to_neg_add() now can handle mode_T.

[r22771]

15 years agoRemove the attribute const arch_env_t *arch_env from struct ia32_code_gen_t. We...
Christoph Mallon [Sat, 11 Oct 2008 21:35:52 +0000 (21:35 +0000)]
Remove the attribute const arch_env_t *arch_env from struct ia32_code_gen_t.  We can get the isa by simpler means.

[r22770]

15 years agoRemove the attribute const arch_env_t *arch_env from struct arm_code_gen_t. We can...
Christoph Mallon [Sat, 11 Oct 2008 21:33:07 +0000 (21:33 +0000)]
Remove the attribute const arch_env_t *arch_env from struct arm_code_gen_t.  We can get the isa by simpler means.

[r22769]

15 years agoRemove the unused function arch_is_register_operand().
Christoph Mallon [Sat, 11 Oct 2008 21:27:50 +0000 (21:27 +0000)]
Remove the unused function arch_is_register_operand().

[r22768]

15 years ago- revert r22765
Michael Beck [Sat, 11 Oct 2008 21:20:34 +0000 (21:20 +0000)]
- revert r22765

[r22767]

15 years agoRemove the unused parameter const copy_opt_t *co from co_is_optimizable_root() and...
Christoph Mallon [Sat, 11 Oct 2008 21:19:02 +0000 (21:19 +0000)]
Remove the unused parameter const copy_opt_t *co from co_is_optimizable_root() and make the function static.

[r22766]

15 years ago- removed stdint.h include for VC compile (may still fail for VC6 because of long...
Michael Beck [Sat, 11 Oct 2008 21:18:30 +0000 (21:18 +0000)]
- removed stdint.h include for VC compile (may still fail for VC6 because of long double)

[r22765]

15 years agoRemove the unused enum arch_operand_type_t.
Christoph Mallon [Sat, 11 Oct 2008 21:14:22 +0000 (21:14 +0000)]
Remove the unused enum arch_operand_type_t.

[r22764]

15 years agoRemove the unused enum entry arch_operand_type_last.
Christoph Mallon [Sat, 11 Oct 2008 21:12:26 +0000 (21:12 +0000)]
Remove the unused enum entry arch_operand_type_last.

[r22763]

15 years agoRemove the unused enum entry arch_irn_flags_last.
Christoph Mallon [Sat, 11 Oct 2008 21:11:21 +0000 (21:11 +0000)]
Remove the unused enum entry arch_irn_flags_last.

[r22762]

15 years agoRemove the unused function arch_irn_flag_str().
Christoph Mallon [Sat, 11 Oct 2008 21:09:42 +0000 (21:09 +0000)]
Remove the unused function arch_irn_flag_str().

[r22761]

15 years agoRemove the unused global variable be_options_t *main_opts.
Christoph Mallon [Sat, 11 Oct 2008 21:07:18 +0000 (21:07 +0000)]
Remove the unused global variable be_options_t *main_opts.

[r22760]

15 years agoAdd comment about how to improve x87 simulator.
Christoph Mallon [Sat, 11 Oct 2008 21:01:22 +0000 (21:01 +0000)]
Add comment about how to improve x87 simulator.

[r22759]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct phi_handler and...
Christoph Mallon [Sat, 11 Oct 2008 20:58:42 +0000 (20:58 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct phi_handler and also the then unused parameter be_main_env_t *env from be_phi_handler_new().

[r22758]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct estimate_irg_costs...
Christoph Mallon [Sat, 11 Oct 2008 20:55:53 +0000 (20:55 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct estimate_irg_costs_env_t and also the then unused parameter const arch_env_t *arch_env from be_estimate_irg_costs().

[r22757]

15 years agoremove old unused function
Matthias Braun [Sat, 11 Oct 2008 20:51:53 +0000 (20:51 +0000)]
remove old unused function

[r22755]

15 years agoremove #ifdef HAVE_CONFIG_Hs
Matthias Braun [Sat, 11 Oct 2008 20:49:37 +0000 (20:49 +0000)]
remove #ifdef HAVE_CONFIG_Hs

[r22754]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct dump_env and also...
Christoph Mallon [Sat, 11 Oct 2008 20:48:47 +0000 (20:48 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct dump_env and also the then unused parameter const arch_env_t *arch_env from dump_allocated_irg().

[r22753]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct draw_chordal_env_t.
Christoph Mallon [Sat, 11 Oct 2008 20:43:31 +0000 (20:43 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct draw_chordal_env_t.

[r22752]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct copy_opt_t.
Christoph Mallon [Sat, 11 Oct 2008 20:42:14 +0000 (20:42 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct copy_opt_t.

[r22751]

15 years agostatic.
Christoph Mallon [Sat, 11 Oct 2008 20:40:32 +0000 (20:40 +0000)]
static.

[r22750]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct coloring_t and...
Christoph Mallon [Sat, 11 Oct 2008 20:39:06 +0000 (20:39 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct coloring_t and also the then unused parameter const arch_env_t *arch_env from coloring_init().

[r22749]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct color_save_t.
Christoph Mallon [Sat, 11 Oct 2008 20:37:03 +0000 (20:37 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct color_save_t.

[r22748]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct be_verify_spillslo...
Christoph Mallon [Sat, 11 Oct 2008 20:34:33 +0000 (20:34 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct be_verify_spillslots_env_t and also the then unused parameter const arch_env_t *arch_env from be_verify_spillslots().

[r22747]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct be_verify_schedule...
Christoph Mallon [Sat, 11 Oct 2008 20:31:39 +0000 (20:31 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct be_verify_schedule_env_t.

[r22746]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct be_insn_env_t.
Christoph Mallon [Sat, 11 Oct 2008 20:27:26 +0000 (20:27 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct be_insn_env_t.

[r22745]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct fix_stack_walker_e...
Christoph Mallon [Sat, 11 Oct 2008 20:20:24 +0000 (20:20 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct fix_stack_walker_env_t.

[r22744]

15 years agoRemove an unused arch_env pointer.
Christoph Mallon [Sat, 11 Oct 2008 20:16:19 +0000 (20:16 +0000)]
Remove an unused arch_env pointer.

[r22743]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct mips_code_gen_t.
Christoph Mallon [Sat, 11 Oct 2008 20:11:52 +0000 (20:11 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct mips_code_gen_t.

[r22742]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct ppc32_code_gen_t.
Christoph Mallon [Sat, 11 Oct 2008 20:10:16 +0000 (20:10 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct ppc32_code_gen_t.

[r22741]

15 years agoRemove the unused parameter const arch_env_t *arch_env from be_set_phi_flags().
Christoph Mallon [Sat, 11 Oct 2008 20:06:17 +0000 (20:06 +0000)]
Remove the unused parameter const arch_env_t *arch_env from be_set_phi_flags().

[r22740]

15 years agoRemove the unused parameter const arch_env_t *arch_env from be_set_phi_reg_req().
Christoph Mallon [Sat, 11 Oct 2008 20:00:45 +0000 (20:00 +0000)]
Remove the unused parameter const arch_env_t *arch_env from be_set_phi_reg_req().

[r22739]

15 years ago- updated to reflect UNIX configure changes
Michael Beck [Sat, 11 Oct 2008 19:59:25 +0000 (19:59 +0000)]
- updated to reflect UNIX configure changes
- deleted killed files

[r22738]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct reg_pressure_main_...
Christoph Mallon [Sat, 11 Oct 2008 19:57:42 +0000 (19:57 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct reg_pressure_main_env_t.

[r22737]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct regpressure_ana_t.
Christoph Mallon [Sat, 11 Oct 2008 19:54:13 +0000 (19:54 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct regpressure_ana_t.

[r22735]

15 years agoRemove the unused parameter const arch_env_t *arch_env from be_reload().
Christoph Mallon [Sat, 11 Oct 2008 19:49:05 +0000 (19:49 +0000)]
Remove the unused parameter const arch_env_t *arch_env from be_reload().

[r22734]

15 years ago- add comment
Michael Beck [Sat, 11 Oct 2008 19:48:32 +0000 (19:48 +0000)]
- add comment

[r22733]

15 years agoRemove the unused parameter const arch_env_t *arch_env from be_spill().
Christoph Mallon [Sat, 11 Oct 2008 19:47:32 +0000 (19:47 +0000)]
Remove the unused parameter const arch_env_t *arch_env from be_spill().

[r22732]

15 years agoRemove arch_env from bessadestrsimple.
Christoph Mallon [Sat, 11 Oct 2008 19:44:11 +0000 (19:44 +0000)]
Remove arch_env from bessadestrsimple.

[r22731]

15 years ago- updated to reflect UNIX configure changes
Michael Beck [Sat, 11 Oct 2008 19:42:55 +0000 (19:42 +0000)]
- updated to reflect UNIX configure changes

[r22730]

15 years agoRemove the unused attribute const arch_env_t *arch_env from struct trace_env_t.
Christoph Mallon [Sat, 11 Oct 2008 19:41:12 +0000 (19:41 +0000)]
Remove the unused attribute const arch_env_t *arch_env from struct trace_env_t.

[r22729]

15 years agomore firm_config includes removed
Matthias Braun [Sat, 11 Oct 2008 19:37:43 +0000 (19:37 +0000)]
more firm_config includes removed

[r22728]

15 years agosched_skip_cf_predicator() does not need an arch_env as environment anymore.
Christoph Mallon [Sat, 11 Oct 2008 19:35:57 +0000 (19:35 +0000)]
sched_skip_cf_predicator() does not need an arch_env as environment anymore.

[r22727]

15 years agomore firm_config.h includes removed
Matthias Braun [Sat, 11 Oct 2008 19:34:23 +0000 (19:34 +0000)]
more firm_config.h includes removed

[r22726]

15 years agono need for firm_config.h anymore
Matthias Braun [Sat, 11 Oct 2008 19:32:42 +0000 (19:32 +0000)]
no need for firm_config.h anymore

[r22725]

15 years agono need for firm_config.h includes anymore
Matthias Braun [Sat, 11 Oct 2008 19:26:36 +0000 (19:26 +0000)]
no need for firm_config.h includes anymore

[r22724]

15 years agoRemove the unused function be_liveness_nodes_live_at_input().
Christoph Mallon [Sat, 11 Oct 2008 19:25:56 +0000 (19:25 +0000)]
Remove the unused function be_liveness_nodes_live_at_input().

[r22723]

15 years agoRemove the unused parameter const arch_env_t *arch_env from be_liveness_nodes_live_at().
Christoph Mallon [Sat, 11 Oct 2008 19:24:12 +0000 (19:24 +0000)]
Remove the unused parameter const arch_env_t *arch_env from be_liveness_nodes_live_at().

[r22722]

15 years agono need for firm_config.h anymore
Matthias Braun [Sat, 11 Oct 2008 19:23:56 +0000 (19:23 +0000)]
no need for firm_config.h anymore

[r22721]

15 years agoremoved pointless bespillremat.h includes
Matthias Braun [Sat, 11 Oct 2008 19:23:30 +0000 (19:23 +0000)]
removed pointless bespillremat.h includes

[r22720]

15 years agofix for last commit
Matthias Braun [Sat, 11 Oct 2008 19:22:22 +0000 (19:22 +0000)]
fix for last commit

[r22719]

15 years agoRemove the unused parameter const arch_env_t *arch_env from be_liveness_end_of_block().
Christoph Mallon [Sat, 11 Oct 2008 19:21:44 +0000 (19:21 +0000)]
Remove the unused parameter const arch_env_t *arch_env from be_liveness_end_of_block().

[r22718]

15 years agoremove unused support for wchar idents
Matthias Braun [Sat, 11 Oct 2008 19:20:47 +0000 (19:20 +0000)]
remove unused support for wchar idents

[r22717]

15 years agoRemove the unused parameter const arch_env_t *arch_env from be_liveness_transfer().
Christoph Mallon [Sat, 11 Oct 2008 19:14:39 +0000 (19:14 +0000)]
Remove the unused parameter const arch_env_t *arch_env from be_liveness_transfer().

[r22716]

15 years agoRemove the unused function be_RegParams_append_out_reg().
Christoph Mallon [Sat, 11 Oct 2008 19:10:55 +0000 (19:10 +0000)]
Remove the unused function be_RegParams_append_out_reg().

[r22715]

15 years ago- removed C99 features
Michael Beck [Sat, 11 Oct 2008 19:09:33 +0000 (19:09 +0000)]
- removed C99 features

[r22714]

15 years agoRemove the unused parameter const arch_env_t *arch_env from x87_simulate_graph().
Christoph Mallon [Sat, 11 Oct 2008 19:08:53 +0000 (19:08 +0000)]
Remove the unused parameter const arch_env_t *arch_env from x87_simulate_graph().

[r22713]