rust/compiler/rustc_llvm
Jonathan Brouwer dec8d6ebcf
Rollup merge of #150780 - fzakaria:fzakaria/section-threshold, r=jackh726
Add -Z large-data-threshold

This flag allows specifying the threshold size for placing static data in large data sections when using the medium code model on x86-64.

When using -Ccode-model=medium, data smaller than this threshold uses RIP-relative addressing (32-bit offsets), while larger data uses absolute 64-bit addressing. This allows the compiler to generate more efficient code for smaller data while still supporting data larger than 2GB.

This mirrors the -mlarge-data-threshold flag available in GCC and Clang. The default threshold is 65536 bytes (64KB) if not specified, matching LLVM's default behavior.
2026-01-23 11:07:55 +01:00
..
llvm-wrapper Rollup merge of #150780 - fzakaria:fzakaria/section-threshold, r=jackh726 2026-01-23 11:07:55 +01:00
src Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
build.rs Only try to link against offload functions if llvm.enzyme is enabled 2025-11-23 00:19:53 -08:00
Cargo.toml Revert "Auto merge of #146186 - dpaoliello:cc, r=jieyouxu" 2025-10-30 22:46:35 +08:00