libfirm
18 years agoBugFix: Do not build edges for not yet live anchors
Michael Beck [Wed, 10 May 2006 12:08:54 +0000 (12:08 +0000)]
BugFix: Do not build edges for not yet live anchors

[r7711]

18 years agofixed memory leak
Michael Beck [Tue, 9 May 2006 14:06:08 +0000 (14:06 +0000)]
fixed memory leak

[r7708]

18 years agoBugFix: edges_activate() must handle the whole root set of nodes
Michael Beck [Tue, 9 May 2006 12:49:22 +0000 (12:49 +0000)]
BugFix: edges_activate() must handle the whole root set of nodes
this includes all anchors and the value table set

doxygen comments added

[r7707]

18 years agolittle cleanup
Michael Beck [Tue, 9 May 2006 12:45:00 +0000 (12:45 +0000)]
little cleanup

[r7706]

18 years agoirg_walk_anchors() added. Needed for iredges.
Michael Beck [Tue, 9 May 2006 12:43:07 +0000 (12:43 +0000)]
irg_walk_anchors() added. Needed for iredges.

[r7705]

18 years agohandle Psi() nodes if they are Muxes
Michael Beck [Tue, 9 May 2006 12:42:07 +0000 (12:42 +0000)]
handle Psi() nodes if they are Muxes
visit_all_identities() added, needed for iredges

[r7704]

18 years agooptimize_graph_df():
Michael Beck [Tue, 9 May 2006 12:39:35 +0000 (12:39 +0000)]
optimize_graph_df():
 - sets the current_ir_graph
 - pushes the uses to the wait queue BEFORE the node is exchanged,
   otherwise old users of the optimized node are evaluated again

more doxygen docu
removed identities declarations, added right header

[r7703]

18 years agoremoved the INPLACE_EDGES option. They are now always available
Michael Beck [Mon, 8 May 2006 15:28:50 +0000 (15:28 +0000)]
removed the INPLACE_EDGES option.  They are now always available

[r7702]

18 years agoimplemented Conv operations
Michael Beck [Mon, 8 May 2006 15:27:58 +0000 (15:27 +0000)]
implemented Conv operations

[r7701]

18 years agoDo not create Confirm nodes for Cmp(Const, Const) constructs.
Michael Beck [Mon, 8 May 2006 12:07:45 +0000 (12:07 +0000)]
Do not create Confirm nodes for Cmp(Const, Const) constructs.
These are useless (and rather strange).

[r7700]

18 years agor_op now defined in firm_types.h
Michael Beck [Fri, 5 May 2006 15:31:10 +0000 (15:31 +0000)]
r_op now defined in firm_types.h

[r7699]

18 years agoir_op added
Michael Beck [Fri, 5 May 2006 15:30:48 +0000 (15:30 +0000)]
ir_op added

[r7698]

18 years agoadded () to supress warnings
Michael Beck [Fri, 5 May 2006 15:23:44 +0000 (15:23 +0000)]
added () to supress warnings
fixed typos

[r7697]

18 years agoBugFix: create new parameter Proj's in the right block
Michael Beck [Fri, 5 May 2006 15:12:55 +0000 (15:12 +0000)]
BugFix: create new parameter Proj's in the right block
make safe iterations more safe

[r7696]

18 years ago- Remove a pointless check for unique control dependencies and fix an incorrect assertion
Christoph Mallon [Fri, 5 May 2006 12:12:44 +0000 (12:12 +0000)]
- Remove a pointless check for unique control dependencies and fix an incorrect assertion
- Factor out common code to rewire Phis and blocks into a function
- Don't generate a Psi if both data inputs are equal

[r7695]

18 years agoadded missing include
Christian Würdig [Fri, 5 May 2006 08:38:53 +0000 (08:38 +0000)]
added missing include

[r7694]

18 years agonode data constructors can allocate the memory by themselves now.
Sebastian Hack [Thu, 4 May 2006 16:14:51 +0000 (16:14 +0000)]
node data constructors can allocate the memory by themselves now.

[r7693]

18 years agoAdapted to changes in irphase
Sebastian Hack [Thu, 4 May 2006 16:14:26 +0000 (16:14 +0000)]
Adapted to changes in irphase

[r7692]

18 years agoused new assure_*() functions
Michael Beck [Wed, 3 May 2006 16:12:14 +0000 (16:12 +0000)]
used new assure_*() functions

