diff options
author | tomsmeding <tom.smeding@gmail.com> | 2018-01-05 23:42:24 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2018-01-05 23:42:24 +0100 |
commit | 3272b5d83d2e2167eed24748557df88bd66584ee (patch) | |
tree | 6b8f1574f6d6a44e11b74903516286f6249cb0b7 /main.c | |
parent | a298cb75c4f586b83b304c7dc66cb555693ea1b8 (diff) |
There's actually a chance that, correctly stringified, this will work
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -3,6 +3,8 @@ #include <assert.h> #include "compiler.h" #include "node.h" +#include "regalloc.h" +#include "to_assembly.h" extern FILE *yyin; @@ -30,9 +32,14 @@ int main(int argc, char **argv) { printf("\n"); struct ir *ir = compile(root_node); - ir_print(ir, stdout); - type_cache_cleanup(); + ir_print(ir, stdout); printf("\n"); + + struct allocation *alloc = regalloc(ir); + to_assembly(ir, alloc); + allocation_delete(alloc); + + ir_print(ir, stdout); printf("\n"); return result; } |