zig/lib/std/os
Andrew Kelley f550c29c4e LLVM: fix lowering of structs with underaligned fields
When lowering a struct type to an LLVM struct type, keep track of
whether there are any underaligned fields. If so, then make it a packed
llvm struct. This works because we already insert manual padding bytes
regardless.

We could unconditionally use an LLVM packed struct; the reason we bother
checking for underaligned fields is that it is a conservative choice, in
case LLVM handles packed structs less optimally. A future improvement
could simplify this code by unconditionally using packed LLVM structs
and then make sure measure perf is unaffected.

closes #12190
2022-07-21 22:51:17 -07:00
..
linux Fix io_uring tests (#12134) 2022-07-16 10:05:11 -05:00
plan9 plan9: more syscalls 2021-11-09 07:08:27 -05:00
uefi std.os.uefi: Add BlockIoProtocol 2022-04-19 19:51:19 -04:00
windows add const to msghdr_const iov and control pointers 2022-06-07 15:23:44 -04:00
darwin.zig macos: update Mach routines for accessing page info 2022-03-17 10:42:11 +01:00
linux.zig LLVM: fix lowering of structs with underaligned fields 2022-07-21 22:51:17 -07:00
plan9.zig plan9: more syscalls 2021-11-09 07:08:27 -05:00
posix_spawn.zig std: introduce posix_spawn as an alt to fork-exec 2022-03-16 19:40:44 +01:00
test.zig std: handle stage2 function pointer semantics in test 2022-06-06 13:11:50 -07:00
uefi.zig std.os.uefi: fix GUID formatting (#11452) 2022-04-17 06:15:15 -04:00
wasi.zig stdlib: Add emulated CWD to std.os for WASI targets 2022-03-03 14:31:49 -07:00
windows.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00