libfirm
14 years agofix various warnings reported by cparser
Matthias Braun [Mon, 15 Mar 2010 15:17:41 +0000 (15:17 +0000)]
fix various warnings reported by cparser

[r27300]

14 years agokill the concept of an unknown register - it just heavily complicates code for nearly...
Matthias Braun [Mon, 15 Mar 2010 14:29:13 +0000 (14:29 +0000)]
kill the concept of an unknown register - it just heavily complicates code for nearly no gain

[r27297]

14 years agoremove unused vars
Matthias Braun [Mon, 15 Mar 2010 08:32:26 +0000 (08:32 +0000)]
remove unused vars

[r27295]

14 years agorework bitset to use raw_bitset
Matthias Braun [Fri, 12 Mar 2010 19:04:19 +0000 (19:04 +0000)]
rework bitset to use raw_bitset

[r27293]

14 years agorename popcnt to popcount; avoid inline assembly in favor of gcc builtin functions
Matthias Braun [Fri, 12 Mar 2010 12:38:02 +0000 (12:38 +0000)]
rename popcnt to popcount; avoid inline assembly in favor of gcc builtin functions

[r27291]

14 years agoupdate jinja version
Matthias Braun [Fri, 12 Mar 2010 12:36:56 +0000 (12:36 +0000)]
update jinja version

[r27290]

14 years agono need for obstack_printf from libc (we provide our own); no need to explicitely...
Matthias Braun [Thu, 11 Mar 2010 17:40:59 +0000 (17:40 +0000)]
no need for obstack_printf from libc (we provide our own); no need to explicitely check for C89 function strerror

[r27289]

14 years ago- fixed off-by-one error after phase refactoring
Michael Beck [Thu, 11 Mar 2010 09:00:23 +0000 (09:00 +0000)]
- fixed off-by-one error after phase refactoring
- deleted header file of already gone irdump_grgen.c

[r27287]

14 years agofix stupid error in my last commit
Matthias Braun [Wed, 10 Mar 2010 17:45:14 +0000 (17:45 +0000)]
fix stupid error in my last commit

[r27286]

14 years ago- fix most of the -Wunreachable-code and -Wlogical-op warnings
Matthias Braun [Wed, 10 Mar 2010 17:25:21 +0000 (17:25 +0000)]
- fix most of the -Wunreachable-code and -Wlogical-op warnings
- rework ir_phase API
(sorry for mixing these 2 things into 1 commit)

[r27285]

14 years agomake firm (mostly) -Wmissing-prototypes clean
Matthias Braun [Tue, 9 Mar 2010 21:14:15 +0000 (21:14 +0000)]
make firm (mostly) -Wmissing-prototypes clean

[r27277]

14 years agonot used anymore (you can revive it from svn if needed)
Matthias Braun [Tue, 9 Mar 2010 19:54:04 +0000 (19:54 +0000)]
not used anymore (you can revive it from svn if needed)

[r27276]

14 years agonoone was using these _verbose flags
Matthias Braun [Tue, 9 Mar 2010 19:51:50 +0000 (19:51 +0000)]
noone was using these _verbose flags

[r27275]

14 years agofix doxygen errors and warnings; add some missing declarations
Matthias Braun [Tue, 9 Mar 2010 15:38:51 +0000 (15:38 +0000)]
fix doxygen errors and warnings; add some missing declarations

[r27274]

14 years agomerge common graph copying code; move dead code elimination into an own file
Matthias Braun [Sun, 7 Mar 2010 22:21:24 +0000 (22:21 +0000)]
merge common graph copying code; move dead code elimination into an own file

[r27271]

14 years agoexchange (brain damaged) defines with inline functions
Matthias Braun [Sun, 7 Mar 2010 22:20:43 +0000 (22:20 +0000)]
exchange (brain damaged) defines with inline functions

[r27270]

14 years agoforgot to check for dead blocks in 1 case
Matthias Braun [Sun, 7 Mar 2010 20:21:31 +0000 (20:21 +0000)]
forgot to check for dead blocks in 1 case

