authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-01 08:41:50+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-03 05:01:24+02:00
log3f322c49bc5cd16f626c7532f4271148967d3ec9
tree9ecf1531f97bd807270b178cb44f3d93f0cc6ef1
parentc2ba6127c0008b402ff593d5223652091fe0ccbb
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Remove Os.Tag.shadermodel.

This was a leftover from the Cpu.Arch.dxil removal.

3 files changed, 1 insertions(+), 10 deletions(-)

lib/compiler/aro/aro/target.zig-1
......@@ -652,7 +652,6 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
652652 .tvos => "tvos",
653653 .watchos => "watchos",
654654 .driverkit => "driverkit",
655 .shadermodel => "shadermodel",
656655 .visionos => "xros",
657656 .serenity => "serenity",
658657 .bridgeos => "bridgeos",
lib/std/Target.zig+1-7
......@@ -66,13 +66,13 @@ pub const Os = struct {
6666 nvcl,
6767 opencl,
6868 opengl,
69 shadermodel,
7069 vulkan,
7170
7271 // LLVM tags deliberately omitted:
7372 // - darwin
7473 // - kfreebsd
7574 // - nacl
75 // - shadermodel
7676
7777 pub inline fn isDarwin(tag: Tag) bool {
7878 return switch (tag) {
......@@ -178,7 +178,6 @@ pub const Os = struct {
178178 .hermit,
179179 .hurd,
180180 .emscripten,
181 .shadermodel,
182181 .uefi,
183182 .opencl, // TODO: OpenCL versions
184183 .opengl, // TODO: GLSL versions
......@@ -410,7 +409,6 @@ pub const Os = struct {
410409 .hermit,
411410 .hurd,
412411 .emscripten,
413 .shadermodel,
414412 .uefi,
415413 .opencl, // TODO: OpenCL versions
416414 .opengl, // TODO: GLSL versions
......@@ -615,7 +613,6 @@ pub const Os = struct {
615613 .hurd,
616614 .wasi,
617615 .emscripten,
618 .shadermodel,
619616 .uefi,
620617 .opencl,
621618 .opengl,
......@@ -742,7 +739,6 @@ pub const Abi = enum {
742739 .watchos,
743740 .visionos,
744741 .driverkit,
745 .shadermodel,
746742 .solaris,
747743 .illumos,
748744 .serenity,
......@@ -1879,7 +1875,6 @@ pub const DynamicLinker = struct {
18791875 .amdpal,
18801876 .hermit,
18811877 .hurd,
1882 .shadermodel,
18831878 => none,
18841879 };
18851880 }
......@@ -2372,7 +2367,6 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 {
23722367 .hermit,
23732368 .hurd,
23742369 .opengl,
2375 .shadermodel,
23762370 => @panic("TODO specify the C integer and float type sizes for this OS"),
23772371 }
23782372}
src/codegen/llvm.zig-2
......@@ -134,7 +134,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
134134 .tvos => "tvos",
135135 .watchos => "watchos",
136136 .driverkit => "driverkit",
137 .shadermodel => "shadermodel",
138137 .visionos => "xros",
139138 .serenity => "serenity",
140139 .vulkan => "vulkan",
......@@ -223,7 +222,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
223222 .wasi => .WASI,
224223 .emscripten => .Emscripten,
225224 .driverkit => .DriverKit,
226 .shadermodel => .ShaderModel,
227225 .vulkan => .Vulkan,
228226 .serenity => .Serenity,
229227 .bridgeos => .BridgeOS,