aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Random
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-05-01 17:14:24 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-05-08 19:37:29 -0700
commit708894cf9903bab2e9b0dde0b609a6cc7cc55ffd (patch)
treea161dbfb600fef3c647a038e4dcbd142e2389f76 /lib/std/Random
parent6730b366a059a83d64f66644bf49d69cb31a6a08 (diff)
downloadzig-708894cf9903bab2e9b0dde0b609a6cc7cc55ffd.tar.gz
zig-708894cf9903bab2e9b0dde0b609a6cc7cc55ffd.zip
add a debug subcommand for printing LLVM integer type alignment
Useful when debugging why upgrading from LLVM 17 to 18 caused C ABI regressions. Turns out LLVM 18 does the following insane thing: ```diff -[nix-shell:~/dev/zig/build-llvm17]$ stage4/bin/zig llvm-ints i386-linux-musl +[nix-shell:~/src/zig/build-llvm18]$ stage4/bin/zig llvm-ints i386-linux-musl LLVMABIAlignmentOfType(i1) == 1 LLVMABIAlignmentOfType(i8) == 1 LLVMABIAlignmentOfType(i16) == 2 LLVMABIAlignmentOfType(i32) == 4 LLVMABIAlignmentOfType(i64) == 4 -LLVMABIAlignmentOfType(i128) == 4 -LLVMABIAlignmentOfType(i256) == 4 +LLVMABIAlignmentOfType(i128) == 16 +LLVMABIAlignmentOfType(i256) == 16 ```
Diffstat (limited to 'lib/std/Random')
0 files changed, 0 insertions, 0 deletions