Jonas Fietz [Sat, 27 Feb 2010 01:32:34 +0000 (01:32 +0000)]
Fix documentation for init_irg_phase
[r27238]
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]
Jonas Fietz [Sat, 27 Feb 2010 01:32:33 +0000 (01:32 +0000)]
Replace the workqueue list with a waitq in vrp.c
[r27236]
Jonas Fietz [Sat, 27 Feb 2010 01:32:32 +0000 (01:32 +0000)]
set private functions to static in ir/ana/vrp.c
[r27235]
Jonas Fietz [Sat, 27 Feb 2010 01:32:32 +0000 (01:32 +0000)]
add some documentation to vrp.h
[r27234]
Jonas Fietz [Sat, 27 Feb 2010 01:32:31 +0000 (01:32 +0000)]
Replace if/else if cascade with switch(opcode)
[r27233]
Jonas Fietz [Sat, 27 Feb 2010 01:32:30 +0000 (01:32 +0000)]
Fix extraneous space and add config.h to vrp.c
[r27232]
Jonas Fietz [Sat, 27 Feb 2010 01:32:30 +0000 (01:32 +0000)]
Fix comments according to C89
Replace //-comments with traditional /*comments*/
[r27231]
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]
Michael Beck [Sat, 27 Feb 2010 00:13:18 +0000 (00:13 +0000)]
Add missing config.h include.
[r27229]
Michael Beck [Fri, 26 Feb 2010 22:32:33 +0000 (22:32 +0000)]
Fixed inverted condition: Linux have strtold, not windows (and cygwin).
[r27227]
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]
Matthias Braun [Fri, 26 Feb 2010 13:55:26 +0000 (13:55 +0000)]
the java frontend keeps methods in class types
[r27225]
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]
Matthias Braun [Fri, 26 Feb 2010 13:29:27 +0000 (13:29 +0000)]
fix bug where compound_graph_pathe were consider null
[r27223]
Christoph Mallon [Thu, 25 Feb 2010 12:44:16 +0000 (12:44 +0000)]
Remove the ugly and write-only variable cur_reg_set.
[r27219]
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]
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]
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]
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]
Christoph Mallon [Sat, 20 Feb 2010 11:58:19 +0000 (11:58 +0000)]
Prefer get_mode_all_one() over get_tarval_all_one().
[r27193]
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]
Christoph Mallon [Sat, 20 Feb 2010 11:49:17 +0000 (11:49 +0000)]
Prefer get_mode_{max,min}() over get_tarval_{max,min}().
[r27190]
Christoph Mallon [Sat, 20 Feb 2010 11:49:14 +0000 (11:49 +0000)]
Prefer get_mode_null() over get_tarval_null().
[r27189]
Christoph Mallon [Sat, 20 Feb 2010 11:49:07 +0000 (11:49 +0000)]
Prefer get_mode_one() over get_tarval_one().
[r27188]
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]
Christoph Mallon [Sat, 20 Feb 2010 08:57:19 +0000 (08:57 +0000)]
Correct indendation.
[r27184]
Christoph Mallon [Sat, 20 Feb 2010 08:57:14 +0000 (08:57 +0000)]
Remove unused emitter templates.
[r27183]
Christoph Mallon [Fri, 19 Feb 2010 21:50:39 +0000 (21:50 +0000)]
Remove address name SymConsts.
[r27182]
Christoph Mallon [Fri, 19 Feb 2010 10:19:16 +0000 (10:19 +0000)]
Update/correct documentation about SymConsts.
[r27180]
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]
Matthias Braun [Thu, 18 Feb 2010 14:49:36 +0000 (14:49 +0000)]
remove double declaration
[r27178]
Christian Helmer [Tue, 16 Feb 2010 17:01:36 +0000 (17:01 +0000)]
Fixed bug, partially reverted to an earlier version.
[r27176]
Christian Helmer [Tue, 16 Feb 2010 15:08:17 +0000 (15:08 +0000)]
Refactoring
[r27175]
Matthias Braun [Mon, 15 Feb 2010 13:45:37 +0000 (13:45 +0000)]
output 'x' instead of 'w' flag for text setions
[r27167]
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]
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]
Christoph Mallon [Sat, 13 Feb 2010 18:33:58 +0000 (18:33 +0000)]
Put a space after if/for/switch/while.
[r27153]
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]
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]
Matthias Braun [Sat, 13 Feb 2010 14:37:03 +0000 (14:37 +0000)]
fix warning, always use -m32 on mac assembler
[r27150]
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]
Matthias Braun [Sat, 13 Feb 2010 13:44:27 +0000 (13:44 +0000)]
fix intrinsics appearing in output
[r27148]
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]
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]
Christoph Mallon [Sat, 13 Feb 2010 11:51:14 +0000 (11:51 +0000)]
Put opening curly brace of functions on a separate line.
[r27145]
Christoph Mallon [Sat, 13 Feb 2010 11:29:01 +0000 (11:29 +0000)]
Ignore generated files.
[r27144]
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]
Matthias Braun [Fri, 12 Feb 2010 23:50:20 +0000 (23:50 +0000)]
fix linkonce for functions
[r27142]
Matthias Braun [Fri, 12 Feb 2010 22:52:29 +0000 (22:52 +0000)]
fix
[r27141]
Matthias Braun [Fri, 12 Feb 2010 22:34:41 +0000 (22:34 +0000)]
correct handling of local commons
[r27139]
Matthias Braun [Fri, 12 Feb 2010 21:57:05 +0000 (21:57 +0000)]
reimplement macho
[r27138]
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]
Matthias Braun [Fri, 12 Feb 2010 17:49:02 +0000 (17:49 +0000)]
fix warning
[r27134]
Matthias Braun [Fri, 12 Feb 2010 17:48:39 +0000 (17:48 +0000)]
don't ignore entities in Sels
[r27133]
Matthias Braun [Fri, 12 Feb 2010 16:12:12 +0000 (16:12 +0000)]
export/import visibility and linkageflags
[r27131]
Matthias Braun [Fri, 12 Feb 2010 14:34:24 +0000 (14:34 +0000)]
remove pointless message
[r27130]
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]
Michael Beck [Thu, 11 Feb 2010 15:01:03 +0000 (15:01 +0000)]
Update version.
[r27125]
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]
Sebastian Buchwald [Thu, 11 Feb 2010 14:49:36 +0000 (14:49 +0000)]
Fixed fehler176.
[r27122]
Michael Beck [Thu, 11 Feb 2010 13:59:30 +0000 (13:59 +0000)]
Kicked complicated but useless if.
[r27121]
Michael Beck [Thu, 11 Feb 2010 13:54:14 +0000 (13:54 +0000)]
Don't use malloc inside libFirm.
Kicked useless memory allocation and casts.
[r27120]
Michael Beck [Thu, 11 Feb 2010 13:49:31 +0000 (13:49 +0000)]
BugFix: fixed list_for_each_safe() instance.
C99 feature removed.
[r27119]
Michael Beck [Thu, 11 Feb 2010 13:45:44 +0000 (13:45 +0000)]
C99 feature removed.
[r27118]
Michael Beck [Thu, 11 Feb 2010 13:45:09 +0000 (13:45 +0000)]
Reformat ugly if sequence and renamed variables to make it mode readable.
Moved comments AFTER the ifs (where they belong to).
[r27117]
Matthias Braun [Thu, 11 Feb 2010 12:27:37 +0000 (12:27 +0000)]
fix weak external functions
[r27116]
Matthias Braun [Thu, 11 Feb 2010 12:27:09 +0000 (12:27 +0000)]
do not free the graph after emitting it (this should only change the peak memory allocation of firm marginally). The gas dumper needs the irg info sometimes.
[r27115]
Olaf Liebe [Thu, 11 Feb 2010 11:49:50 +0000 (11:49 +0000)]
Removed ir_common_linkages enum (wrong and not helpful)
[r27114]
Olaf Liebe [Thu, 11 Feb 2010 11:33:55 +0000 (11:33 +0000)]
Fixed name mangling for private entities
[r27113]
Matthias Braun [Thu, 11 Feb 2010 00:18:43 +0000 (00:18 +0000)]
allow several odd weak combinations
[r27110]
Matthias Braun [Wed, 10 Feb 2010 23:05:45 +0000 (23:05 +0000)]
support for local common symbols (whatever that is good for); introduce ir_visibility_private (not tested yet as they don't occur in C)
[r27109]
Matthias Braun [Wed, 10 Feb 2010 22:09:13 +0000 (22:09 +0000)]
put zero initialized entities into bss section (not just uninitialized ones); TLS entities should go to tbss or tdata
[r27108]
Sebastian Buchwald [Wed, 10 Feb 2010 15:28:15 +0000 (15:28 +0000)]
Fixed VRP bugs.
[r27107]
Matthias Braun [Wed, 10 Feb 2010 10:29:10 +0000 (10:29 +0000)]
fix
[r27106]
Matthias Braun [Wed, 10 Feb 2010 10:00:16 +0000 (10:00 +0000)]
make statev_sql commandlines similar to mysql commandlines
[r27103]
Jonas Fietz [Wed, 10 Feb 2010 03:33:51 +0000 (03:33 +0000)]
Fix bug when handling pn_Cmp_Lg with vrp info
[r27101]
Jonas Fietz [Wed, 10 Feb 2010 03:22:52 +0000 (03:22 +0000)]
Add optimizations for Proj after Cond using VRP
This uses the vrp information to evaluate int projs.
This optimizes cases like:
x |= 33;
y = x & 96;
to y = 1;
[r27100]
Jonas Fietz [Wed, 10 Feb 2010 02:47:40 +0000 (02:47 +0000)]
Add some optimizations for jumpthreading using vrp information
This uses the vrp information to expand the handling for constants to
handling ranges as well.
[r27098]
Jonas Fietz [Wed, 10 Feb 2010 02:47:39 +0000 (02:47 +0000)]
Add basic optimizations based on vrp info
This adds some basic optimizations, e.g. to calculate the value for some
nodes if it can be determined.
[r27097]
Jonas Fietz [Wed, 10 Feb 2010 02:47:38 +0000 (02:47 +0000)]
Add analysis for vrp information
This commit adds the basic analysis needed to derive vrp information. It
should not run infinetely, but there may be border cases.
There might be error conditions for which there are no checks yet.
Also, a lot of the derivations can still be improved.
[r27096]
Jonas Fietz [Wed, 10 Feb 2010 02:47:38 +0000 (02:47 +0000)]
Add dumper code for VRP information
This commit adds the code and prototypes for dumping vrp information
[r27095]
Jonas Fietz [Wed, 10 Feb 2010 02:47:36 +0000 (02:47 +0000)]
Add structures and initialization for VRP
This commit adds the neccessary attributes to each ir_node. It also adds
the initialization code and some prototypes for the graph_pass and some
support functions.
[r27094]
Olaf Liebe [Tue, 9 Feb 2010 14:02:01 +0000 (14:02 +0000)]
Fixed sizeof(long)-dependent case sorting and signedness of if-cascade comparisons
[r27093]
Christian Helmer [Tue, 9 Feb 2010 13:11:35 +0000 (13:11 +0000)]
Added missing do_loop_unrolling
[r27092]
Matthias Braun [Mon, 8 Feb 2010 23:30:09 +0000 (23:30 +0000)]
make firm compile again
[r27091]
Matthias Braun [Mon, 8 Feb 2010 23:16:36 +0000 (23:16 +0000)]
in case of missing tables create them even in update mode
[r27090]
Christian Helmer [Mon, 8 Feb 2010 16:32:46 +0000 (16:32 +0000)]
cparser now knows 'unroll-loops'.
[r27088]
Matthias Braun [Sun, 7 Feb 2010 23:16:32 +0000 (23:16 +0000)]
cleanup rework and extend statev_sql.py; it should be faster now and has a new mode to append results to an existing DB
[r27086]
Michael Beck [Sun, 7 Feb 2010 18:09:24 +0000 (18:09 +0000)]
Mux -> Abs works for unordered compare ...
[r27083]
Michael Beck [Sun, 7 Feb 2010 16:55:18 +0000 (16:55 +0000)]
Reverted r27079. Seems to be wrong.
[r27082]
Michael Beck [Sat, 6 Feb 2010 00:31:02 +0000 (00:31 +0000)]
BugFix: ins_permuted means inversed flags, not negated ...
[r27079]
Michael Beck [Sat, 6 Feb 2010 00:09:00 +0000 (00:09 +0000)]
Fixed setcc transform:
- test for t ==1 AFTER f == 0: this fixes fehler035.c
- disable sbb creation: reloader might change the cmp instruction yet
[r27078]
Matthias Braun [Fri, 5 Feb 2010 22:28:10 +0000 (22:28 +0000)]
constructors/destructors must not have a name
[r27077]
Christoph Mallon [Fri, 5 Feb 2010 22:23:49 +0000 (22:23 +0000)]
Do not emit a label if a entity has no name.
[r27076]
Christoph Mallon [Fri, 5 Feb 2010 22:23:21 +0000 (22:23 +0000)]
Support dtor sections on Mach-O.
[r27075]
Matthias Braun [Fri, 5 Feb 2010 20:34:41 +0000 (20:34 +0000)]
hack for mac
[r27064]
Matthias Braun [Fri, 5 Feb 2010 20:17:30 +0000 (20:17 +0000)]
mac gas doesn't get .octa
[r27063]
Matthias Braun [Fri, 5 Feb 2010 20:03:41 +0000 (20:03 +0000)]
fix all pic bases I could find
[r27062]
Matthias Braun [Fri, 5 Feb 2010 19:27:50 +0000 (19:27 +0000)]
fix another PIC problem
[r27061]