libfirm
16 years agofix warnings
Matthias Braun [Wed, 5 Mar 2008 09:50:02 +0000 (09:50 +0000)]
fix warnings

[r17966]

16 years agofix warnings
Matthias Braun [Wed, 5 Mar 2008 09:49:35 +0000 (09:49 +0000)]
fix warnings

[r17965]

16 years agoDEL_ARR_F should not use a const pointer
Matthias Braun [Wed, 5 Mar 2008 09:48:51 +0000 (09:48 +0000)]
DEL_ARR_F should not use a const pointer

[r17964]

16 years agoset deleted attributes to NULL
Michael Beck [Tue, 4 Mar 2008 19:04:30 +0000 (19:04 +0000)]
set deleted attributes to NULL

[r17963]

16 years agoindentation changed
Michael Beck [Tue, 4 Mar 2008 19:03:32 +0000 (19:03 +0000)]
indentation changed

[r17962]

16 years ago- beware of useless code: when searching the left argument of a test instruction...
Michael Beck [Tue, 4 Mar 2008 13:56:23 +0000 (13:56 +0000)]
- beware of useless code: when searching the left argument of a test instruction, it might be NOT in the same block if it's a Unknown ... This fixes segfault5.c

[r17956]

16 years agoBugFix: when deleting keep-alives of already visited blocks, keep in mind
Michael Beck [Tue, 4 Mar 2008 13:32:09 +0000 (13:32 +0000)]
BugFix: when deleting keep-alives of already visited blocks, keep in mind
that new keep-alives could be added because the cf was changed ...
So do NOT delete these new KA ...
This fixes segfault4.c

[r17955]

16 years agoclean up code
Michael Beck [Tue, 4 Mar 2008 13:30:30 +0000 (13:30 +0000)]
clean up code

[r17954]

16 years agotest for new tail recursion eliminaton
Michael Beck [Tue, 4 Mar 2008 11:12:56 +0000 (11:12 +0000)]
test for new tail recursion eliminaton

[r17953]

16 years agoremoved useless environment
Michael Beck [Mon, 3 Mar 2008 16:14:47 +0000 (16:14 +0000)]
removed useless environment

[r17947]

16 years agoSupress warning
Michael Beck [Mon, 3 Mar 2008 16:13:03 +0000 (16:13 +0000)]
Supress warning

[r17946]

16 years agoImproved tail recursion optimization:
Michael Beck [Mon, 3 Mar 2008 16:10:49 +0000 (16:10 +0000)]
Improved tail recursion optimization:
Added support for
  return x + func()
  return x * func()
  return func() - x;
  return -func()

[r17945]

16 years agoAllow to restart SSA construction on a graph in phase high.
Michael Beck [Mon, 3 Mar 2008 16:05:37 +0000 (16:05 +0000)]
Allow to restart SSA construction on a graph in phase high.
After restarting, set_value()/get_value() can be used again!

[r17944]

16 years agocreate irg_set_nloc() and made it global visible
Michael Beck [Mon, 3 Mar 2008 16:03:53 +0000 (16:03 +0000)]
create irg_set_nloc() and made it global visible

[r17943]

16 years ago- renamed init_cons() to firm_init_cons()
Michael Beck [Mon, 3 Mar 2008 15:07:16 +0000 (15:07 +0000)]
- renamed init_cons() to firm_init_cons()
- made firm_alloc_frag_arr() global

[r17942]

16 years ago- some doxygen comments added
Michael Beck [Fri, 29 Feb 2008 13:52:17 +0000 (13:52 +0000)]
- some doxygen comments added
- code cleanup

[r17937]

16 years ago- fixed typos
Michael Beck [Fri, 29 Feb 2008 12:28:16 +0000 (12:28 +0000)]
- fixed typos
- use waitq_empty() instead of pdeq_empty()

[r17935]

16 years agouse waitq_empty() instead of pdeq_empty()
Michael Beck [Fri, 29 Feb 2008 12:26:33 +0000 (12:26 +0000)]
use waitq_empty() instead of pdeq_empty()

[r17934]

16 years agoinline_leave_functions() can now inline recursive calls
Michael Beck [Thu, 28 Feb 2008 17:31:51 +0000 (17:31 +0000)]
inline_leave_functions() can now inline recursive calls

[r17930]

16 years agonew_ir_node() uses always flexible array for End nodes
Michael Beck [Thu, 28 Feb 2008 17:30:20 +0000 (17:30 +0000)]
new_ir_node() uses always flexible array for End nodes

[r17929]

