aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler/aro/assembly_backend.zig
blob: 1818b6ba9b4e01bc2f2d505a299423470369635a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const std = @import("std");

const aro = @import("aro");

pub const x86_64 = @import("assembly_backend/x86_64.zig");

pub fn genAsm(target: std.Target, tree: *const aro.Tree) aro.Compilation.Error!aro.Assembly {
    return switch (target.cpu.arch) {
        .x86_64 => x86_64.genAsm(tree),
        else => std.debug.panic("genAsm not implemented: {s}", .{@tagName(target.cpu.arch)}),
    };
}