aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm.zig7
-rw-r--r--src/codegen/spirv.zig3
2 files changed, 9 insertions, 1 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 9520f17a4b..21685a5ff8 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -88,7 +88,10 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
.kalimba,
.spu_2,
+ .propeller1,
+ .propeller2,
=> unreachable, // Gated by hasLlvmSupport().
+
};
try llvm_triple.appendSlice(llvm_arch);
@@ -281,7 +284,7 @@ pub fn targetArch(arch_tag: std.Target.Cpu.Arch) llvm.ArchType {
.wasm32 => .wasm32,
.wasm64 => .wasm64,
.ve => .ve,
- .spu_2 => .UnknownArch,
+ .propeller1, .propeller2, .spu_2 => .UnknownArch,
};
}
@@ -12714,6 +12717,8 @@ pub fn initializeLLVMTarget(arch: std.Target.Cpu.Arch) void {
// LLVM does does not have a backend for these.
.kalimba,
.spu_2,
+ .propeller1,
+ .propeller2,
=> unreachable,
}
}
diff --git a/src/codegen/spirv.zig b/src/codegen/spirv.zig
index dc45b26931..164367207a 100644
--- a/src/codegen/spirv.zig
+++ b/src/codegen/spirv.zig
@@ -1856,6 +1856,9 @@ const NavGen = struct {
.flash3,
.flash4,
.flash5,
+ .cog,
+ .lut,
+ .hub,
=> unreachable,
};
}