Merge pull request #20402 from alexrp/target-cleanup

std.Target: Remove some obsolete/dead specifiers.
This commit is contained in:
Andrew Kelley
2024-07-20 13:55:37 -07:00
committed by GitHub
9 changed files with 87 additions and 151 deletions

View File

@@ -83,8 +83,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
.xtensa => "xtensa",
.nvptx => "nvptx",
.nvptx64 => "nvptx64",
.le32 => "le32",
.le64 => "le64",
.amdil => "amdil",
.amdil64 => "amdil64",
.hsail => "hsail",
@@ -112,7 +110,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
.dragonfly => "dragonfly",
.freebsd => "freebsd",
.fuchsia => "fuchsia",
.kfreebsd => "kfreebsd",
.linux => "linux",
.lv2 => "lv2",
.netbsd => "netbsd",
@@ -122,7 +119,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
.zos => "zos",
.haiku => "haiku",
.rtems => "rtems",
.nacl => "nacl",
.aix => "aix",
.cuda => "cuda",
.nvcl => "nvcl",
@@ -178,7 +174,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
.gnueabi => "gnueabi",
.gnueabihf => "gnueabihf",
.gnuf32 => "gnuf32",
.gnuf64 => "gnuf64",
.gnusf => "gnusf",
.gnux32 => "gnux32",
.gnuilp32 => "gnuilp32",
@@ -193,7 +188,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
.msvc => "msvc",
.itanium => "itanium",
.cygnus => "cygnus",
.coreclr => "coreclr",
.simulator => "simulator",
.macabi => "macabi",
.pixel => "pixel",
@@ -236,7 +230,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
.freebsd => .FreeBSD,
.fuchsia => .Fuchsia,
.ios => .IOS,
.kfreebsd => .KFreeBSD,
.linux => .Linux,
.lv2 => .Lv2,
.macos => .MacOSX,
@@ -246,7 +239,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
.zos => .ZOS,
.haiku => .Haiku,
.rtems => .RTEMS,
.nacl => .NaCl,
.aix => .AIX,
.cuda => .CUDA,
.nvcl => .NVCL,
@@ -315,8 +307,6 @@ pub fn targetArch(arch_tag: std.Target.Cpu.Arch) llvm.ArchType {
.xtensa => .xtensa,
.nvptx => .nvptx,
.nvptx64 => .nvptx64,
.le32 => .le32,
.le64 => .le64,
.amdil => .amdil,
.amdil64 => .amdil64,
.hsail => .hsail,
@@ -12104,8 +12094,6 @@ pub fn initializeLLVMTarget(arch: std.Target.Cpu.Arch) void {
.tce,
.tcele,
.r600,
.le32,
.le64,
.amdil,
.amdil64,
.hsail,