Christoph Mallon [Tue, 22 Sep 2009 17:04:52 +0000 (17:04 +0000)]
Handle 16bit memory locations for xxxMem.
[r26610]
Christoph Mallon [Tue, 22 Sep 2009 16:55:43 +0000 (16:55 +0000)]
Implement binary emitters for AddMem8Bit, AndMem8Bit, OrMem8Bit, SubMem8Bit and XorMem8Bit.
[r26609]
Christoph Mallon [Tue, 22 Sep 2009 15:52:40 +0000 (15:52 +0000)]
Implement binary emitters for AddMem, AndMem, OrMem, SubMem and XorMem.
[r26608]
Christoph Mallon [Tue, 22 Sep 2009 15:51:53 +0000 (15:51 +0000)]
Only read the in-reg of a Cmp8Bit, if there is a register.
[r26607]
Christoph Mallon [Tue, 22 Sep 2009 14:40:34 +0000 (14:40 +0000)]
Correctly implement binary emitter for Cmp8Bit.
[r26606]
Christoph Mallon [Tue, 22 Sep 2009 12:28:57 +0000 (12:28 +0000)]
The eax special case for load/store can of course handle entities.
[r26605]
Christoph Mallon [Tue, 22 Sep 2009 12:26:37 +0000 (12:26 +0000)]
Make bemit_store() work for 8 and 16 bit, too.
[r26604]
Christoph Mallon [Tue, 22 Sep 2009 11:57:27 +0000 (11:57 +0000)]
Implement binary emitter for Cmp8Bit.
[r26603]
Christoph Mallon [Tue, 22 Sep 2009 11:47:55 +0000 (11:47 +0000)]
Implement binary emitter for DecMem, IncMem, NegMem and NotMem.
[r26602]
Thomas Bersch [Tue, 22 Sep 2009 11:42:32 +0000 (11:42 +0000)]
some unnecessary comments removed
[r26601]
Christoph Mallon [Tue, 22 Sep 2009 11:19:59 +0000 (11:19 +0000)]
Implement binary emitter for Perm.
[r26600]
Thomas Bersch [Tue, 22 Sep 2009 11:15:56 +0000 (11:15 +0000)]
Order Proj's in reverse perfect elimination order by their node-degree in the ifg
[r26599]
Thomas Bersch [Tue, 22 Sep 2009 11:09:50 +0000 (11:09 +0000)]
IFG Data-Structure to PBQP CopyOpt Data-Structure added
[r26597]
Christoph Mallon [Tue, 22 Sep 2009 10:43:09 +0000 (10:43 +0000)]
Fix the binary emitter for Set: The pnc must be massaged a bit, before it can be used.
[r26596]
Christoph Mallon [Tue, 22 Sep 2009 10:34:41 +0000 (10:34 +0000)]
Implement binary emitter for Set.
[r26595]
Christoph Mallon [Tue, 22 Sep 2009 08:45:45 +0000 (08:45 +0000)]
Implement binary emitter for Store8Bit.
[r26594]
Christoph Mallon [Tue, 22 Sep 2009 08:38:04 +0000 (08:38 +0000)]
In bemit_mod_am() we must check for the ebp special case, if there is an index, too.
[r26593]
Christoph Mallon [Tue, 22 Sep 2009 08:09:39 +0000 (08:09 +0000)]
Implement binary emitter for IMul.
[r26592]
Christoph Mallon [Tue, 22 Sep 2009 07:30:12 +0000 (07:30 +0000)]
Implement binary emitter for Cwtl.
[r26591]
Christoph Mallon [Tue, 22 Sep 2009 07:27:06 +0000 (07:27 +0000)]
Implement binary emitter for Conv_I2I{,8Bit}.
[r26590]
Christoph Mallon [Tue, 22 Sep 2009 07:02:07 +0000 (07:02 +0000)]
Use bemit_unop() to implement bemit_call().
[r26589]
Christoph Mallon [Tue, 22 Sep 2009 06:57:47 +0000 (06:57 +0000)]
Correct AM test in bemit_unop().
[r26588]
Christoph Mallon [Tue, 22 Sep 2009 06:35:53 +0000 (06:35 +0000)]
ia32_IJmp needs the no-out-requirements hack, too.
[r26587]
Christoph Mallon [Tue, 22 Sep 2009 06:07:37 +0000 (06:07 +0000)]
Rewrite ModR/M+SIB generation in bemit_mod_am(). This corrects the problem, if there is no base, erroneously EBP was emitted as base.
[r26586]
Matthias Braun [Mon, 21 Sep 2009 22:34:46 +0000 (22:34 +0000)]
fix modam with base=ebp and index - MergeSort and QuickSort work
[r26585]
Matthias Braun [Mon, 21 Sep 2009 21:50:01 +0000 (21:50 +0000)]
fix emitting jne, now queens works :)
[r26584]
Matthias Braun [Mon, 21 Sep 2009 21:33:15 +0000 (21:33 +0000)]
implement PopMem, PopEbp, fix push register, fix some unops
[r26583]
Matthias Braun [Mon, 21 Sep 2009 20:31:57 +0000 (20:31 +0000)]
fix binary emitter for cmp with addressmode and immediate
[r26581]
Christoph Mallon [Mon, 21 Sep 2009 19:38:13 +0000 (19:38 +0000)]
Add missing \n.
[r26579]
Christoph Mallon [Mon, 21 Sep 2009 19:33:28 +0000 (19:33 +0000)]
Implement binary emitter for test.
[r26578]
Christoph Mallon [Mon, 21 Sep 2009 19:32:28 +0000 (19:32 +0000)]
In bemit_binop_with_imm() use in-reg, beacuse some instructions (cmp, test) have no out-reg.
[r26577]
Christoph Mallon [Mon, 21 Sep 2009 17:52:15 +0000 (17:52 +0000)]
Implement binary emitters for inc and dec.
[r26573]
Christoph Mallon [Mon, 21 Sep 2009 17:42:40 +0000 (17:42 +0000)]
Implement binary emitters for shifts and rotates.
[r26572]
Matthias Braun [Mon, 21 Sep 2009 16:55:44 +0000 (16:55 +0000)]
added jump emitters (only far jump at the moment)
[r26571]
Christoph Mallon [Mon, 21 Sep 2009 15:11:05 +0000 (15:11 +0000)]
Implement bemit_call() with AM.
[r26570]
Matthias Braun [Mon, 21 Sep 2009 14:42:13 +0000 (14:42 +0000)]
fix strange bug introduced in refactoring (a half-written if)
[r26569]
Matthias Braun [Mon, 21 Sep 2009 14:37:17 +0000 (14:37 +0000)]
fix bug introduced in refactoring: displacement only modam used wrong modrm byte
[r26568]
Matthias Braun [Mon, 21 Sep 2009 14:03:49 +0000 (14:03 +0000)]
fix cltd
[r26567]
Matthias Braun [Mon, 21 Sep 2009 13:58:21 +0000 (13:58 +0000)]
fix relative entity emitter
[r26566]
Christoph Mallon [Mon, 21 Sep 2009 13:24:29 +0000 (13:24 +0000)]
When using only %esp in AM, which must use a SIB byte, set the index to esp, too, which means no index.
[r26565]
Christoph Mallon [Mon, 21 Sep 2009 13:16:31 +0000 (13:16 +0000)]
Correct three bugs in bemit_incsp(): Offset 0 must emit no code, get_signed_imm_size() returns size in byte, not bits, IncSP -128 is a 4 byte offset, because the value gets negated (i.e. addl $128, %esp is emitted).
[r26564]
Matthias Braun [Mon, 21 Sep 2009 10:52:28 +0000 (10:52 +0000)]
do creation and merge of affinity classes in 1 pass
[r26560]
Matthias Braun [Mon, 21 Sep 2009 10:51:56 +0000 (10:51 +0000)]
emit statev times in usec
[r26559]
Christoph Mallon [Mon, 21 Sep 2009 09:00:17 +0000 (09:00 +0000)]
... and the range of a signed 16bit word is -32768 <= x < 32768, not x < 32767.
[r26558]
Christoph Mallon [Mon, 21 Sep 2009 08:58:36 +0000 (08:58 +0000)]
The range of a singed byte is -128 <= x < 128, not -127 <= x and x <= 128.
[r26557]
Christoph Mallon [Mon, 21 Sep 2009 08:55:30 +0000 (08:55 +0000)]
s#/*fallthrough*/#/* FALLTHROUGH */# so lint is happy.
[r26556]
Sebastian Buchwald [Mon, 21 Sep 2009 08:05:26 +0000 (08:05 +0000)]
Connect Projs and their predecessors by nearedges instead of edges.
[r26555]
Michael Beck [Sun, 20 Sep 2009 10:01:38 +0000 (10:01 +0000)]
More opcodes.
[r26553]
Michael Beck [Sun, 20 Sep 2009 03:12:49 +0000 (03:12 +0000)]
Refactored binary emitter:
- support more encoding
- clean up logic
- first steps to generate from spec ...
[r26552]
Michael Beck [Sat, 19 Sep 2009 09:21:59 +0000 (09:21 +0000)]
- removed C99 features
[r26551]
Michael Beck [Sat, 19 Sep 2009 09:21:28 +0000 (09:21 +0000)]
- Active Perl 5.6 cannot cope with "${name}[]" in HERE document, replaced by "${name} []"
[r26550]
Matthias Braun [Fri, 18 Sep 2009 17:48:23 +0000 (17:48 +0000)]
- further refactoring and finally eliminated the callback for get_out_reg_reqs
- Introduced be_Start which is now used instead of iro_Start+be_RegParams
- further cleanups and fixes along the way
[r26549]
Sebastian Buchwald [Fri, 18 Sep 2009 13:44:09 +0000 (13:44 +0000)]
Fixed some problems due to refactoring in previous revisions.
[r26548]
Sebastian Buchwald [Fri, 18 Sep 2009 12:47:57 +0000 (12:47 +0000)]
Fixed some wrong nodes.
[r26547]
Thomas Bersch [Fri, 18 Sep 2009 12:34:56 +0000 (12:34 +0000)]
only for debugging
[r26545]
Matthias Braun [Fri, 18 Sep 2009 09:18:32 +0000 (09:18 +0000)]
- Reworked backends to put out register_requirements into backend_info_t
- Add a generic requirements+register+flag dumper to bearch; This avoids all
backends/benode having their own slightly different dumpers
- Lots of cleanups in the backends along the way
[r26542]
Sebastian Buchwald [Thu, 17 Sep 2009 14:41:54 +0000 (14:41 +0000)]
Set irg birg.
[r26541]
Matthias Braun [Thu, 17 Sep 2009 14:16:20 +0000 (14:16 +0000)]
- Bigger refactoring and cleanup in backend:
* benodes store the out register requirements in backend_info now
(this is work towards killing the register_requirement callbacks)
* ir_graph has a pointer to beirg now
* Other cleanups
[r26540]
Matthias Braun [Thu, 17 Sep 2009 14:12:40 +0000 (14:12 +0000)]
experimental beginning of a binary emitter I had lying around here
[r26539]
Sebastian Buchwald [Thu, 17 Sep 2009 13:53:35 +0000 (13:53 +0000)]
Moved some ia32 independent code to bemain.
[r26538]
Sebastian Buchwald [Thu, 17 Sep 2009 12:12:17 +0000 (12:12 +0000)]
Start block isn't a special case anymore (and now get the old node nr).
[r26537]
Sebastian Buchwald [Thu, 17 Sep 2009 09:54:55 +0000 (09:54 +0000)]
Fixed bug that always sets profiled execfreq to zero.
[r26536]
Matthias Braun [Thu, 17 Sep 2009 08:03:27 +0000 (08:03 +0000)]
rename benode_t.h to benode.h, remove some unused code
[r26535]
Matthias Braun [Thu, 17 Sep 2009 07:29:13 +0000 (07:29 +0000)]
unnecessary map
[r26534]
Sebastian Buchwald [Wed, 16 Sep 2009 21:17:54 +0000 (21:17 +0000)]
Set type state to fixed_layout to make beabi happy.
[r26533]
Sebastian Buchwald [Wed, 16 Sep 2009 20:50:40 +0000 (20:50 +0000)]
Connect profile code to initial Memory.
[r26532]
Matthias Braun [Wed, 16 Sep 2009 11:52:53 +0000 (11:52 +0000)]
small optimisation (avoid some arch_irn_consider_in_regalloc
[r26531]
Michael Beck [Sun, 13 Sep 2009 19:41:49 +0000 (19:41 +0000)]
- add graph pass for edges_verify()
[r26529]
Michael Beck [Sat, 12 Sep 2009 21:06:33 +0000 (21:06 +0000)]
- C99 features removed
- fixed warning
[r26528]
Matthias Braun [Fri, 11 Sep 2009 14:28:30 +0000 (14:28 +0000)]
inline arch_get_register_req_out to make the backend slightly faster
[r26526]
Matthias Braun [Fri, 11 Sep 2009 07:19:23 +0000 (07:19 +0000)]
LC_OPT_ENT_BOOL needs an int
[r26520]
Sebastian Buchwald [Thu, 10 Sep 2009 12:41:56 +0000 (12:41 +0000)]
typos
[r26519]
Christoph Mallon [Thu, 10 Sep 2009 11:49:39 +0000 (11:49 +0000)]
libcore wants int, not bool.
[r26518]
Matthias Braun [Thu, 10 Sep 2009 11:35:56 +0000 (11:35 +0000)]
we need last_uses even without preferences
[r26517]
Matthias Braun [Thu, 10 Sep 2009 11:24:49 +0000 (11:24 +0000)]
small bugfix/cleanup of phi preference propagation
[r26516]
Matthias Braun [Thu, 10 Sep 2009 11:24:00 +0000 (11:24 +0000)]
add commandline options to disable preference, congruence classes and phi register propagation
[r26515]
Christoph Mallon [Thu, 10 Sep 2009 08:17:53 +0000 (08:17 +0000)]
Correct typos.
[r26514]
Sebastian Buchwald [Wed, 9 Sep 2009 23:15:27 +0000 (23:15 +0000)]
Fixed codegen/wrong_execfreq.c from r26508.
[r26513]
Matthias Braun [Wed, 9 Sep 2009 14:28:18 +0000 (14:28 +0000)]
don't classify Proj nodes
[r26507]
Matthias Braun [Wed, 9 Sep 2009 12:56:32 +0000 (12:56 +0000)]
multi level optimistic split
[r26505]
Christoph Mallon [Wed, 9 Sep 2009 10:55:50 +0000 (10:55 +0000)]
Correct wrong DBG_OPT_ALGSIM classification.
[r26504]
Christoph Mallon [Wed, 9 Sep 2009 10:52:13 +0000 (10:52 +0000)]
Today's localopt: a * (1 << x) -> a << x.
[r26503]
Matthias Braun [Mon, 7 Sep 2009 14:28:40 +0000 (14:28 +0000)]
return 0 for number of outputs for nodes without backend info
[r26502]
Matthias Braun [Mon, 7 Sep 2009 14:00:04 +0000 (14:00 +0000)]
give fewer penalties to neighbors of uses with multiple allowed registers
[r26501]
Sebastian Buchwald [Mon, 7 Sep 2009 07:37:04 +0000 (07:37 +0000)]
Added missing declaration.
[r26500]
Sebastian Buchwald [Sun, 6 Sep 2009 21:31:36 +0000 (21:31 +0000)]
Use module mechanism to register copy minimization algorithms.
[r26498]
Michael Beck [Sun, 6 Sep 2009 09:16:52 +0000 (09:16 +0000)]
- removed C99 features
[r26496]
Matthias Braun [Sat, 5 Sep 2009 15:54:04 +0000 (15:54 +0000)]
allow final_cost pointer to be NULL
[r26495]
Matthias Braun [Sat, 5 Sep 2009 15:53:20 +0000 (15:53 +0000)]
avoid putting interfering stuff into the same congruence class
[r26494]
Sebastian Buchwald [Fri, 4 Sep 2009 21:49:26 +0000 (21:49 +0000)]
- removed remnant of copyheur3
- use name copyopt instead of copycoal
[r26493]
Sebastian Buchwald [Fri, 4 Sep 2009 21:20:37 +0000 (21:20 +0000)]
Added some comments.
[r26492]
Sebastian Buchwald [Fri, 4 Sep 2009 18:15:54 +0000 (18:15 +0000)]
We have already asserted the condition.
[r26491]
Sebastian Buchwald [Fri, 4 Sep 2009 14:26:42 +0000 (14:26 +0000)]
We need config.h to know whether FIRM_KAPS is defined.
[r26489]
Matthias Braun [Fri, 4 Sep 2009 13:19:44 +0000 (13:19 +0000)]
new heursitic for good coloring order; add utility function to generate a postorder
[r26488]
Matthias Braun [Fri, 4 Sep 2009 13:18:57 +0000 (13:18 +0000)]
only compile pbqp stuff if pbqp defines are enabled
[r26487]
Thomas Bersch [Fri, 4 Sep 2009 10:52:06 +0000 (10:52 +0000)]
- added assert for correct PBQP solution
- removed printf
[r26485]
Thomas Bersch [Fri, 4 Sep 2009 10:44:26 +0000 (10:44 +0000)]
Initial version of PBQP copy minimization.
[r26484]
Matthias Braun [Thu, 3 Sep 2009 16:51:37 +0000 (16:51 +0000)]
tweak optimistic split heuristic to take execfreq of the potential copy into account
[r26483]
Matthias Braun [Thu, 3 Sep 2009 16:32:03 +0000 (16:32 +0000)]
align stackframe to 4 bytes to avoid bad esp alignments
[r26480]
Matthias Braun [Thu, 3 Sep 2009 14:45:30 +0000 (14:45 +0000)]
improve hack to also work when the value has been 'permed'
[r26478]