diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-04 22:50:17 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-04 22:50:17 +0100 |
| commit | ae72b3c5bd80fad917a7e2d78d9945b9f19adb52 (patch) | |
| tree | ab9709537749da05d33aa0888bc7e1aa3984ed03 /src/codegen/codegen.cpp | |
| parent | c2e3c3801acd8af32fcf6ea3ad2d3a2ddc94c870 (diff) | |
Tagged unions memory layout change; begin demo 002
Diffstat (limited to 'src/codegen/codegen.cpp')
| -rw-r--r-- | src/codegen/codegen.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/codegen/codegen.cpp b/src/codegen/codegen.cpp index 06b6952d0..a583af2c8 100644 --- a/src/codegen/codegen.cpp +++ b/src/codegen/codegen.cpp @@ -65,7 +65,7 @@ struct ssaGlobalVariable { DeclInfo *decl; }; -void ssa_gen_code(ssaGen *s) { +void ssa_gen_tree(ssaGen *s) { if (v_zero == NULL) { v_zero = ssa_make_value_constant(gb_heap_allocator(), t_int, make_exact_value_integer(0)); v_one = ssa_make_value_constant(gb_heap_allocator(), t_int, make_exact_value_integer(1)); @@ -203,7 +203,10 @@ void ssa_gen_code(ssaGen *s) { // m->layout = make_string("e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"); - ssa_print_llvm_ir(&s->output_file, &s->module); + } +void ssa_gen_ir(ssaGen *s) { + ssa_print_llvm_ir(&s->output_file, &s->module); +} |