[r7691]

18 years agoused xmalloc()
Michael Beck [Wed, 3 May 2006 16:09:37 +0000 (16:09 +0000)]
used xmalloc()
used a macro to hide ugly casts

[r7690]

18 years agoused new assure_doms()
Michael Beck [Wed, 3 May 2006 16:07:50 +0000 (16:07 +0000)]
used new assure_doms()

[r7689]

18 years agoBugFix: turn_into_tuple() now works if edges are activated
Michael Beck [Wed, 3 May 2006 10:38:32 +0000 (10:38 +0000)]
BugFix: turn_into_tuple() now works if edges are activated

[r7688]

18 years agoassure_irg_outs() added
Michael Beck [Wed, 3 May 2006 08:54:20 +0000 (08:54 +0000)]
assure_irg_outs() added

[r7687]

18 years agoassure_doms() and assure_postdoms() added
Michael Beck [Wed, 3 May 2006 08:53:32 +0000 (08:53 +0000)]
assure_doms() and assure_postdoms() added

[r7686]

18 years agoAdd if conversion, use with -fif-conversion
Christoph Mallon [Wed, 3 May 2006 08:29:19 +0000 (08:29 +0000)]
Add if conversion, use with -fif-conversion

[r7685]

18 years agoAdd control dependency analysis
Christoph Mallon [Wed, 3 May 2006 08:27:11 +0000 (08:27 +0000)]
Add control dependency analysis

[r7684]

18 years agoAllow mode_b for and and or
Christoph Mallon [Wed, 3 May 2006 08:23:47 +0000 (08:23 +0000)]
Allow mode_b for and and or

[r7683]

18 years agoUse [gs]et_irn_n() instead of direct access to the in array
Christoph Mallon [Wed, 3 May 2006 08:23:24 +0000 (08:23 +0000)]
Use [gs]et_irn_n() instead of direct access to the in array

[r7682]

18 years agoAdd an edge callback hook for blocks
Christoph Mallon [Wed, 3 May 2006 08:22:44 +0000 (08:22 +0000)]
Add an edge callback hook for blocks

[r7681]

18 years agoAdapted to changes in irphase.c
Sebastian Hack [Tue, 2 May 2006 14:43:42 +0000 (14:43 +0000)]
Adapted to changes in irphase.c

[r7680]

18 years agoSmall modifications
Sebastian Hack [Tue, 2 May 2006 14:43:24 +0000 (14:43 +0000)]
Small modifications

[r7679]

18 years agooptimize_graph_df() added, a fixed point version of local_optimize_graph()
Michael Beck [Tue, 2 May 2006 12:38:02 +0000 (12:38 +0000)]
optimize_graph_df() added, a fixed point version of local_optimize_graph()

[r7677]

18 years agoAdded add_saturated
Sebastian Hack [Tue, 2 May 2006 12:23:16 +0000 (12:23 +0000)]
Added add_saturated

[r7675]

18 years agoremoved const from first parameter for phase init data function as some init functions
Christian Würdig [Mon, 1 May 2006 14:28:44 +0000 (14:28 +0000)]
removed const from first parameter for phase init data function as some init functions
change the object, so it's obviously not const

[r7674]

18 years agoadded missing include
Christian Würdig [Mon, 1 May 2006 14:17:27 +0000 (14:17 +0000)]
added missing include

[r7673]

18 years agocopy_irn_to_irg was buggy. It handed the whole in array of a node, including
Adam Szalkowski [Sat, 29 Apr 2006 18:59:00 +0000 (18:59 +0000)]
copy_irn_to_irg was buggy. It handed the whole in array of a node, including
the block, to new_ir_node. As a result after copying position 0 of the
new node contained the block.

[r7672]

18 years agoinvalidate more analyse info
Michael Beck [Fri, 28 Apr 2006 15:59:00 +0000 (15:59 +0000)]
invalidate more analyse info

[r7671]

18 years agoinvalidate more analyse info
Michael Beck [Fri, 28 Apr 2006 15:53:52 +0000 (15:53 +0000)]
invalidate more analyse info

[r7670]

18 years agoBugFix: do return -1 if no bit is found
Michael Beck [Fri, 28 Apr 2006 15:52:15 +0000 (15:52 +0000)]
BugFix: do return -1 if no bit is found

[r7669]

