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 {...@@ -652,7 +652,6 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
652 .tvos => "tvos",652 .tvos => "tvos",
653 .watchos => "watchos",653 .watchos => "watchos",
654 .driverkit => "driverkit",654 .driverkit => "driverkit",
655 .shadermodel => "shadermodel",
656 .visionos => "xros",655 .visionos => "xros",
657 .serenity => "serenity",656 .serenity => "serenity",
658 .bridgeos => "bridgeos",657 .bridgeos => "bridgeos",
lib/std/Target.zig+1-7
...@@ -66,13 +66,13 @@ pub const Os = struct {...@@ -66,13 +66,13 @@ pub const Os = struct {
66 nvcl,66 nvcl,
67 opencl,67 opencl,
68 opengl,68 opengl,
69 shadermodel,
70 vulkan,69 vulkan,
7170
72 // LLVM tags deliberately omitted:71 // LLVM tags deliberately omitted:
73 // - darwin72 // - darwin
74 // - kfreebsd73 // - kfreebsd
75 // - nacl74 // - nacl
75 // - shadermodel
7676
77 pub inline fn isDarwin(tag: Tag) bool {77 pub inline fn isDarwin(tag: Tag) bool {
78 return switch (tag) {78 return switch (tag) {
...@@ -178,7 +178,6 @@ pub const Os = struct {...@@ -178,7 +178,6 @@ pub const Os = struct {
178 .hermit,178 .hermit,
179 .hurd,179 .hurd,
180 .emscripten,180 .emscripten,
181 .shadermodel,
182 .uefi,181 .uefi,
183 .opencl, // TODO: OpenCL versions182 .opencl, // TODO: OpenCL versions
184 .opengl, // TODO: GLSL versions183 .opengl, // TODO: GLSL versions
...@@ -410,7 +409,6 @@ pub const Os = struct {...@@ -410,7 +409,6 @@ pub const Os = struct {
410 .hermit,409 .hermit,
411 .hurd,410 .hurd,
412 .emscripten,411 .emscripten,
413 .shadermodel,
414 .uefi,412 .uefi,
415 .opencl, // TODO: OpenCL versions413 .opencl, // TODO: OpenCL versions
416 .opengl, // TODO: GLSL versions414 .opengl, // TODO: GLSL versions
...@@ -615,7 +613,6 @@ pub const Os = struct {...@@ -615,7 +613,6 @@ pub const Os = struct {
615 .hurd,613 .hurd,
616 .wasi,614 .wasi,
617 .emscripten,615 .emscripten,
618 .shadermodel,
619 .uefi,616 .uefi,
620 .opencl,617 .opencl,
621 .opengl,618 .opengl,
...@@ -742,7 +739,6 @@ pub const Abi = enum {...@@ -742,7 +739,6 @@ pub const Abi = enum {
742 .watchos,739 .watchos,
743 .visionos,740 .visionos,
744 .driverkit,741 .driverkit,
745 .shadermodel,
746 .solaris,742 .solaris,
747 .illumos,743 .illumos,
748 .serenity,744 .serenity,
...@@ -1879,7 +1875,6 @@ pub const DynamicLinker = struct {...@@ -1879,7 +1875,6 @@ pub const DynamicLinker = struct {
1879 .amdpal,1875 .amdpal,
1880 .hermit,1876 .hermit,
1881 .hurd,1877 .hurd,
1882 .shadermodel,
1883 => none,1878 => none,
1884 };1879 };
1885 }1880 }
...@@ -2372,7 +2367,6 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 {...@@ -2372,7 +2367,6 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 {
2372 .hermit,2367 .hermit,
2373 .hurd,2368 .hurd,
2374 .opengl,2369 .opengl,
2375 .shadermodel,
2376 => @panic("TODO specify the C integer and float type sizes for this OS"),2370 => @panic("TODO specify the C integer and float type sizes for this OS"),
2377 }2371 }
2378}2372}
src/codegen/llvm.zig-2
...@@ -134,7 +134,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {...@@ -134,7 +134,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
134 .tvos => "tvos",134 .tvos => "tvos",
135 .watchos => "watchos",135 .watchos => "watchos",
136 .driverkit => "driverkit",136 .driverkit => "driverkit",
137 .shadermodel => "shadermodel",
138 .visionos => "xros",137 .visionos => "xros",
139 .serenity => "serenity",138 .serenity => "serenity",
140 .vulkan => "vulkan",139 .vulkan => "vulkan",
...@@ -223,7 +222,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {...@@ -223,7 +222,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
223 .wasi => .WASI,222 .wasi => .WASI,
224 .emscripten => .Emscripten,223 .emscripten => .Emscripten,
225 .driverkit => .DriverKit,224 .driverkit => .DriverKit,
226 .shadermodel => .ShaderModel,
227 .vulkan => .Vulkan,225 .vulkan => .Vulkan,
228 .serenity => .Serenity,226 .serenity => .Serenity,
229 .bridgeos => .BridgeOS,227 .bridgeos => .BridgeOS,