| 1 | const std = @import("std"); |
| 2 | |
| 3 | const aro = @import("aro"); |
| 4 | |
| 5 | pub const x86_64 = @import("assembly_backend/x86_64.zig"); |
| 6 | |
| 7 | pub fn genAsm(target: std.Target, tree: *const aro.Tree) aro.Compilation.Error!aro.Assembly { |
| 8 | return switch (target.cpu.arch) { |
| 9 | .x86_64 => x86_64.genAsm(tree), |
| 10 | else => std.debug.panic("genAsm not implemented: {s}", .{@tagName(target.cpu.arch)}), |
| 11 | }; |
| 12 | } |