18 years agodon't create extended block info for const code irg
Michael Beck [Fri, 28 Apr 2006 15:48:18 +0000 (15:48 +0000)]
don't create extended block info for const code irg

[r7668]

18 years agoBugFix: == missed
Michael Beck [Fri, 28 Apr 2006 13:38:53 +0000 (13:38 +0000)]
BugFix: == missed

[r7667]

18 years agoMoved N to >
Sebastian Hack [Fri, 28 Apr 2006 09:31:26 +0000 (09:31 +0000)]
Moved N to >

[r7666]

18 years agodon't crash if a Const node has no tarval set yet
Michael Beck [Thu, 27 Apr 2006 13:41:26 +0000 (13:41 +0000)]
don't crash if a Const node has no tarval set yet

[r7665]

18 years agoinitial implementation of DOUBLE-WORD lowering, cannot handle conversions from/to
Michael Beck [Thu, 27 Apr 2006 13:31:08 +0000 (13:31 +0000)]
initial implementation of DOUBLE-WORD lowering, cannot handle conversions from/to
floating point yet.

[r7664]

18 years agoChanged indent modifier to %N.
Sebastian Hack [Thu, 27 Apr 2006 12:57:58 +0000 (12:57 +0000)]
Changed indent modifier to %N.
%N can now be equipped with a width giving a multiplier

[r7663]

18 years agoadded function to determine if statistics are active
Christian Würdig [Thu, 27 Apr 2006 11:36:08 +0000 (11:36 +0000)]
added function to determine if statistics are active

[r7661]

18 years agoBugFix: need a place for the block :-)
Michael Beck [Mon, 24 Apr 2006 15:56:59 +0000 (15:56 +0000)]
BugFix: need a place for the block :-)

[r7659]

18 years agodo not use set_irn_in to change End's keep-alives, this changes the in array from...
Michael Beck [Mon, 24 Apr 2006 15:45:46 +0000 (15:45 +0000)]
do not use set_irn_in to change End's keep-alives, this changes the in array from a flexible one to a dynamic ...
use new set_end_keepalives() function

[r7658]

18 years agofixed post-dominance construction for endless loops (hopefully).
Michael Beck [Mon, 24 Apr 2006 13:38:42 +0000 (13:38 +0000)]
fixed post-dominance construction for endless loops (hopefully).

[r7657]

18 years agodec_irg_block_visited() added
Michael Beck [Mon, 24 Apr 2006 13:10:57 +0000 (13:10 +0000)]
dec_irg_block_visited() added

[r7656]

18 years agoUse keep-alives to handle dominance info for graphs with endless loops right.
Michael Beck [Mon, 24 Apr 2006 13:10:32 +0000 (13:10 +0000)]
Use keep-alives to handle dominance info for graphs with endless loops right.
Post-dominance is not yet updated !!!

[r7655]

18 years agoadded functions to include the keep-alives for cfg edges
Michael Beck [Mon, 24 Apr 2006 13:09:17 +0000 (13:09 +0000)]
added functions to include the keep-alives for cfg edges

[r7654]

18 years agoFixed keep-alive visiting for extbb walker
Michael Beck [Mon, 24 Apr 2006 13:01:09 +0000 (13:01 +0000)]
Fixed keep-alive visiting for extbb walker

[r7652]

18 years agoAdd a new dumper
Michael Beck [Fri, 21 Apr 2006 11:31:02 +0000 (11:31 +0000)]
Add a new dumper
made allocation simplier

[r7649]

18 years agoadded header comment
Christian Würdig [Fri, 21 Apr 2006 08:18:05 +0000 (08:18 +0000)]
added header comment

[r7648]

18 years agoremoved pedantic-errors switch :)
Christian Würdig [Thu, 20 Apr 2006 16:07:14 +0000 (16:07 +0000)]
removed pedantic-errors switch :)

[r7647]

18 years agoUsed hooks to implement dump_add_node_info_callback()
Michael Beck [Thu, 20 Apr 2006 08:52:30 +0000 (08:52 +0000)]
Used hooks to implement dump_add_node_info_callback()
add prototypes to header file

[r7646]

18 years agohook_node_info added
Michael Beck [Thu, 20 Apr 2006 08:50:38 +0000 (08:50 +0000)]
hook_node_info added

[r7645]

18 years agoAdded height computation
Sebastian Hack [Wed, 19 Apr 2006 15:44:51 +0000 (15:44 +0000)]
Added height computation