16 years agoclone_frame_type() now links old entities to new once and vice versa
Michael Beck [Thu, 28 Feb 2008 17:29:27 +0000 (17:29 +0000)]
clone_frame_type() now links old entities to new once and vice versa

[r17928]

16 years agoadd some comment
Michael Beck [Thu, 28 Feb 2008 17:28:32 +0000 (17:28 +0000)]
add some comment

[r17927]

16 years agocreate_irg_copy() implemented
Michael Beck [Thu, 28 Feb 2008 17:28:03 +0000 (17:28 +0000)]
create_irg_copy() implemented

[r17926]

16 years agomissing ; added
Michael Beck [Thu, 28 Feb 2008 13:18:38 +0000 (13:18 +0000)]
missing ; added

[r17920]

16 years agoadd missing MacroBlock copy
Michael Beck [Thu, 28 Feb 2008 13:08:57 +0000 (13:08 +0000)]
add missing MacroBlock copy

[r17918]

16 years agoclone_frame_type() implemented
Michael Beck [Thu, 28 Feb 2008 13:06:48 +0000 (13:06 +0000)]
clone_frame_type() implemented

[r17917]

16 years agouse new set_Block_MacroBlock() instead of set_irn_n(*,-1,*)
Michael Beck [Thu, 28 Feb 2008 12:41:23 +0000 (12:41 +0000)]
use new set_Block_MacroBlock() instead of set_irn_n(*,-1,*)

[r17916]

16 years agouse new set_Block_MacroBlock() instead of set_irn_n(*,-1,*)
Michael Beck [Thu, 28 Feb 2008 12:40:11 +0000 (12:40 +0000)]
use new set_Block_MacroBlock() instead of set_irn_n(*,-1,*)

[r17915]

16 years agouse set_nodes_block() instead of set_irn_n(*,-1,*)
Michael Beck [Thu, 28 Feb 2008 12:39:20 +0000 (12:39 +0000)]
use set_nodes_block() instead of set_irn_n(*,-1,*)

[r17914]

16 years agoset_Block_MacroBlock() added
Michael Beck [Thu, 28 Feb 2008 12:30:16 +0000 (12:30 +0000)]
set_Block_MacroBlock() added

[r17913]

16 years agoenable -restrict; use -m32 gcc option
Michael Beck [Thu, 28 Feb 2008 11:22:26 +0000 (11:22 +0000)]
enable -restrict; use -m32 gcc option

[r17912]

16 years agofixed indentation
Michael Beck [Tue, 26 Feb 2008 15:28:18 +0000 (15:28 +0000)]
fixed indentation

[r17871]

16 years ago- fixed comment
Michael Beck [Tue, 26 Feb 2008 14:23:46 +0000 (14:23 +0000)]
- fixed comment
- construnc an Unknown node instead of Const(<tarval_bad>) if no
  default_initialize_local_variable() callback is available

[r17869]

16 years agoadd comment
Michael Beck [Mon, 25 Feb 2008 16:23:08 +0000 (16:23 +0000)]
add comment

[r17861]

