rust/tests/mir-opt/inline
Matthias Krüger a919d97aaa
Rollup merge of #119325 - RalfJung:custom-mir, r=compiler-errors
custom mir: make it clear what the return block is

Custom MIR recently got support for specifying the "unwind action", so now there's two things coming after the actual call part of `Call` terminators. That's not very self-explaining so I propose we change the syntax to imitate keyword arguments:
```
Call(popped = Vec::pop(v), ReturnTo(drop), UnwindContinue())
```

Also fix some outdated docs and add some docs to `Call` and `Drop`.
2024-01-04 15:33:58 +01:00
..
asm_unwind.main.Inline.panic-abort.diff
asm_unwind.main.Inline.panic-unwind.diff
asm_unwind.rs address review comments 2023-10-25 15:25:38 -07:00
caller_with_trivial_bound.foo.Inline.panic-unwind.diff
caller_with_trivial_bound.rs address review comments 2023-10-25 15:25:38 -07:00
cycle.f.Inline.panic-abort.diff
cycle.f.Inline.panic-unwind.diff
cycle.g.Inline.panic-abort.diff
cycle.g.Inline.panic-unwind.diff
cycle.main.Inline.panic-abort.diff
cycle.main.Inline.panic-unwind.diff
cycle.rs address review comments 2023-10-25 15:25:38 -07:00
dont_ice_on_generic_rust_call.call.Inline.panic-abort.diff
dont_ice_on_generic_rust_call.call.Inline.panic-unwind.diff
dont_ice_on_generic_rust_call.rs address review comments 2023-10-25 15:25:38 -07:00
dyn_trait.get_query.Inline.panic-abort.diff
dyn_trait.get_query.Inline.panic-unwind.diff
dyn_trait.mk_cycle.Inline.panic-abort.diff
dyn_trait.mk_cycle.Inline.panic-unwind.diff
dyn_trait.rs address review comments 2023-10-25 15:25:38 -07:00
dyn_trait.try_execute_query.Inline.panic-abort.diff
dyn_trait.try_execute_query.Inline.panic-unwind.diff
exponential_runtime.main.Inline.panic-abort.diff Fix insertion of statements to be executed along return edge in inlining 2023-11-20 09:27:30 +01:00
exponential_runtime.main.Inline.panic-unwind.diff Fix insertion of statements to be executed along return edge in inlining 2023-11-20 09:27:30 +01:00
exponential_runtime.rs address review comments 2023-10-25 15:25:38 -07:00
indirect_destination.rs custom mir: make it clear what the return block is 2023-12-26 20:15:26 +01:00
inline_any_operand.bar.Inline.after.mir
inline_any_operand.rs FileCheck inline_any_operand 2023-10-25 15:22:01 -07:00
inline_async.rs s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
inline_box_fn.call.Inline.panic-abort.diff
inline_box_fn.call.Inline.panic-unwind.diff
inline_box_fn.rs address review comments 2023-10-25 15:25:38 -07:00
inline_closure_borrows_arg.foo.Inline.after.mir
inline_closure_borrows_arg.rs FileCheck inline_closure_borrows_arg 2023-10-25 15:22:01 -07:00
inline_closure_captures.foo.Inline.after.mir Remove mir::LocalDecl::internal. 2023-10-04 17:55:15 +00:00
inline_closure_captures.rs FileCheck inline_closure_captures 2023-10-25 15:22:01 -07:00
inline_closure.foo.Inline.after.mir
inline_closure.rs FileCheck inline_closure 2023-10-25 15:22:01 -07:00
inline_compatibility.rs Require target features to match exactly during inlining 2023-10-24 22:49:15 +02:00
inline_coroutine.main.Inline.panic-abort.diff End locals' live range before suspending coroutine 2023-12-11 23:11:20 +01:00
inline_coroutine.main.Inline.panic-unwind.diff End locals' live range before suspending coroutine 2023-12-11 23:11:20 +01:00
inline_coroutine.rs FileCheck inline_coroutine 2023-10-25 15:25:38 -07:00
inline_cycle_generic.main.Inline.panic-abort.diff
inline_cycle_generic.main.Inline.panic-unwind.diff
inline_cycle_generic.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
inline_cycle.one.Inline.panic-abort.diff
inline_cycle.one.Inline.panic-unwind.diff
inline_cycle.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
inline_cycle.two.Inline.panic-abort.diff
inline_cycle.two.Inline.panic-unwind.diff
inline_diverging.f.Inline.panic-abort.diff
inline_diverging.f.Inline.panic-unwind.diff
inline_diverging.g.Inline.panic-abort.diff
inline_diverging.g.Inline.panic-unwind.diff
inline_diverging.h.Inline.panic-abort.diff Also consider call and yield as MIR SSA. 2023-10-08 16:05:26 +00:00
inline_diverging.h.Inline.panic-unwind.diff Also consider call and yield as MIR SSA. 2023-10-08 16:05:26 +00:00
inline_diverging.rs FileCheck inline_diverging 2023-10-25 15:25:38 -07:00
inline_instruction_set.default.Inline.diff Update to bitflags 2 in the compiler 2023-12-30 18:17:28 +01:00
inline_instruction_set.rs FileCheck inline_instruction_set 2023-10-25 15:25:38 -07:00
inline_instruction_set.t32.Inline.diff
inline_options.main.Inline.after.panic-abort.mir
inline_options.main.Inline.after.panic-unwind.mir
inline_options.rs FileCheck inline_options 2023-10-25 15:25:38 -07:00
inline_retag.bar.Inline.after.mir change inline_retag to after.mir 2023-10-31 11:58:20 -07:00
inline_retag.rs change inline_retag to after.mir 2023-10-31 11:58:20 -07:00
inline_shims.clone.Inline.panic-abort.diff
inline_shims.clone.Inline.panic-unwind.diff
inline_shims.drop.Inline.panic-abort.diff
inline_shims.drop.Inline.panic-unwind.diff
inline_shims.rs FileCheck inline_shims. 2023-10-19 15:51:54 +00:00
inline_specialization.main.Inline.panic-abort.diff
inline_specialization.main.Inline.panic-unwind.diff
inline_specialization.rs FileCheck inline_specialization 2023-10-25 15:25:38 -07:00
inline_trait_method_2.rs FileCheck inline_trait_method_2 2023-10-25 15:25:38 -07:00
inline_trait_method_2.test2.Inline.after.panic-abort.mir
inline_trait_method_2.test2.Inline.after.panic-unwind.mir
inline_trait_method.rs address review comments 2023-10-25 15:25:38 -07:00
inline_trait_method.test.Inline.after.panic-abort.mir
inline_trait_method.test.Inline.after.panic-unwind.mir
issue_58867_inline_as_ref_as_mut.a.Inline.after.mir
issue_58867_inline_as_ref_as_mut.b.Inline.after.mir Enable GVN by default. 2023-12-24 20:08:57 +00:00
issue_58867_inline_as_ref_as_mut.c.Inline.after.mir
issue_58867_inline_as_ref_as_mut.d.Inline.after.mir Enable GVN by default. 2023-12-24 20:08:57 +00:00
issue_58867_inline_as_ref_as_mut.rs FileCheck inline_as_ref_as_mut 2023-10-25 15:25:38 -07:00
issue_76997_inline_scopes_parenting.main.Inline.after.mir address review comments 2023-10-25 15:25:38 -07:00
issue_76997_inline_scopes_parenting.rs address review comments 2023-10-25 15:25:38 -07:00
issue_78442.bar.Inline.panic-abort.diff Automatically enable cross-crate inlining for small functions 2023-10-17 19:53:51 -04:00
issue_78442.bar.Inline.panic-unwind.diff Automatically enable cross-crate inlining for small functions 2023-10-17 19:53:51 -04:00
issue_78442.bar.RevealAll.panic-abort.diff
issue_78442.bar.RevealAll.panic-unwind.diff
issue_78442.rs FileCheck issue_78442 2023-10-25 15:25:38 -07:00
issue_106141.outer.Inline.panic-abort.diff Remove mir::LocalDecl::internal. 2023-10-04 17:55:15 +00:00
issue_106141.outer.Inline.panic-unwind.diff Remove mir::LocalDecl::internal. 2023-10-04 17:55:15 +00:00
issue_106141.rs FileCheck issue_106141. 2023-10-19 15:51:54 +00:00
polymorphic_recursion.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
unchecked_shifts.rs Auto merge of #117029 - rmehri01:mir_opt_filecheck_inline_tests, r=cjgillot 2023-11-01 20:37:38 +00:00
unchecked_shifts.unchecked_shl_unsigned_bigger.Inline.panic-abort.diff
unchecked_shifts.unchecked_shl_unsigned_bigger.Inline.panic-unwind.diff
unchecked_shifts.unchecked_shl_unsigned_bigger.PreCodegen.after.panic-abort.mir
unchecked_shifts.unchecked_shl_unsigned_bigger.PreCodegen.after.panic-unwind.mir
unchecked_shifts.unchecked_shl_unsigned_smaller.Inline.panic-abort.diff
unchecked_shifts.unchecked_shl_unsigned_smaller.Inline.panic-unwind.diff
unchecked_shifts.unchecked_shl_unsigned_smaller.PreCodegen.after.panic-abort.mir
unchecked_shifts.unchecked_shl_unsigned_smaller.PreCodegen.after.panic-unwind.mir
unchecked_shifts.unchecked_shr_signed_bigger.Inline.panic-abort.diff
unchecked_shifts.unchecked_shr_signed_bigger.Inline.panic-unwind.diff
unchecked_shifts.unchecked_shr_signed_bigger.PreCodegen.after.panic-abort.mir
unchecked_shifts.unchecked_shr_signed_bigger.PreCodegen.after.panic-unwind.mir
unchecked_shifts.unchecked_shr_signed_smaller.Inline.panic-abort.diff
unchecked_shifts.unchecked_shr_signed_smaller.Inline.panic-unwind.diff
unchecked_shifts.unchecked_shr_signed_smaller.PreCodegen.after.panic-abort.mir
unchecked_shifts.unchecked_shr_signed_smaller.PreCodegen.after.panic-unwind.mir
unit_test.rs Only check in a single place if a pass is enabled. 2023-10-18 16:59:23 +00:00
unsized_argument.caller.Inline.diff Do not create move paths that do not need dropping. 2023-10-21 10:32:59 +00:00
unsized_argument.rs FileCheck unsized_argument 2023-10-25 15:25:38 -07:00
unwrap_unchecked.rs FileCheck unwrap_unchecked 2023-10-25 15:25:38 -07:00
unwrap_unchecked.unwrap_unchecked.Inline.panic-abort.diff Only emit != assumptions if the otherwise target is reachable. 2023-10-31 11:44:23 +00:00
unwrap_unchecked.unwrap_unchecked.Inline.panic-unwind.diff Only emit != assumptions if the otherwise target is reachable. 2023-10-31 11:44:23 +00:00
unwrap_unchecked.unwrap_unchecked.PreCodegen.after.panic-abort.mir Only emit != assumptions if the otherwise target is reachable. 2023-10-31 11:44:23 +00:00
unwrap_unchecked.unwrap_unchecked.PreCodegen.after.panic-unwind.mir Only emit != assumptions if the otherwise target is reachable. 2023-10-31 11:44:23 +00:00