[r7644]

18 years agoAdded node info dump callbacks
Sebastian Hack [Wed, 19 Apr 2006 15:44:12 +0000 (15:44 +0000)]
Added node info dump callbacks

[r7643]

18 years agoremoved backend statistics hooks, statistic functions are now called directly by...
Christian Würdig [Wed, 19 Apr 2006 11:43:36 +0000 (11:43 +0000)]
removed backend statistics hooks, statistic functions are now called directly by bestat

[r7639]

18 years agoremoved backend statistics hooks, functions are called now from bestat
Christian Würdig [Wed, 19 Apr 2006 11:43:00 +0000 (11:43 +0000)]
removed backend statistics hooks, functions are called now from bestat

[r7638]

18 years agoPhase objects can now be embedded
Sebastian Hack [Wed, 19 Apr 2006 11:13:16 +0000 (11:13 +0000)]
Phase objects can now be embedded

[r7637]

18 years agoadded comment
Christian Würdig [Tue, 18 Apr 2006 17:03:07 +0000 (17:03 +0000)]
added comment

[r7633]

18 years agofixed chain/cycle distribution statistic output
Christian Würdig [Tue, 18 Apr 2006 17:02:50 +0000 (17:02 +0000)]
fixed chain/cycle distribution statistic output

[r7632]

18 years agoadded conv to keep gcc happy
Christian Würdig [Thu, 13 Apr 2006 15:36:47 +0000 (15:36 +0000)]
added conv to keep gcc happy

[r7631]

18 years agoadded missing parameter and initializer
Christian Würdig [Wed, 12 Apr 2006 14:08:55 +0000 (14:08 +0000)]
added missing parameter and initializer

[r7630]

18 years agoAdded phases
Sebastian Hack [Wed, 12 Apr 2006 13:05:54 +0000 (13:05 +0000)]
Added phases

[r7629]

18 years agoAdded phases using node indexes
Sebastian Hack [Wed, 12 Apr 2006 13:05:12 +0000 (13:05 +0000)]
Added phases using node indexes

[r7628]

18 years agoAdded MIN und MAX
Sebastian Hack [Tue, 11 Apr 2006 15:46:19 +0000 (15:46 +0000)]
Added MIN und MAX

[r7625]

18 years agoextended permutation statistics
Christian Würdig [Tue, 11 Apr 2006 12:28:48 +0000 (12:28 +0000)]
extended permutation statistics

[r7624]

18 years agostat_be_block_regpressure() and stat_be_block_ready() are now directly called from...
Michael Beck [Tue, 11 Apr 2006 11:19:55 +0000 (11:19 +0000)]
stat_be_block_regpressure() and stat_be_block_ready() are now directly called from the be_stat module

[r7623]

18 years agoremoved hook_be_block_regpressure and hook_be_sched_ready. These was only be used...
Michael Beck [Tue, 11 Apr 2006 11:18:48 +0000 (11:18 +0000)]
removed hook_be_block_regpressure and hook_be_sched_ready. These was only be used for statistic
purpose

[r7622]

18 years agofixed foreach macro
Michael Beck [Tue, 11 Apr 2006 09:50:37 +0000 (09:50 +0000)]
fixed foreach macro

[r7621]

18 years agorenamed cnt_to_int() into cnt_to_uint()
Michael Beck [Tue, 11 Apr 2006 09:50:22 +0000 (09:50 +0000)]
renamed cnt_to_int() into cnt_to_uint()
cleaned up by using foreach_pset()

[r7620]

18 years agoforeach_pset macro added
Michael Beck [Tue, 11 Apr 2006 09:13:02 +0000 (09:13 +0000)]
foreach_pset macro added

[r7619]

18 years agomade cnt_to_int unsigned
Christian Würdig [Tue, 11 Apr 2006 09:05:28 +0000 (09:05 +0000)]
made cnt_to_int unsigned

[r7618]

18 years agoadded cnt_to_int function for counter
Christian Würdig [Tue, 11 Apr 2006 09:03:27 +0000 (09:03 +0000)]
added cnt_to_int function for counter

[r7617]

18 years agoadded get_count function for distribution tables
Christian Würdig [Tue, 11 Apr 2006 09:03:04 +0000 (09:03 +0000)]
added get_count function for distribution tables

[r7616]

