rust/compiler/rustc_codegen_ssa/src
Matthias Krüger 57abad8cc5
Rollup merge of #142854 - folkertdev:centralize-min-function-alignment, r=workingjubilee
centralize `-Zmin-function-alignment` logic

tracking issue: https://github.com/rust-lang/rust/issues/82232
discussed in: https://github.com/rust-lang/rust/pull/142824#discussion_r2160056244

Apply the `-Zmin-function-alignment` value to the alignment field of the function attributes when those are created, so that individual backends don't need to consider it.

The one exception right now is cranelift, because it can't yet set the alignment for individual functions, but it can (and does) set the global minimum function alignment.

cc ``@RalfJung`` I think this is an improvement regardless, is there anything else that should be done for miri?
2025-06-23 06:07:20 +02:00
..
back Extract Translator struct 2025-06-19 13:02:04 -05:00
debuginfo Flatten ifs in rustc_codegen_ssa 2025-03-17 18:56:52 +00:00
mir centralize -Zmin-function-alignment logic 2025-06-22 00:47:10 +02:00
traits Rollup merge of #142383 - scottmcm:operandref-builder, r=workingjubilee 2025-06-18 18:06:50 +02:00
assert_module_sources.rs Move methods from Map to TyCtxt, part 4. 2025-03-12 08:55:37 +11:00
base.rs Rollup merge of #141769 - bjorn3:codegen_metadata_module_rework, r=workingjubilee,saethlin 2025-06-15 23:51:54 +02:00
codegen_attrs.rs Rollup merge of #142854 - folkertdev:centralize-min-function-alignment, r=workingjubilee 2025-06-23 06:07:20 +02:00
common.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
errors.rs Port #[no_mangle] to new attribute parsing infrastructure 2025-06-22 22:17:04 +02:00
lib.rs Move metadata object generation for dylibs to the linker code 2025-06-03 10:04:34 +00:00
meth.rs Rename unpack to kind 2025-05-27 11:14:45 +00:00
mono_item.rs Make predefine methods take &mut self 2025-05-28 20:55:00 +00:00
size_of_val.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
target_features.rs various minor target feature cleanups 2025-06-19 10:50:03 +09:00