LLVM 18 std lib updates and fixes

* some manual fixes to generated CPU features code. In the future it
  would be nice to make the script do those automatically.

* add to various target OS switches. Some of the values I was unsure of
  and added TODO panics, for example in the case of spirv CPU arch.
This commit is contained in:
Andrew Kelley
2024-04-25 22:52:15 -07:00
parent 109ec72924
commit d34fae26d5
6 changed files with 56 additions and 94 deletions

View File

@@ -5976,6 +5976,8 @@ pub fn atomicPtrAlignment(
=> 128,
.x86_64 => if (std.Target.x86.featureSetHas(target.cpu.features, .cx16)) 128 else 64,
.spirv => @panic("TODO what should this value be?"),
};
const int_ty = switch (ty.zigTypeTag(mod)) {