16 years agoAdd an DivRL for remainderless div nodes (we don't have to generate correction
Michael Beck [Fri, 22 Feb 2008 17:52:58 +0000 (17:52 +0000)]
Add an DivRL for remainderless div nodes (we don't have to generate correction
code than ...

[r17833]

16 years ago- remove x86 test, seems to be useless
Michael Beck [Fri, 22 Feb 2008 16:49:48 +0000 (16:49 +0000)]
- remove x86 test, seems to be useless
- switch off lftr() for now, still buggy (176.gcc fail)

[r17831]

16 years agoSeveral fixes for normal scheduler.
Christoph Mallon [Fri, 22 Feb 2008 16:37:10 +0000 (16:37 +0000)]
Several fixes for normal scheduler.

[r17829]

16 years agoBugfix:
Michael Beck [Fri, 22 Feb 2008 12:22:29 +0000 (12:22 +0000)]
Bugfix:
 - in the apply operation, a rc might be an (outer) IV, so check
   for the right IV before doing the replacement

[r17827]

16 years agoadded for upcoming release
Michael Beck [Thu, 21 Feb 2008 14:33:43 +0000 (14:33 +0000)]
added for upcoming release

[r17824]

16 years agoadded for upcoming release
Michael Beck [Thu, 21 Feb 2008 14:32:58 +0000 (14:32 +0000)]
added for upcoming release

[r17823]

16 years agobugfix: update_scc() must mark already seen SCC nodes, else a node might be put more...
Michael Beck [Thu, 21 Feb 2008 14:27:50 +0000 (14:27 +0000)]
bugfix: update_scc() must mark already seen SCC nodes, else a node might be put more than
once into the SCC (causing an endless loop in the linked list ...)

[r17822]

16 years agoremoved verbose output
Michael Beck [Wed, 20 Feb 2008 17:02:26 +0000 (17:02 +0000)]
removed verbose output

[r17815]

16 years agoRemove the unsafe overflow opt flag again :-( It does not solve
Michael Beck [Wed, 20 Feb 2008 16:51:47 +0000 (16:51 +0000)]
Remove the unsafe overflow opt flag again :-( It does not solve
the problems ...

[r17813]

16 years agobugfix: do NOT shadow another local var :-(
Michael Beck [Wed, 20 Feb 2008 16:43:41 +0000 (16:43 +0000)]
bugfix: do NOT shadow another local var :-(

[r17812]

16 years agobetter lftr:
Michael Beck [Wed, 20 Feb 2008 16:35:59 +0000 (16:35 +0000)]
better lftr:
- create a scc for every IV
- lftr can only be done for counter loops :-(
- moreover, we must not only check that we can transform the cost without overflow,
- it must still be possible to add/sub the increment value without overflow ...

[r17811]

16 years agoadd prototype for set_opt_overflow_unsafe_transform()
Michael Beck [Wed, 20 Feb 2008 13:40:39 +0000 (13:40 +0000)]
add prototype for set_opt_overflow_unsafe_transform()

[r17807]

16 years agoAdd get_opt_overflow_unsafe_transform() option.
Michael Beck [Wed, 20 Feb 2008 13:14:13 +0000 (13:14 +0000)]
Add get_opt_overflow_unsafe_transform() option.
Currently this option allows x-c -> x + (-c) for unsigned.
If this option is enabled, we cannot do liner function test replacement ...

So, enable it AFTER OSR has run...

[r17804]

16 years agoindentation changed
Michael Beck [Wed, 20 Feb 2008 13:05:56 +0000 (13:05 +0000)]
indentation changed

[r17803]

16 years agoincrease development version
Michael Beck [Wed, 20 Feb 2008 13:05:05 +0000 (13:05 +0000)]
increase development version

[r17802]

16 years agoAdd cc_frame_on_caller_stk calling convention for allocation
Michael Beck [Wed, 20 Feb 2008 10:39:14 +0000 (10:39 +0000)]
Add cc_frame_on_caller_stk calling convention for allocation
the stack frame of a function on the caller's frame. Currently not used.

Improved dumping of calling conventions.

[r17799]

16 years agoHopefully better version of osr:
Michael Beck [Tue, 19 Feb 2008 13:04:54 +0000 (13:04 +0000)]
Hopefully better version of osr:
- better handling of register pressure
- lfr enabled again
- some strange (non-working) loop test removed

[r17784]

16 years agofixed commnet, indent
Michael Beck [Tue, 19 Feb 2008 10:31:35 +0000 (10:31 +0000)]
fixed commnet, indent

[r17783]

16 years agoBugFix: assertion fixed
Michael Beck [Mon, 18 Feb 2008 15:41:42 +0000 (15:41 +0000)]
BugFix: assertion fixed
reduce the number of produced Add(x, 0)

[r17777]

16 years ago- fix fehler109.c:
Michael Beck [Mon, 18 Feb 2008 14:51:14 +0000 (14:51 +0000)]
- fix fehler109.c:
do not exchange the Proj from Cmp, if it has more than one user this will fail ...

[r17776]

16 years agorelease notes
Matthias Braun [Mon, 18 Feb 2008 14:39:45 +0000 (14:39 +0000)]
release notes

[r17774]

16 years agocopy associated type instead of removing the lowered_flag
Matthias Braun [Mon, 18 Feb 2008 14:27:53 +0000 (14:27 +0000)]
copy associated type instead of removing the lowered_flag

[r17772]

16 years agobump version number for next release
Matthias Braun [Mon, 18 Feb 2008 14:27:25 +0000 (14:27 +0000)]
bump version number for next release

[r17771]

16 years agono declaration of free needed
Matthias Braun [Mon, 18 Feb 2008 14:19:15 +0000 (14:19 +0000)]
no declaration of free needed

[r17768]

16 years agowhen lowering 64bit Conds, construct new Cmps/Conds in the block of the Cond, not...
Matthias Braun [Sun, 17 Feb 2008 11:46:47 +0000 (11:46 +0000)]
when lowering 64bit Conds, construct new Cmps/Conds in the block of the Cond, not the compare

[r17758]

16 years agoremove tf_lowered_type flag when cloning method types (not sure if that is the correc...
Matthias Braun [Sun, 17 Feb 2008 11:45:48 +0000 (11:45 +0000)]
remove tf_lowered_type flag when cloning method types (not sure if that is the correct fix)

[r17757]

16 years agoadd lower_const_code, make begnuas skip Id nodes
Matthias Braun [Sat, 16 Feb 2008 15:32:49 +0000 (15:32 +0000)]
add lower_const_code, make begnuas skip Id nodes

[r17751]

16 years agoimplement bitfield dumping for new initializer style
Matthias Braun [Sat, 16 Feb 2008 11:56:41 +0000 (11:56 +0000)]
implement bitfield dumping for new initializer style

[r17749]

16 years agofix compile error in bespillremat
Matthias Braun [Sat, 16 Feb 2008 11:56:26 +0000 (11:56 +0000)]
fix compile error in bespillremat

[r17748]

16 years agoallow get_mode_one for mode_b
Matthias Braun [Sat, 16 Feb 2008 10:59:22 +0000 (10:59 +0000)]
allow get_mode_one for mode_b

[r17747]

16 years agofehler109
Matthias Braun [Fri, 15 Feb 2008 22:14:48 +0000 (22:14 +0000)]
fehler109

[r17746]

16 years agorelnotes for release
Matthias Braun [Thu, 14 Feb 2008 15:15:27 +0000 (15:15 +0000)]
relnotes for release

[r17724]

16 years agorelnotes for release
Matthias Braun [Thu, 14 Feb 2008 15:14:56 +0000 (15:14 +0000)]
relnotes for release

[r17723]

16 years agoneed to include obstack
Matthias Braun [Thu, 14 Feb 2008 15:03:56 +0000 (15:03 +0000)]
need to include obstack

[r17722]

16 years ago- copy libcore into libfirm
Matthias Braun [Thu, 14 Feb 2008 12:19:08 +0000 (12:19 +0000)]
- copy libcore into libfirm
- copy obstack into libfirm
- simplify configure/autoconf stuff

[r17714]

16 years agolittle helper script to easy creation of the file list
Matthias Braun [Thu, 14 Feb 2008 09:48:46 +0000 (09:48 +0000)]
little helper script to easy creation of the file list

[r17712]

16 years agoadd obstack and libcore to libfirm
Matthias Braun [Thu, 14 Feb 2008 09:31:04 +0000 (09:31 +0000)]
add obstack and libcore to libfirm

[r17711]

16 years agoremove empty describing files
Matthias Braun [Thu, 14 Feb 2008 09:25:49 +0000 (09:25 +0000)]
remove empty describing files

[r17710]

16 years agodon't mention LIBCORE in public headers
Matthias Braun [Wed, 13 Feb 2008 18:10:41 +0000 (18:10 +0000)]
don't mention LIBCORE in public headers

[r17699]

16 years agorename timing* to stat_timing* to avoid name clashes
Matthias Braun [Wed, 13 Feb 2008 18:10:15 +0000 (18:10 +0000)]
rename timing* to stat_timing* to avoid name clashes

[r17698]

16 years agouse libfirm timing facilities
Matthias Braun [Wed, 13 Feb 2008 18:00:20 +0000 (18:00 +0000)]
use libfirm timing facilities

[r17695]

16 years agolibfirm timing code adapted from libcore
Matthias Braun [Wed, 13 Feb 2008 17:59:23 +0000 (17:59 +0000)]
libfirm timing code adapted from libcore

[r17694]

16 years agobump version number for release
Matthias Braun [Wed, 13 Feb 2008 15:21:35 +0000 (15:21 +0000)]
bump version number for release

[r17689]

16 years agohandle failing tarval computations gracefully
Matthias Braun [Wed, 13 Feb 2008 15:20:13 +0000 (15:20 +0000)]
handle failing tarval computations gracefully

[r17688]

16 years agomore work on belady3 (still not ready yet)
Matthias Braun [Wed, 13 Feb 2008 15:19:34 +0000 (15:19 +0000)]
more work on belady3 (still not ready yet)

[r17687]

16 years agofix arm scheduler
Matthias Braun [Wed, 13 Feb 2008 15:19:10 +0000 (15:19 +0000)]
fix arm scheduler

[r17686]

16 years agoremove debug printf
Matthias Braun [Wed, 13 Feb 2008 15:18:43 +0000 (15:18 +0000)]
remove debug printf

[r17685]

16 years agofix string initializer emitting 1 char too much
Matthias Braun [Tue, 12 Feb 2008 21:48:07 +0000 (21:48 +0000)]
fix string initializer emitting 1 char too much

[r17679]

16 years ago- BugFix: don't create a Sync, if the memory predecessor of a Div node
Michael Beck [Mon, 11 Feb 2008 13:49:14 +0000 (13:49 +0000)]
- BugFix: don't create a Sync, if the memory predecessor of a Div node
is the memory of the consumed address.
- C99 feature removed

[r17657]

16 years agosvn:eol-style native, svn:keywords Id.
Christoph Mallon [Thu, 7 Feb 2008 15:25:24 +0000 (15:25 +0000)]
svn:eol-style native, svn:keywords Id.

[r17627]

16 years agoFix errors and warnings.
Christoph Mallon [Thu, 7 Feb 2008 15:20:08 +0000 (15:20 +0000)]
Fix errors and warnings.

[r17626]

16 years agoAdded standalone grgen dumper for firm graphs
Andreas Schösser [Wed, 6 Feb 2008 17:51:27 +0000 (17:51 +0000)]
Added standalone grgen dumper for firm graphs

[r17621]

16 years agoAdded standalone grgen dumper for firm graphs
Andreas Schösser [Wed, 6 Feb 2008 17:48:35 +0000 (17:48 +0000)]
Added standalone grgen dumper for firm graphs

[r17620]

16 years agoAdded standalone grgen dumper for firm graphs
Andreas Schösser [Wed, 6 Feb 2008 17:47:44 +0000 (17:47 +0000)]
Added standalone grgen dumper for firm graphs

[r17619]

16 years agoimplement/fix assembler clobbers
Matthias Braun [Mon, 28 Jan 2008 14:00:19 +0000 (14:00 +0000)]
implement/fix assembler clobbers

[r17555]

16 years agoimplement/fix assembler clobbers
Matthias Braun [Mon, 28 Jan 2008 14:00:12 +0000 (14:00 +0000)]
implement/fix assembler clobbers

[r17554]

16 years agoset the right macro block header for to upper part of an splitted block
Michael Beck [Wed, 23 Jan 2008 13:55:19 +0000 (13:55 +0000)]
set the right macro block header for to upper part of an splitted block

[r17514]

16 years agomore fixes for part_block()
Michael Beck [Wed, 23 Jan 2008 13:26:08 +0000 (13:26 +0000)]
more fixes for part_block()

[r17513]

16 years agouse the new Phi list of blocks
Michael Beck [Wed, 23 Jan 2008 11:34:07 +0000 (11:34 +0000)]
use the new Phi list of blocks

[r17510]

16 years agoadd prototypes for *_Phi_next(), _Block_phis()
Michael Beck [Wed, 23 Jan 2008 11:33:35 +0000 (11:33 +0000)]
add prototypes for *_Phi_next(), _Block_phis()

[r17509]

16 years agotypo fixed
Michael Beck [Tue, 22 Jan 2008 17:04:38 +0000 (17:04 +0000)]
typo fixed

[r17504]

16 years ago- when fixing teh Phi list, use the new functions
Michael Beck [Tue, 22 Jan 2008 17:03:44 +0000 (17:03 +0000)]
- when fixing teh Phi list, use the new functions
- clean up

[r17503]

16 years agoBetter set support:
Michael Beck [Tue, 22 Jan 2008 15:28:07 +0000 (15:28 +0000)]
Better set support:
 - use better hash function
 - create a bigger array depending on the estimated node count

[r17499]

16 years ago- Phi nodes are now collected by collect_phiprojs() and stored into a phi-list attrib...
Michael Beck [Tue, 22 Jan 2008 15:24:17 +0000 (15:24 +0000)]
- Phi nodes are now collected by collect_phiprojs() and stored into a phi-list attribute of blocks
- collect_phiprojs() collects all partBlocks of an MacroBlock
- partBlock() now handles MacroBlocks better: the lower part of teh splittet block forms a new MacroBlock
- links should now be free even during construction ...

[r17498]

16 years agohonors the irg_inline_forced property
Michael Beck [Tue, 22 Jan 2008 14:04:45 +0000 (14:04 +0000)]
honors the irg_inline_forced property

[r17492]

16 years agoinlining should work again
Michael Beck [Tue, 22 Jan 2008 10:54:52 +0000 (10:54 +0000)]
inlining should work again

[r17489]