[r27268]

14 years agomerge similar Load von non-null address optimisations and make it a localopt only
Matthias Braun [Sun, 7 Mar 2010 20:16:41 +0000 (20:16 +0000)]
merge similar Load von non-null address optimisations and make it a localopt only

[r27267]

14 years agothe walking strategy in the dominance calculation doesn't always find all dead blocks...
Matthias Braun [Sun, 7 Mar 2010 17:28:47 +0000 (17:28 +0000)]
the walking strategy in the dominance calculation doesn't always find all dead blocks - try to ignore them

[r27266]

14 years ago- cleanup and simplify inlining code
Matthias Braun [Sun, 7 Mar 2010 15:13:00 +0000 (15:13 +0000)]
- cleanup and simplify inlining code
- remove a bunch of code which unexpectedly dependent on current_ir_graph being
  set to something
- fix unnecessary double creation of backedge arrays in some cases

[r27265]

14 years agolabel start and end block in dumps
Matthias Braun [Sun, 7 Mar 2010 11:29:17 +0000 (11:29 +0000)]
label start and end block in dumps

[r27264]

14 years agofix warning
Matthias Braun [Sat, 6 Mar 2010 17:39:38 +0000 (17:39 +0000)]
fix warning

[r27259]

14 years agoMinor cleanup.
Christoph Mallon [Sat, 6 Mar 2010 10:49:06 +0000 (10:49 +0000)]
Minor cleanup.

[r27257]

14 years agoCorrect a subtle bug in the ia32 backend: Sub(x, x) triggered that the Neg+Add trick...
Christoph Mallon [Sat, 6 Mar 2010 10:49:03 +0000 (10:49 +0000)]
Correct a subtle bug in the ia32 backend: Sub(x, x) triggered that the Neg+Add trick was used, which resulted in incorrect code.

[r27256]

14 years agoBugFix: allow method entities to be initialized by an const_initializer.
Michael Beck [Sat, 6 Mar 2010 02:29:41 +0000 (02:29 +0000)]
BugFix: allow method entities to be initialized by an const_initializer.

[r27255]

14 years agoalloc has a count not a size argument, reflect this in method names
Matthias Braun [Wed, 3 Mar 2010 14:51:41 +0000 (14:51 +0000)]
alloc has a count not a size argument, reflect this in method names

[r27254]

14 years ago- remove block parameter from new_r_Proj and new_rd_Proj
Matthias Braun [Mon, 1 Mar 2010 13:38:45 +0000 (13:38 +0000)]
- remove block parameter from new_r_Proj and new_rd_Proj
- cleanup ir_spec generation a bit

[r27251]

14 years agofix for my last commit
Matthias Braun [Mon, 1 Mar 2010 11:48:24 +0000 (11:48 +0000)]
fix for my last commit

[r27250]

14 years agoraw_bitset dependes on bitfiddle and other internals and isn't useful for public API
Matthias Braun [Mon, 1 Mar 2010 11:44:57 +0000 (11:44 +0000)]
raw_bitset dependes on bitfiddle and other internals and isn't useful for public API

[r27249]

14 years agoRemoved useless forward declaration of ir_phase.
Michael Beck [Sat, 27 Feb 2010 10:27:58 +0000 (10:27 +0000)]
Removed useless forward declaration of ir_phase.

[r27248]

14 years ago- removed C99 features
Michael Beck [Sat, 27 Feb 2010 10:21:12 +0000 (10:21 +0000)]
- removed C99 features
- kicked some superflous calls
- set svn properties

[r27247]

14 years ago- add missing include
Michael Beck [Sat, 27 Feb 2010 10:19:24 +0000 (10:19 +0000)]
- add missing include
- removed C99 feature

[r27246]

14 years ago- removed C99 features
Michael Beck [Sat, 27 Feb 2010 09:55:22 +0000 (09:55 +0000)]
- removed C99 features
- removed useless Id-node creation
- reordered conditions from cheap to expensive

[r27245]

