zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 84e9aec13f0c0bd5e30286493dfdf9fb7665aaf1 (tree)
parent db8bc4770c37470e8807c21571d483e3a73f9f69
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Sun, 21 Jul 2024 14:33:22 +0200

std.Target: Add comments for deliberately omitted/removed LLVM tags.

Diffstat:
Mlib/std/Target.zig | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/lib/std/Target.zig b/lib/std/Target.zig @@ -63,6 +63,11 @@ pub const Os = struct { illumos, other, + // LLVM tags deliberately omitted: + // - kfreebsd + // - darwin + // - nacl + pub inline fn isDarwin(tag: Tag) bool { return switch (tag) { .ios, .macos, .watchos, .tvos, .visionos => true, @@ -653,6 +658,10 @@ pub const Abi = enum { amplification, ohos, + // LLVM tags deliberately omitted: + // - gnuf64 + // - coreclr + pub fn default(arch: Cpu.Arch, os: Os) Abi { return if (arch.isWasm()) .musl else switch (os.tag) { .freestanding, @@ -1021,6 +1030,18 @@ pub const Cpu = struct { ve, spu_2, + // LLVM tags deliberately omitted: + // - r600 + // - le32 + // - le64 + // - amdil + // - amdil64 + // - hsail + // - hsail64 + // - shave + // - renderscript32 + // - renderscript64 + pub inline fn isX86(arch: Arch) bool { return switch (arch) { .x86, .x86_64 => true,