rust/compiler/rustc_target/src
Matthias Krüger 12a7f06e3c
Rollup merge of #136194 - taiki-e:bpf-clobber-abi, r=amanieu
Support clobber_abi in BPF inline assembly

This supports [`clobber_abi`](https://doc.rust-lang.org/nightly/reference/inline-assembly.html#abi-clobbers) which is one of the requirements of stabilization mentioned in the tracking Issue for `asm_experimental_arch` (#93335).

Refs: [Section 1.1 "Registers and calling convention" in BPF ABI Recommended Conventions and Guidelines v1.0](https://github.com/torvalds/linux/blob/v6.13/Documentation/bpf/standardization/abi.rst#11registers-and-calling-convention)
> R0 - R5 are scratch registers and BPF programs needs to spill/fill them if necessary across calls.

cc `@alessandrod` `@dave-tucker` `@tamird` `@vadorovsky` (target maintainers mentioned in platform support document which will be added by https://github.com/rust-lang/rust/pull/135107)

r? `@Amanieu`

`@rustbot` label +O-eBPF +A-inline-assembly
2025-01-31 12:28:17 +01:00
..
asm Support clobber_abi in BPF inline assembly 2025-01-29 02:14:25 +09:00
callconv Auto merge of #134290 - tgross35:windows-i128-callconv, r=bjorn3,wesleywiser 2025-01-28 06:11:13 +00:00
spec Auto merge of #135030 - Flakebi:require-cpu, r=workingjubilee 2025-01-30 20:21:50 +00:00
json.rs Add gpu-kernel calling convention 2025-01-16 00:26:55 +01:00
lib.rs compiler: Wire {TyAnd,}Layout into rustc_abi 2024-10-11 17:41:52 -07:00
target_features.rs Auto merge of #136227 - fmease:rollup-ewpvznh, r=fmease 2025-01-29 11:27:18 +00:00
tests.rs Use serde_json for target spec json 2022-06-03 16:46:19 +00:00