14 years agoUndo wrong r27240 and fix an off-by-one bug when a phase is enlarged.
Michael Beck [Sat, 27 Feb 2010 09:40:48 +0000 (09:40 +0000)]
Undo wrong r27240 and fix an off-by-one bug when a phase is enlarged.

[r27244]

14 years agoremove doubly included config.h
Jonas Fietz [Sat, 27 Feb 2010 04:41:21 +0000 (04:41 +0000)]
remove doubly included config.h

Thanks to intelligent merging...

[r27243]

14 years agoCopy phase information in DCE to preserve it over index defragmentation
Jonas Fietz [Sat, 27 Feb 2010 04:38:39 +0000 (04:38 +0000)]
Copy phase information in DCE to preserve it over index defragmentation

We copy over the information for alive nodes so that it is not lost. The
alternative would be deleting it, otherwise the information is wrong as
the indices change.

[r27242]

14 years agoRemove code for range_node and bits_node
Jonas Fietz [Sat, 27 Feb 2010 01:32:37 +0000 (01:32 +0000)]
Remove code for range_node and bits_node

Remove support for relative ranges and relative bitsets

[r27241]

14 years agofix an offset bug in allocating memory for irg phases
Jonas Fietz [Sat, 27 Feb 2010 01:32:36 +0000 (01:32 +0000)]
fix an offset bug in allocating memory for irg phases

[r27240]

14 years agorewrite vrp scanning to use a phase instead of attrs in ir_node
Jonas Fietz [Sat, 27 Feb 2010 01:32:35 +0000 (01:32 +0000)]
rewrite vrp scanning to use a phase instead of attrs in ir_node

[r27239]

14 years agoFix documentation for init_irg_phase
Jonas Fietz [Sat, 27 Feb 2010 01:32:34 +0000 (01:32 +0000)]
Fix documentation for init_irg_phase

[r27238]

14 years agoCode cleanup in VRP code
Jonas Fietz [Sat, 27 Feb 2010 01:32:33 +0000 (01:32 +0000)]
Code cleanup in VRP code

Move declarations in blocks for each case

[r27237]

14 years agoReplace the workqueue list with a waitq in vrp.c
Jonas Fietz [Sat, 27 Feb 2010 01:32:33 +0000 (01:32 +0000)]
Replace the workqueue list with a waitq in vrp.c

[r27236]

14 years agoset private functions to static in ir/ana/vrp.c
Jonas Fietz [Sat, 27 Feb 2010 01:32:32 +0000 (01:32 +0000)]
set private functions to static in ir/ana/vrp.c

[r27235]

14 years agoadd some documentation to vrp.h
Jonas Fietz [Sat, 27 Feb 2010 01:32:32 +0000 (01:32 +0000)]
add some documentation to vrp.h

[r27234]

14 years agoReplace if/else if cascade with switch(opcode)
Jonas Fietz [Sat, 27 Feb 2010 01:32:31 +0000 (01:32 +0000)]
Replace if/else if cascade with switch(opcode)

[r27233]

14 years agoFix extraneous space and add config.h to vrp.c
Jonas Fietz [Sat, 27 Feb 2010 01:32:30 +0000 (01:32 +0000)]
Fix extraneous space and add config.h to vrp.c

[r27232]

14 years agoFix comments according to C89
Jonas Fietz [Sat, 27 Feb 2010 01:32:30 +0000 (01:32 +0000)]
Fix comments according to C89

Replace //-comments with traditional /*comments*/

[r27231]

14 years ago- ensure that the additional node size is struct-aligned
Michael Beck [Sat, 27 Feb 2010 00:15:25 +0000 (00:15 +0000)]
- ensure that the additional node size is struct-aligned
- reduced number of calls
- kicked C99 comment

[r27230]

14 years agoAdd missing config.h include.
Michael Beck [Sat, 27 Feb 2010 00:13:18 +0000 (00:13 +0000)]
Add missing config.h include.

[r27229]

14 years agoFixed inverted condition: Linux have strtold, not windows (and cygwin).
Michael Beck [Fri, 26 Feb 2010 22:32:33 +0000 (22:32 +0000)]
Fixed inverted condition: Linux have strtold, not windows (and cygwin).

