master
1const std = @import("std");
2
3const aro = @import("aro");
4
5pub const x86_64 = @import("assembly_backend/x86_64.zig");
6
7pub 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}