diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-08-16 12:33:11 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-08-16 12:33:11 +0100 |
| commit | 5da6b74567793e15cf651be50edbfe407f42a714 (patch) | |
| tree | c629e026d2d3149b8868bd19972c28ec231071da /src/codegen | |
| parent | 6f7f82d87766d4d60165ea54f2ee760f9ad12bc0 (diff) | |
Compile with odin.exe and no run.bat
This is win32 only and requires CreateProcessA
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/print_llvm.cpp | 2 | ||||
| -rw-r--r-- | src/codegen/ssa.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/codegen/print_llvm.cpp b/src/codegen/print_llvm.cpp index 0f145d408..80bc320cb 100644 --- a/src/codegen/print_llvm.cpp +++ b/src/codegen/print_llvm.cpp @@ -561,7 +561,7 @@ void ssa_print_instr(gbFile *f, ssaModule *m, ssaValue *value) { ssa_fprintf(f, "\n"); } break; - case ssaInstr_CopyMemory: { + case ssaInstr_MemCopy: { ssa_fprintf(f, "call void @llvm.memmove.p0i8.p0i8."); ssa_print_type(f, m->sizes, t_int); ssa_fprintf(f, "(i8* "); diff --git a/src/codegen/ssa.cpp b/src/codegen/ssa.cpp index 7a0c587c5..f9393dcff 100644 --- a/src/codegen/ssa.cpp +++ b/src/codegen/ssa.cpp @@ -70,7 +70,7 @@ struct ssaProcedure { SSA_INSTR_KIND(Unreachable), \ SSA_INSTR_KIND(BinaryOp), \ SSA_INSTR_KIND(Call), \ - SSA_INSTR_KIND(CopyMemory), \ + SSA_INSTR_KIND(MemCopy), \ SSA_INSTR_KIND(ExtractElement), \ SSA_INSTR_KIND(InsertElement), \ SSA_INSTR_KIND(ShuffleVector), \ @@ -330,8 +330,8 @@ Type *ssa_instr_type(ssaInstr *instr) { return pt; } return NULL; - } - case ssaInstr_CopyMemory: + } break; + case ssaInstr_MemCopy: return t_int; case ssaInstr_ExtractElement: { @@ -592,7 +592,7 @@ ssaValue *ssa_make_instr_call(ssaProcedure *p, ssaValue *value, ssaValue **args, } ssaValue *ssa_make_instr_copy_memory(ssaProcedure *p, ssaValue *dst, ssaValue *src, ssaValue *len, i32 align, b32 is_volatile) { - ssaValue *v = ssa_alloc_instr(p->module->allocator, ssaInstr_CopyMemory); + ssaValue *v = ssa_alloc_instr(p->module->allocator, ssaInstr_MemCopy); v->instr.copy_memory.dst = dst; v->instr.copy_memory.src = src; v->instr.copy_memory.len = len; @@ -893,7 +893,7 @@ void ssa_end_procedure_body(ssaProcedure *proc) { case ssaInstr_Br: case ssaInstr_Ret: case ssaInstr_Unreachable: - case ssaInstr_CopyMemory: + case ssaInstr_MemCopy: case ssaInstr_StartupRuntime: continue; case ssaInstr_Call: |