aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-04-14 14:41:57 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-04-14 14:41:57 -0700
commit5a3ea9beced660c9cc463b921a1581cc07855dd6 (patch)
tree7e622bd133adcdbcc0c8d854deaac97f345c4c8c /src/codegen
parent1fada3746606b3a83d4c56213de93a1017753c96 (diff)
parentcc186dac65d84ecbf29b5f8704beb2dfd00d76bb (diff)
downloadzig-5a3ea9beced660c9cc463b921a1581cc07855dd6.tar.gz
zig-5a3ea9beced660c9cc463b921a1581cc07855dd6.zip
Merge remote-tracking branch 'origin/llvm12'
Happy LLVM 12 Release Day. Please note that the llvm 12 tag does not include the latest commit in the release/12.x branch, which is in fact a bug fix for a regression that is causing a failure in Zig's test suite. Zig master branch is tracking release/12.x, and will be enabling the test that is fixed by that commit.
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm.zig5
-rw-r--r--src/codegen/llvm/bindings.zig179
2 files changed, 95 insertions, 89 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index af6c890861..94fb1de8c4 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -28,6 +28,7 @@ pub fn targetTriple(allocator: *Allocator, target: std.Target) ![:0]u8 {
.avr => "avr",
.bpfel => "bpfel",
.bpfeb => "bpfeb",
+ .csky => "csky",
.hexagon => "hexagon",
.mips => "mips",
.mipsel => "mipsel",
@@ -35,6 +36,7 @@ pub fn targetTriple(allocator: *Allocator, target: std.Target) ![:0]u8 {
.mips64el => "mips64el",
.msp430 => "msp430",
.powerpc => "powerpc",
+ .powerpcle => "powerpcle",
.powerpc64 => "powerpc64",
.powerpc64le => "powerpc64le",
.r600 => "r600",
@@ -91,11 +93,11 @@ pub fn targetTriple(allocator: *Allocator, target: std.Target) ![:0]u8 {
.openbsd => "openbsd",
.solaris => "solaris",
.windows => "windows",
+ .zos => "zos",
.haiku => "haiku",
.minix => "minix",
.rtems => "rtems",
.nacl => "nacl",
- .cnk => "cnk",
.aix => "aix",
.cuda => "cuda",
.nvcl => "nvcl",
@@ -126,6 +128,7 @@ pub fn targetTriple(allocator: *Allocator, target: std.Target) ![:0]u8 {
.gnueabi => "gnueabi",
.gnueabihf => "gnueabihf",
.gnux32 => "gnux32",
+ .gnuilp32 => "gnuilp32",
.code16 => "code16",
.eabi => "eabi",
.eabihf => "eabihf",
diff --git a/src/codegen/llvm/bindings.zig b/src/codegen/llvm/bindings.zig
index 7217ca381e..63ac7e86a0 100644
--- a/src/codegen/llvm/bindings.zig
+++ b/src/codegen/llvm/bindings.zig
@@ -508,6 +508,7 @@ pub const ObjectFormatType = extern enum(c_int) {
Unknown,
COFF,
ELF,
+ GOFF,
MachO,
Wasm,
XCOFF,
@@ -528,97 +529,99 @@ extern fn ZigLLVMWriteArchive(
) bool;
pub const OSType = extern enum(c_int) {
- UnknownOS = 0,
- Ananas = 1,
- CloudABI = 2,
- Darwin = 3,
- DragonFly = 4,
- FreeBSD = 5,
- Fuchsia = 6,
- IOS = 7,
- KFreeBSD = 8,
- Linux = 9,
- Lv2 = 10,
- MacOSX = 11,
- NetBSD = 12,
- OpenBSD = 13,
- Solaris = 14,
- Win32 = 15,
- Haiku = 16,
- Minix = 17,
- RTEMS = 18,
- NaCl = 19,
- CNK = 20,
- AIX = 21,
- CUDA = 22,
- NVCL = 23,
- AMDHSA = 24,
- PS4 = 25,
- ELFIAMCU = 26,
- TvOS = 27,
- WatchOS = 28,
- Mesa3D = 29,
- Contiki = 30,
- AMDPAL = 31,
- HermitCore = 32,
- Hurd = 33,
- WASI = 34,
- Emscripten = 35,
+ UnknownOS,
+ Ananas,
+ CloudABI,
+ Darwin,
+ DragonFly,
+ FreeBSD,
+ Fuchsia,
+ IOS,
+ KFreeBSD,
+ Linux,
+ Lv2,
+ MacOSX,
+ NetBSD,
+ OpenBSD,
+ Solaris,
+ Win32,
+ ZOS,
+ Haiku,
+ Minix,
+ RTEMS,
+ NaCl,
+ AIX,
+ CUDA,
+ NVCL,
+ AMDHSA,
+ PS4,
+ ELFIAMCU,
+ TvOS,
+ WatchOS,
+ Mesa3D,
+ Contiki,
+ AMDPAL,
+ HermitCore,
+ Hurd,
+ WASI,
+ Emscripten,
};
pub const ArchType = extern enum(c_int) {
- UnknownArch = 0,
- arm = 1,
- armeb = 2,
- aarch64 = 3,
- aarch64_be = 4,
- aarch64_32 = 5,
- arc = 6,
- avr = 7,
- bpfel = 8,
- bpfeb = 9,
- hexagon = 10,
- mips = 11,
- mipsel = 12,
- mips64 = 13,
- mips64el = 14,
- msp430 = 15,
- ppc = 16,
- ppc64 = 17,
- ppc64le = 18,
- r600 = 19,
- amdgcn = 20,
- riscv32 = 21,
- riscv64 = 22,
- sparc = 23,
- sparcv9 = 24,
- sparcel = 25,
- systemz = 26,
- tce = 27,
- tcele = 28,
- thumb = 29,
- thumbeb = 30,
- x86 = 31,
- x86_64 = 32,
- xcore = 33,
- nvptx = 34,
- nvptx64 = 35,
- le32 = 36,
- le64 = 37,
- amdil = 38,
- amdil64 = 39,
- hsail = 40,
- hsail64 = 41,
- spir = 42,
- spir64 = 43,
- kalimba = 44,
- shave = 45,
- lanai = 46,
- wasm32 = 47,
- wasm64 = 48,
- renderscript32 = 49,
- renderscript64 = 50,
- ve = 51,
+ UnknownArch,
+ arm,
+ armeb,
+ aarch64,
+ aarch64_be,
+ aarch64_32,
+ arc,
+ avr,
+ bpfel,
+ bpfeb,
+ csky,
+ hexagon,
+ mips,
+ mipsel,
+ mips64,
+ mips64el,
+ msp430,
+ ppc,
+ ppcle,
+ ppc64,
+ ppc64le,
+ r600,
+ amdgcn,
+ riscv32,
+ riscv64,
+ sparc,
+ sparcv9,
+ sparcel,
+ systemz,
+ tce,
+ tcele,
+ thumb,
+ thumbeb,
+ x86,
+ x86_64,
+ xcore,
+ nvptx,
+ nvptx64,
+ le32,
+ le64,
+ amdil,
+ amdil64,
+ hsail,
+ hsail64,
+ spir,
+ spir64,
+ kalimba,
+ shave,
+ lanai,
+ wasm32,
+ wasm64,
+ renderscript32,
+ renderscript64,
+ ve,
};
pub const ParseCommandLineOptions = ZigLLVMParseCommandLineOptions;