I saw zig is being updated to LLVM 22, but when to know it’s fully there yet? Using currently available nightly version 0.17.0-dev.224+c166c49b1
It is updated to llvm 22 because the cmake build is using it: https://codeberg.org/ziglang/zig/commit/2b6ab594358cead1b9b97c062715b5c313edc391
Also the README is updated: https://codeberg.org/ziglang/zig/commit/0e8e987deb4edbb3e714844707db4be6b63f4ecf
Hmm interesting,
test.h:
#pragma once
#include <dxgiformat.h>
#include <d3d12.h>
zig translate-c test.h -target x86_64-windows -lc
Fails with errors like:
zig-x86_64-windows-0.17.0-dev.224+c166c49b1\lib\include\avx512fintrin.h:4657:19: error: use of unknown builtin '__builtin_elementwise_fshr'
return (__m512i)__builtin_elementwise_fshr((__v16su)__A,(__v16su)__A, (__v16su)__B);
Interestingly 0.17.0-dev.135+9df02121d version succeeds, cannot find relative commits after 9df02121d I am kind of bad at it I guess.