[r27227]

14 years agonew_Block doesn't set current_block anymore; remove some unused and strange functions
Matthias Braun [Fri, 26 Feb 2010 13:56:32 +0000 (13:56 +0000)]
new_Block doesn't set current_block anymore; remove some unused and strange functions

[r27226]

14 years agothe java frontend keeps methods in class types
Matthias Braun [Fri, 26 Feb 2010 13:55:26 +0000 (13:55 +0000)]
the java frontend keeps methods in class types

[r27225]

14 years agothis assert seems to be wrong for the java frontend (and the C frontends never set...
Matthias Braun [Fri, 26 Feb 2010 13:53:23 +0000 (13:53 +0000)]
this assert seems to be wrong for the java frontend (and the C frontends never set peculiarity anyway)

[r27224]

14 years agofix bug where compound_graph_pathe were consider null
Matthias Braun [Fri, 26 Feb 2010 13:29:27 +0000 (13:29 +0000)]
fix bug where compound_graph_pathe were consider null

[r27223]

14 years agoRemove the ugly and write-only variable cur_reg_set.
Christoph Mallon [Thu, 25 Feb 2010 12:44:16 +0000 (12:44 +0000)]
Remove the ugly and write-only variable cur_reg_set.

[r27219]

14 years agoSimplify code: Do not handle Minus when creating immediates. The middle end should...
Christoph Mallon [Wed, 24 Feb 2010 15:53:45 +0000 (15:53 +0000)]
Simplify code: Do not handle Minus when creating immediates. The middle end should handle this.

[r27216]

14 years agocleanups and bugfixes in the tarval module and a new lower-level tarval interface...
Matthias Braun [Wed, 24 Feb 2010 15:04:40 +0000 (15:04 +0000)]
cleanups and bugfixes in the tarval module and a new lower-level tarval interface 'new_integer_tarval_from_str'

[r27211]

14 years agoFix a gammel-bug: try_create_Immediate() dropped the negation of Minus(Const())....
Christoph Mallon [Wed, 24 Feb 2010 14:12:35 +0000 (14:12 +0000)]
Fix a gammel-bug: try_create_Immediate() dropped the negation of Minus(Const()). In practice this never occurs, because constant folding folds the Minus.

[r27209]

14 years agoPut opening curly brace of functions on a separate line. Last time I missed some.
Christoph Mallon [Sun, 21 Feb 2010 06:46:02 +0000 (06:46 +0000)]
Put opening curly brace of functions on a separate line. Last time I missed some.

[r27195]

14 years agoPrefer get_mode_all_one() over get_tarval_all_one().
Christoph Mallon [Sat, 20 Feb 2010 11:58:19 +0000 (11:58 +0000)]
Prefer get_mode_all_one() over get_tarval_all_one().

[r27193]

14 years agoPrefer tarval_is_negative(x) over tarval_cmp(x, get_mode_null(get_tarval_mode(x))).
Christoph Mallon [Sat, 20 Feb 2010 11:49:20 +0000 (11:49 +0000)]
Prefer tarval_is_negative(x) over tarval_cmp(x, get_mode_null(get_tarval_mode(x))).

[r27191]

14 years agoPrefer get_mode_{max,min}() over get_tarval_{max,min}().
Christoph Mallon [Sat, 20 Feb 2010 11:49:17 +0000 (11:49 +0000)]
Prefer get_mode_{max,min}() over get_tarval_{max,min}().

[r27190]

14 years agoPrefer get_mode_null() over get_tarval_null().
Christoph Mallon [Sat, 20 Feb 2010 11:49:14 +0000 (11:49 +0000)]
Prefer get_mode_null() over get_tarval_null().

[r27189]

14 years agoPrefer get_mode_one() over get_tarval_one().
Christoph Mallon [Sat, 20 Feb 2010 11:49:07 +0000 (11:49 +0000)]
Prefer get_mode_one() over get_tarval_one().

[r27188]

14 years agoPrefer new_Const(get_mode_one(x)) over new_Const_long(x, 1).
Christoph Mallon [Sat, 20 Feb 2010 11:49:04 +0000 (11:49 +0000)]
Prefer new_Const(get_mode_one(x)) over new_Const_long(x, 1).

[r27187]

14 years agoCorrect indendation.
Christoph Mallon [Sat, 20 Feb 2010 08:57:19 +0000 (08:57 +0000)]
Correct indendation.

[r27184]

14 years agoRemove unused emitter templates.
Christoph Mallon [Sat, 20 Feb 2010 08:57:14 +0000 (08:57 +0000)]
Remove unused emitter templates.

[r27183]

14 years agoRemove address name SymConsts.
Christoph Mallon [Fri, 19 Feb 2010 21:50:39 +0000 (21:50 +0000)]
Remove address name SymConsts.

[r27182]

14 years agoUpdate/correct documentation about SymConsts.
Christoph Mallon [Fri, 19 Feb 2010 10:19:16 +0000 (10:19 +0000)]
Update/correct documentation about SymConsts.

[r27180]

14 years agosome cleanups in preparation for a new tarval_from_str interface
Matthias Braun [Thu, 18 Feb 2010 15:19:26 +0000 (15:19 +0000)]
some cleanups in preparation for a new tarval_from_str interface

[r27179]

14 years agoremove double declaration
Matthias Braun [Thu, 18 Feb 2010 14:49:36 +0000 (14:49 +0000)]
remove double declaration

[r27178]

14 years agoFixed bug, partially reverted to an earlier version.
Christian Helmer [Tue, 16 Feb 2010 17:01:36 +0000 (17:01 +0000)]
Fixed bug, partially reverted to an earlier version.

[r27176]

14 years agoRefactoring
Christian Helmer [Tue, 16 Feb 2010 15:08:17 +0000 (15:08 +0000)]
Refactoring

[r27175]

14 years agooutput 'x' instead of 'w' flag for text setions
Matthias Braun [Mon, 15 Feb 2010 13:45:37 +0000 (13:45 +0000)]
output 'x' instead of 'w' flag for text setions

[r27167]

14 years agoSome more cleanup: Put the return type and other specifiers on the same line as the...
Christoph Mallon [Sun, 14 Feb 2010 14:38:55 +0000 (14:38 +0000)]
Some more cleanup: Put the return type and other specifiers on the same line as the declarator of a function declaration.

[r27155]

14 years agoRepair URLs and comments, which were damaged almost six years ago.
Christoph Mallon [Sat, 13 Feb 2010 18:37:25 +0000 (18:37 +0000)]
Repair URLs and comments, which were damaged almost six years ago.

[r27154]

14 years agoPut a space after if/for/switch/while.
Christoph Mallon [Sat, 13 Feb 2010 18:33:58 +0000 (18:33 +0000)]
Put a space after if/for/switch/while.

[r27153]

14 years agoOutput proper local lables (starting with .L/L) for the PIC base, switch tables and...
Christoph Mallon [Sat, 13 Feb 2010 18:08:57 +0000 (18:08 +0000)]
Output proper local lables (starting with .L/L) for the PIC base, switch tables and stabs text marker, too.

[r27152]

14 years agoWe must be able to output 16 byte aligned long doubles, too.
Christoph Mallon [Sat, 13 Feb 2010 18:08:52 +0000 (18:08 +0000)]
We must be able to output 16 byte aligned long doubles, too.

[r27151]

14 years agofix warning, always use -m32 on mac assembler
Matthias Braun [Sat, 13 Feb 2010 14:37:03 +0000 (14:37 +0000)]
fix warning, always use -m32 on mac assembler

[r27150]

14 years agouse begnuas to emit block labels so we use the correct private prefix on mac and...
Matthias Braun [Sat, 13 Feb 2010 14:35:09 +0000 (14:35 +0000)]
use begnuas to emit block labels so we use the correct private prefix on mac and linux

[r27149]

14 years agofix intrinsics appearing in output
Matthias Braun [Sat, 13 Feb 2010 13:44:27 +0000 (13:44 +0000)]
fix intrinsics appearing in output

[r27148]

14 years agoUse .space instead of .zero. The latter is not known by all versions of GAS.
Christoph Mallon [Sat, 13 Feb 2010 12:54:32 +0000 (12:54 +0000)]
Use .space instead of .zero. The latter is not known by all versions of GAS.

[r27147]

14 years agoNon-local common symbols on mach-o must be .comm, not .lcomm, of course.
Christoph Mallon [Sat, 13 Feb 2010 12:44:48 +0000 (12:44 +0000)]
Non-local common symbols on mach-o must be .comm, not .lcomm, of course.

[r27146]

14 years agoPut opening curly brace of functions on a separate line.
Christoph Mallon [Sat, 13 Feb 2010 11:51:14 +0000 (11:51 +0000)]
Put opening curly brace of functions on a separate line.

[r27145]

14 years agoIgnore generated files.
Christoph Mallon [Sat, 13 Feb 2010 11:29:01 +0000 (11:29 +0000)]
Ignore generated files.

[r27144]

14 years agoRemove whitespace at EOL, remove empty lines at beginning and EOF, add missing newlin...
Christoph Mallon [Sat, 13 Feb 2010 11:17:42 +0000 (11:17 +0000)]
Remove whitespace at EOL, remove empty lines at beginning and EOF, add missing newline at EOF.

[r27143]

14 years agofix linkonce for functions
Matthias Braun [Fri, 12 Feb 2010 23:50:20 +0000 (23:50 +0000)]
fix linkonce for functions

[r27142]

14 years agofix
Matthias Braun [Fri, 12 Feb 2010 22:52:29 +0000 (22:52 +0000)]
fix

[r27141]

14 years agocorrect handling of local commons
Matthias Braun [Fri, 12 Feb 2010 22:34:41 +0000 (22:34 +0000)]
correct handling of local commons

[r27139]

14 years agoreimplement macho
Matthias Braun [Fri, 12 Feb 2010 21:57:05 +0000 (21:57 +0000)]
reimplement macho

[r27138]

14 years agoimplement several new section types including comdat for ELF, this potentially breaks...
Matthias Braun [Fri, 12 Feb 2010 17:54:53 +0000 (17:54 +0000)]
implement several new section types including comdat for ELF, this potentially breaks COFF and MACHO (will fix it asap)

[r27136]

14 years agofix warning
Matthias Braun [Fri, 12 Feb 2010 17:49:02 +0000 (17:49 +0000)]
fix warning

[r27134]

14 years agodon't ignore entities in Sels
Matthias Braun [Fri, 12 Feb 2010 17:48:39 +0000 (17:48 +0000)]
don't ignore entities in Sels

[r27133]

14 years agoexport/import visibility and linkageflags
Matthias Braun [Fri, 12 Feb 2010 16:12:12 +0000 (16:12 +0000)]
export/import visibility and linkageflags

[r27131]

14 years agoremove pointless message
Matthias Braun [Fri, 12 Feb 2010 14:34:24 +0000 (14:34 +0000)]
remove pointless message

[r27130]

14 years agoput my notes into the code so they don't get lost. Removed some unused stuff
Matthias Braun [Fri, 12 Feb 2010 08:50:51 +0000 (08:50 +0000)]
put my notes into the code so they don't get lost. Removed some unused stuff

[r27129]

14 years agoUpdate version.
Michael Beck [Thu, 11 Feb 2010 15:01:03 +0000 (15:01 +0000)]
Update version.

[r27125]

14 years agoAdd pass creating for loop inversion, unrolling, peeling and mux lowering.
Michael Beck [Thu, 11 Feb 2010 14:54:29 +0000 (14:54 +0000)]
Add pass creating for loop inversion, unrolling, peeling and mux lowering.

[r27123]

14 years agoFixed fehler176.
Sebastian Buchwald [Thu, 11 Feb 2010 14:49:36 +0000 (14:49 +0000)]
Fixed fehler176.

[r27122]