David Given
|
3a973a19f3
|
Move fatal(), warning() and aprintf() into the new data module (because they're
really useful).
|
2016-09-30 19:10:30 +02:00 |
|
David Given
|
0d246c0d73
|
Much better handling of fragments (no run-time code needed to distinguish them
from registers) and better handling of individual hops within a paragraph ---
no more ghastly hacks to try and distinguish the input from the output.
|
2016-09-29 22:06:04 +02:00 |
|
David Given
|
a0131fdb47
|
You know what, the type inference stuff is a complete red herring. What this
actually needs is a more intelligent register allocator. So, remove the type
inference.
|
2016-09-29 19:58:02 +02:00 |
|
David Given
|
4572f1b774
|
Actually, I don't need vregs: hops work just as well. Particularly if I
restructure things so that I don't need to walk the blasted ir / burg tree
every time I look at an instruction.
|
2016-09-27 23:38:47 +02:00 |
|
David Given
|
e77c5164cf
|
Fleshed out hops and vregs. The result is almost looking like code now ---
uncanny.
|
2016-09-27 00:19:45 +02:00 |
|
David Given
|
39aa672422
|
Sort of keep track of registers and register classes. Start walking the
generated instruction tree --- holy cow, they look like instructions!
|
2016-09-25 22:17:14 +02:00 |
|
David Given
|
bde5792b1a
|
Collapse several rule arrays into one; actually generate the array properly.
|
2016-09-25 17:14:54 +02:00 |
|
David Given
|
9f78e0b36b
|
Rethink the way patterns are mapped to rules; generate emitters (probably
badly).
|
2016-09-25 11:49:51 +02:00 |
|
David Given
|
7c028bdd45
|
We now record the code fragments to be emitted by each rule.
|
2016-09-25 00:21:46 +02:00 |
|
David Given
|
629e0ddfc6
|
Some instruction selection is now happening.
|
2016-09-24 22:46:08 +02:00 |
|
David Given
|
c8fcbe282a
|
More grammar changes.
|
2016-09-24 19:03:55 +02:00 |
|
David Given
|
2acc4ed29d
|
IR codes are now owned by mcgg; ir terminals are inserted into the table during
compilation (so you can refer to them).
|
2016-09-24 18:31:35 +02:00 |
|
David Given
|
1516657907
|
Crudely bolt on mcgg to mcg itself.
|
2016-09-24 17:20:40 +02:00 |
|