18 years agoadded inc and insert functions for distribution tables
Christian Würdig [Tue, 11 Apr 2006 08:36:53 +0000 (08:36 +0000)]
added inc and insert functions for distribution tables
removed cnt_1 and cnt_0 from counter.h

[r7615]

18 years agochanged class name type from ident to const char*
Christian Würdig [Tue, 11 Apr 2006 08:15:53 +0000 (08:15 +0000)]
changed class name type from ident to const char*

[r7614]

18 years agoadded hooks for permutation statistics
Christian Würdig [Mon, 10 Apr 2006 15:22:53 +0000 (15:22 +0000)]
added hooks for permutation statistics

[r7613]

18 years agoadded permutations statistics
Christian Würdig [Mon, 10 Apr 2006 15:22:31 +0000 (15:22 +0000)]
added permutations statistics

[r7612]

18 years agoadded 0 and 1 counter
Christian Würdig [Mon, 10 Apr 2006 15:21:35 +0000 (15:21 +0000)]
added 0 and 1 counter

[r7611]

18 years agofixed indents
Christian Würdig [Mon, 10 Apr 2006 09:23:35 +0000 (09:23 +0000)]
fixed indents

[r7610]

18 years agoadded average calculation of distribution table
Christian Würdig [Mon, 10 Apr 2006 09:23:02 +0000 (09:23 +0000)]
added average calculation of distribution table

[r7609]

18 years agoadded be statitics hook (sched_ready)
Christian Würdig [Mon, 10 Apr 2006 08:32:26 +0000 (08:32 +0000)]
added be statitics hook (sched_ready)

[r7608]

18 years agofixed scheduling statistics
Christian Würdig [Sat, 8 Apr 2006 21:31:13 +0000 (21:31 +0000)]
fixed scheduling statistics
removed comment

[r7607]

18 years agoadded statistics for scheduling
Christian Würdig [Sat, 8 Apr 2006 21:06:20 +0000 (21:06 +0000)]
added statistics for scheduling

[r7606]

18 years agoadded environment pointer for distribution table iteration
Christian Würdig [Sat, 8 Apr 2006 21:05:55 +0000 (21:05 +0000)]
added environment pointer for distribution table iteration
fixed compare function for int distrib tables
changed order of typedefs

[r7605]

18 years agoused new node index for normalization (instead of the non-determnistic node address)
Michael Beck [Sat, 8 Apr 2006 01:01:26 +0000 (01:01 +0000)]
used new node index for normalization (instead of the non-determnistic node address)

[r7604]

18 years agomoved reg pressure statistics into sepearete be_block_hash
Christian Würdig [Fri, 7 Apr 2006 15:02:56 +0000 (15:02 +0000)]
moved reg pressure statistics into sepearete be_block_hash
added be_data obstack
free be_data on finish

[r7603]

18 years agoadded reg pressure statistic hook
Christian Würdig [Fri, 7 Apr 2006 14:34:00 +0000 (14:34 +0000)]
added reg pressure statistic hook

[r7602]

18 years agoadded register pressure statistics
Christian Würdig [Fri, 7 Apr 2006 14:03:11 +0000 (14:03 +0000)]
added register pressure statistics

[r7601]

18 years agoreset node index on dead node elimination
Michael Beck [Fri, 7 Apr 2006 12:42:26 +0000 (12:42 +0000)]
reset node index on dead node elimination

[r7598]

18 years agodump the node index and estimated node count
Michael Beck [Fri, 7 Apr 2006 12:38:47 +0000 (12:38 +0000)]
dump the node index and estimated node count

[r7597]

18 years agointroduced node index: a small unique per graph node number
Michael Beck [Fri, 7 Apr 2006 12:24:58 +0000 (12:24 +0000)]
introduced node index: a small unique per graph node number

[r7596]

18 years agoadded addtitional ia32 backend statistics
Christian Würdig [Fri, 7 Apr 2006 09:06:32 +0000 (09:06 +0000)]
added addtitional ia32 backend statistics

[r7595]

18 years agoremoved cstore
Michael Beck [Thu, 6 Apr 2006 15:44:47 +0000 (15:44 +0000)]
removed cstore

[r7594]

18 years agoremoved unused cstore
Michael Beck [Thu, 6 Apr 2006 15:38:50 +0000 (15:38 +0000)]
removed unused cstore

[r7593]