diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2022-12-16 04:20:34 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2023-01-27 08:15:38 +0000 |
| commit | 52f7a218fb496aefb2364ccc508556c45df47e7f (patch) | |
| tree | 144106ed15c7c44f08727dbcb0797cad9e6586da /compiler/rustc_codegen_llvm/src | |
| parent | db137ba7d4415ac77e2b7601ef017ff2ca41b335 (diff) | |
| download | rust-52f7a218fb496aefb2364ccc508556c45df47e7f.tar.gz rust-52f7a218fb496aefb2364ccc508556c45df47e7f.zip | |
Relax ordering rules for `asm!` operands
The `asm!` and `global_asm!` macros require their operands to appear strictly in the following order: - Template strings - Positional operands - Named operands - Explicit register operands - `clobber_abi` - `options` This is overly strict and can be inconvienent when building complex `asm!` statements with macros. This PR relaxes the ordering requirements as follows: - Template strings must still come before all other operands. - Positional operands must still come before named and explicit register operands. - Named and explicit register operands can be freely mixed. - `options` and `clobber_abi` can appear in any position.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
