| ... | ... | @@ -63,6 +63,11 @@ pub const Os = struct { |
| 63 | 63 | illumos, |
| 64 | 64 | other, |
| 65 | 65 | |
| 66 | // LLVM tags deliberately omitted: |
| 67 | // - kfreebsd |
| 68 | // - darwin |
| 69 | // - nacl |
| 70 | |
| 66 | 71 | pub inline fn isDarwin(tag: Tag) bool { |
| 67 | 72 | return switch (tag) { |
| 68 | 73 | .ios, .macos, .watchos, .tvos, .visionos => true, |
| ... | ... | @@ -653,6 +658,10 @@ pub const Abi = enum { |
| 653 | 658 | amplification, |
| 654 | 659 | ohos, |
| 655 | 660 | |
| 661 | // LLVM tags deliberately omitted: |
| 662 | // - gnuf64 |
| 663 | // - coreclr |
| 664 | |
| 656 | 665 | pub fn default(arch: Cpu.Arch, os: Os) Abi { |
| 657 | 666 | return if (arch.isWasm()) .musl else switch (os.tag) { |
| 658 | 667 | .freestanding, |
| ... | ... | @@ -1021,6 +1030,18 @@ pub const Cpu = struct { |
| 1021 | 1030 | ve, |
| 1022 | 1031 | spu_2, |
| 1023 | 1032 | |
| 1033 | // LLVM tags deliberately omitted: |
| 1034 | // - r600 |
| 1035 | // - le32 |
| 1036 | // - le64 |
| 1037 | // - amdil |
| 1038 | // - amdil64 |
| 1039 | // - hsail |
| 1040 | // - hsail64 |
| 1041 | // - shave |
| 1042 | // - renderscript32 |
| 1043 | // - renderscript64 |
| 1044 | |
| 1024 | 1045 | pub inline fn isX86(arch: Arch) bool { |
| 1025 | 1046 | return switch (arch) { |
| 1026 | 1047 | .x86, .x86_64 => true, |