rust/compiler/rustc_codegen_llvm/src
Matthias Krüger 422c76adae
Rollup merge of #146178 - folkertdev:static-align, r=jdonszelmann,ralfjung,traviscross
Implement `#[rustc_align_static(N)]` on `static`s

Tracking issue: https://github.com/rust-lang/rust/issues/146177

```rust
#![feature(static_align)]

#[rustc_align_static(64)]
static SO_ALIGNED: u64 = 0;
```

We need a different attribute than `rustc_align` because unstable attributes are tied to their feature (we can't have two unstable features use the same unstable attribute). Otherwise this uses all of the same infrastructure as `#[rustc_align]`.

r? `@traviscross`
2025-09-10 14:17:38 +02:00
..
back Remove want_summary argument from prepare_thin 2025-09-06 18:37:23 +00:00
builder gpu offload: change suspicious map into filter 2025-09-05 11:39:17 +00:00
coverageinfo coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
debuginfo Auto merge of #145717 - BoxyUwU:erase_regions_rename, r=lcnr 2025-09-09 15:04:44 +00:00
llvm Remove want_summary argument from prepare_thin 2025-09-06 18:37:23 +00:00
abi.rs Use captures(address) instead of captures(none) for indirect args 2025-08-26 16:16:23 +02:00
allocator.rs Rename llvm::Bool aliases to standard const case 2025-08-24 23:09:54 +10:00
asm.rs Replace the llvm::Bool typedef with a proper newtype 2025-08-24 23:09:54 +10:00
attributes.rs compiler: Apply target features to the entry function 2025-09-04 21:40:25 +08:00
base.rs Port the #[linkage] attribute to the new attribute system 2025-08-13 21:01:37 +02:00
builder.rs inline at the callsite & warn when target features mismatch 2025-08-27 14:45:01 +01:00
callee.rs remove rustc_attr_data_structures 2025-07-31 14:19:27 +02:00
common.rs Rename llvm::Bool aliases to standard const case 2025-08-24 23:09:54 +10:00
consts.rs allow #[rustc_align_static(N)] on statics 2025-09-09 21:54:54 +02:00
context.rs compiler: Apply target features to the entry function 2025-09-04 21:40:25 +08:00
declare.rs make more builder functions generic 2025-07-18 16:23:54 -07:00
errors.rs Use the object crate rather than LLVM for extracting bitcode sections 2025-07-25 11:21:28 +00:00
intrinsic.rs Add funnel_sh{l,r} functions and intrinsics 2025-09-03 14:13:24 +05:30
lib.rs Remove want_summary argument from prepare_thin 2025-09-06 18:37:23 +00:00
llvm_util.rs Rollup merge of #145076 - ZhongyaoChen:feature/add-tier3-riscv64a23-target, r=davidtwco 2025-08-26 16:34:10 +02:00
mono_item.rs Replace the llvm::Bool typedef with a proper newtype 2025-08-24 23:09:54 +10:00
type_.rs Rename llvm::Bool aliases to standard const case 2025-08-24 23:09:54 +10:00
type_of.rs Auto merge of #145717 - BoxyUwU:erase_regions_rename, r=lcnr 2025-09-09 15:04:44 +00:00
va_arg.rs round pointer to alignment without going via int 2025-08-31 16:07:28 +02:00
value.rs Add warn(unreachable_pub) to rustc_codegen_llvm. 2024-08-16 08:46:57 +10:00