diff options
| author | joachimschmidt557 <joachim.schmidt557@outlook.com> | 2021-10-27 19:15:49 +0200 |
|---|---|---|
| committer | joachimschmidt557 <joachim.schmidt557@outlook.com> | 2021-10-31 09:22:24 +0100 |
| commit | 7fc89f64b46aa2c1430b3098281ec29d22419ee7 (patch) | |
| tree | d7b31cd37c4ac8c7c01bcdb354b3b6171cc977e3 /src/codegen.zig | |
| parent | 969bcb6a59eadb2ef46a9784286728a25d275c24 (diff) | |
| download | zig-7fc89f64b46aa2c1430b3098281ec29d22419ee7.tar.gz zig-7fc89f64b46aa2c1430b3098281ec29d22419ee7.zip | |
stage2 AArch64: begin transition to MIR
This commit includes the transitions for the following instructions:
- add_immediate
- b
- bl
- blr
- brk
- ldp
- ldr
- ldrb
- ldrh
- mov_to_from_sp
- mov_register
- movk
- movz
- nop
- ret
- stp
- str
- strb
- strh
- sub_immediate
- svc
Diffstat (limited to 'src/codegen.zig')
| -rw-r--r-- | src/codegen.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/codegen.zig b/src/codegen.zig index 82aa9430e8..b219b76fc6 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -88,9 +88,10 @@ pub fn generateFunction( .wasm64 => unreachable, // has its own code path .arm => return Function(.arm).generate(bin_file, src_loc, func, air, liveness, code, debug_output), .armeb => return Function(.armeb).generate(bin_file, src_loc, func, air, liveness, code, debug_output), - .aarch64 => return @import("arch/aarch64/CodeGen.zig").generate(.aarch64, bin_file, src_loc, func, air, liveness, code, debug_output), - .aarch64_be => return @import("arch/aarch64/CodeGen.zig").generate(.aarch64_be, bin_file, src_loc, func, air, liveness, code, debug_output), - .aarch64_32 => return @import("arch/aarch64/CodeGen.zig").generate(.aarch64_32, bin_file, src_loc, func, air, liveness, code, debug_output), + .aarch64, + .aarch64_be, + .aarch64_32, + => return @import("arch/aarch64/CodeGen.zig").generate(bin_file, src_loc, func, air, liveness, code, debug_output), //.arc => return Function(.arc).generate(bin_file, src_loc, func, air, liveness, code, debug_output), //.avr => return Function(.avr).generate(bin_file, src_loc, func, air, liveness, code, debug_output), //.bpfel => return Function(.bpfel).generate(bin_file, src_loc, func, air, liveness, code, debug_output), |
