Commit 4e56653628

Alex Rønne Petersen <alex@alexrp.com>
2024-08-07 21:41:59
llvm: Add a comment clarifying our mapping of the opencl OS tag.
1 parent c11b997
Changed files (1)
src
codegen
src/codegen/llvm.zig
@@ -116,6 +116,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
         .cuda => "cuda",
         .nvcl => "nvcl",
         .amdhsa => "amdhsa",
+        .opencl => "unknown", // https://llvm.org/docs/SPIRVUsage.html#target-triples
         .ps4 => "ps4",
         .ps5 => "ps5",
         .elfiamcu => "elfiamcu",
@@ -137,7 +138,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
         .serenity => "serenity",
         .vulkan => "vulkan",
 
-        .opencl,
         .glsl450,
         .plan9,
         .minix,