diff options
| author | Koakuma <koachan@protonmail.com> | 2022-03-19 06:09:46 +0700 |
|---|---|---|
| committer | Koakuma <koachan@protonmail.com> | 2022-03-19 06:09:46 +0700 |
| commit | 93b16de4b4dc25a9e2fe076a5a992a85afc51ade (patch) | |
| tree | c6fdc278b5772cf4115250a5e910200948b80dfd /src/codegen.zig | |
| parent | 7579f14e0fff29e6486aef1f5c34d2fcd61cc108 (diff) | |
| download | zig-93b16de4b4dc25a9e2fe076a5a992a85afc51ade.tar.gz zig-93b16de4b4dc25a9e2fe076a5a992a85afc51ade.zip | |
stage2 sparcv9: Add placeholder files and generate() function
Add placeholder files for Codegen, Emit, and Mir stages, complete with
a placeholder implementation of generate() to make it able to be plugged in
to the frontend. At the moment the implementation just panics, it'll be
worked on incrementally later.
Also, this registers the sparcv9 backend files into CMakeLists.txt.
Diffstat (limited to 'src/codegen.zig')
| -rw-r--r-- | src/codegen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.zig b/src/codegen.zig index 6d5e140dca..0558c9c4f4 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -108,7 +108,7 @@ pub fn generateFunction( //.riscv32 => return Function(.riscv32).generate(bin_file, src_loc, func, air, liveness, code, debug_output), .riscv64 => return @import("arch/riscv64/CodeGen.zig").generate(bin_file, src_loc, func, air, liveness, code, debug_output), //.sparc => return Function(.sparc).generate(bin_file, src_loc, func, air, liveness, code, debug_output), - //.sparcv9 => return Function(.sparcv9).generate(bin_file, src_loc, func, air, liveness, code, debug_output), + .sparcv9 => return @import("arch/sparcv9/CodeGen.zig").generate(bin_file, src_loc, func, air, liveness, code, debug_output), //.sparcel => return Function(.sparcel).generate(bin_file, src_loc, func, air, liveness, code, debug_output), //.s390x => return Function(.s390x).generate(bin_file, src_loc, func, air, liveness, code, debug_output), //.tce => return Function(.tce).generate(bin_file, src_loc, func, air, liveness, code, debug_output), |
