| ... | ... | @@ -1,6 +1,7 @@ |
| 1 | 1 | //! SPARCv9 codegen. |
| 2 | 2 | //! This lowers AIR into MIR. |
| 3 | 3 | const std = @import("std"); |
| 4 | const assert = std.debug.assert; |
| 4 | 5 | const builtin = @import("builtin"); |
| 5 | 6 | const link = @import("../../link.zig"); |
| 6 | 7 | const Module = @import("../../Module.zig"); |
| ... | ... | @@ -8,6 +9,7 @@ const Air = @import("../../Air.zig"); |
| 8 | 9 | const Mir = @import("Mir.zig"); |
| 9 | 10 | const Emit = @import("Emit.zig"); |
| 10 | 11 | const Liveness = @import("../../Liveness.zig"); |
| 12 | const build_options = @import("build_options"); |
| 11 | 13 | |
| 12 | 14 | const GenerateSymbolError = @import("../../codegen.zig").GenerateSymbolError; |
| 13 | 15 | const FnResult = @import("../../codegen.zig").FnResult; |
| ... | ... | @@ -35,5 +37,11 @@ pub fn generate( |
| 35 | 37 | _ = code; |
| 36 | 38 | _ = debug_output; |
| 37 | 39 | |
| 40 | if (build_options.skip_non_native and builtin.cpu.arch != bin_file.options.target.cpu.arch) { |
| 41 | @panic("Attempted to compile for architecture that was disabled by build configuration"); |
| 42 | } |
| 43 | |
| 44 | assert(module_fn.owner_decl.has_tv); |
| 45 | |
| 38 | 46 | @panic("TODO implement SPARCv9 codegen"); |
| 39 | 47 | } |