rust/compiler/rustc_codegen_ssa/src/mir
Stuart Cook 92ea947c78
Rollup merge of #146793 - folkertdev:naked-asm-func-end, r=Amanieu
naked_asm: emit a label starting with `func_end`

The `cargo asm` tool (`cargo install cargo-show-asm`) pattern matches on such labels to figure out where functions end: normal functions generated by LLVM always do have such a label. We don't guarantee that naked functions emit such a label, but having `cargo asm` work is convenient.

be45f67454/src/asm/statements.rs (L897-L901)

To make the label name unique it's suffixed with the name of the current symbol.

r? ```@Amanieu```
2025-09-21 14:42:35 +10:00
..
analyze.rs Auto merge of #144347 - scottmcm:ssa-enums-v0, r=WaffleLapkin 2025-07-27 06:37:55 +00:00
block.rs Remove DynKind 2025-09-17 04:46:46 +02:00
constant.rs Remove useless lifetime parameter. 2025-07-23 23:54:37 +00:00
coverageinfo.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
debuginfo.rs add codegen_instance_attrs query 2025-07-16 21:38:58 +02:00
intrinsic.rs atomicrmw on pointers: move integer-pointer cast hacks into backend 2025-07-23 08:32:55 +02:00
locals.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
mod.rs explicitly start va_list lifetime 2025-09-03 00:19:18 +02:00
naked_asm.rs naked_asm: emit a label starting with func_end 2025-09-19 21:53:06 +02:00
operand.rs [codegen] assume the tag, not the relative discriminant 2025-08-06 09:11:35 -07:00
place.rs Allow all MIR Aggregates to take the operand path (if layout permits) 2025-07-03 22:53:19 -07:00
rvalue.rs Rollup merge of #146564 - cjgillot:mir-nolen, r=scottmcm 2025-09-17 14:56:48 +10:00
statement.rs Remove support for dynamic allocas 2025-07-07 23:04:06 +02:00