rust/compiler/rustc_passes/src
Matthias Krüger d774fbea7c
Rollup merge of #119365 - nbdd0121:asm-goto, r=Amanieu
Add asm goto support to `asm!`

Tracking issue: #119364

This PR implements asm-goto support, using the syntax described in "future possibilities" section of [RFC2873](https://rust-lang.github.io/rfcs/2873-inline-asm.html#asm-goto).

Currently I have only implemented the `label` part, not the `fallthrough` part (i.e. fallthrough is implicit). This doesn't reduce the expressive though, since you can use label-break to get arbitrary control flow or simply set a value and rely on jump threading optimisation to get the desired control flow. I can add that later if deemed necessary.

r? ``@Amanieu``
cc ``@ojeda``
2024-03-08 08:19:17 +01:00
..
liveness
abi_test.rs
check_attr.rs Add missing #[rustc_lint_diagnostics] attributes. 2024-03-06 14:19:38 +11:00
check_const.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
dead.rs Overhaul the handling of errors at the top-level. 2024-02-22 08:03:47 +11:00
debugger_visualizer.rs Avoid using feed_unit_query from within queries 2024-03-05 10:02:39 +00:00
diagnostic_items.rs
entry.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
errors.rs Rename SubdiagnosticMessageOp as SubdiagMessageOp. 2024-03-05 12:14:49 +11:00
hir_id_validator.rs Add proper cfgs for struct HirIdValidator used only with debug assertions 2024-03-06 22:54:22 +08:00
hir_stats.rs Add ast::ExprKind::Dummy 2024-02-25 22:22:09 +01:00
lang_items.rs Avoid using feed_unit_query from within queries 2024-03-05 10:02:39 +00:00
layout_test.rs
lib_features.rs
lib.rs Add proper cfgs for struct HirIdValidator used only with debug assertions 2024-03-06 22:54:22 +08:00
liveness.rs Add asm label support to AST and HIR 2024-02-24 18:49:39 +00:00
loops.rs hir: Remove fn opt_hir_id and fn opt_span 2024-02-07 09:38:24 +03:00
naked_functions.rs Add asm label support to AST and HIR 2024-02-24 18:49:39 +00:00
reachable.rs
stability.rs remove platform-intrinsics ABI; make SIMD intrinsics be regular intrinsics 2024-02-25 08:14:52 +01:00
upvars.rs is_closure_like 2024-02-11 22:09:52 +00:00
weak_lang_items.rs