rust/compiler/rustc_mir_transform/src
Jubilee 847b6fe6b0
Rollup merge of #132246 - workingjubilee:campaign-on-irform, r=compiler-errors
Rename `rustc_abi::Abi` to `BackendRepr`

Remove the confabulation of `rustc_abi::Abi` with what "ABI" actually means by renaming it to `BackendRepr`, and rename `Abi::Aggregate` to `BackendRepr::Memory`. The type never actually represented how things are passed, as that has to have `PassMode` considered, at minimum, but rather it just is how we represented some things to the backend. This conflation arose because LLVM, the primary backend at the time, would lower certain IR forms using certain ABIs. Even that only somewhat was true, as it broke down when one ventured significantly afield of what is described by the System V AMD64 ABI either by using different architectures, ABI-modifying IR annotations, the same architecture **with different ISA extensions enabled**, or other... unexpected delights.

Unfortunately both names are still somewhat of a misnomer right now, as people have written code for years based on this misunderstanding. Still, their original names are even moreso, and for better or worse, this backend code hasn't received as much maintenance as the rest of the compiler, lately. Actually arriving at a correct end-state will simply require us to disentangle a lot of code in order to fix, much of it pointlessly repeated in several places. Thus this is not an "actual fix", just a way to deflect further misunderstandings.
2024-10-30 14:01:37 -07:00
..
coroutine Dont ICE when computing coverage of synthetic async closure body 2024-10-18 20:14:02 +11:00
coverage coverage: Don't rely on the custom traversal to find enclosing loops 2024-10-26 09:38:47 +11:00
inline Remove #[macro_use] extern crate tracing from rustc_mir_transform. 2024-08-30 10:01:34 +10:00
shim be even more precise about "cast" vs "coercion" 2024-09-24 23:12:02 +02:00
abort_unwinding_calls.rs Make destructors on extern "C" frames to be executed 2024-09-27 14:40:38 +01:00
add_call_guards.rs Inline and remove some functions. 2024-09-10 08:54:17 +10:00
add_moves_for_packed_drops.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
add_retag.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
add_subtyping_projections.rs Inline and remove some functions. 2024-09-10 08:54:17 +10:00
check_alignment.rs Rename and reorder lots of lifetimes. 2024-09-13 15:46:20 +10:00
check_const_item_mutation.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
check_packed_ref.rs Reduce visibilities, and add warn(unreachable_pub). 2024-09-09 08:48:09 +10:00
check_undefined_transmutes.rs Add a Lint for Pointer to Integer Transmutes in Consts 2024-10-05 12:48:02 +00:00
cleanup_post_borrowck.rs be even more precise about "cast" vs "coercion" 2024-09-24 23:12:02 +02:00
copy_prop.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
coroutine.rs Rollup merge of #132338 - nnethercote:rm-Engine, r=nnethercote 2024-10-30 06:40:37 +01:00
cost_checker.rs Reduce visibilities, and add warn(unreachable_pub). 2024-09-09 08:48:09 +10:00
cross_crate_inline.rs Fix a couple more DefKind discrepancies between DefKind::Closure and DefKind::SyntheticCoroutineBody 2024-09-16 22:09:42 -04:00
ctfe_limit.rs Reduce visibilities, and add warn(unreachable_pub). 2024-09-09 08:48:09 +10:00
dataflow_const_prop.rs Rollup merge of #132246 - workingjubilee:campaign-on-irform, r=compiler-errors 2024-10-30 14:01:37 -07:00
dead_store_elimination.rs Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
deduce_param_attrs.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
deduplicate_blocks.rs Rename and reorder lots of lifetimes. 2024-09-13 15:46:20 +10:00
deref_separator.rs Use LocalDecls in a couple of places. 2024-09-09 15:15:44 +10:00
dest_prop.rs Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
dump_mir.rs Dogfood feature(file_buffered) 2024-09-24 14:25:16 -07:00
early_otherwise_branch.rs Revert "Auto merge of #129047 - DianQK:early_otherwise_branch_scalar, r=cjgillot" 2024-09-24 08:44:26 +00:00
elaborate_box_derefs.rs Rename and reorder lots of lifetimes. 2024-09-13 15:46:20 +10:00
elaborate_drops.rs Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
errors.rs coverage. Warn about too many test vectors 2024-10-08 11:15:26 +08:00
ffi_unwind_calls.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
function_item_references.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
gvn.rs compiler: rustc_abi::Abi => BackendRepr 2024-10-29 14:56:00 -07:00
inline.rs Effects cleanup 2024-10-26 10:19:07 +08:00
instsimplify.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
jump_threading.rs Disable jump threading UnOp::Not for non-bool 2024-10-03 15:37:31 -04:00
known_panics_lint.rs compiler: rustc_abi::Abi => BackendRepr 2024-10-29 14:56:00 -07:00
large_enums.rs Add a useful comment. 2024-09-10 08:54:22 +10:00
lib.rs Auto merge of #130540 - veera-sivarajan:fix-87525, r=estebank 2024-10-06 02:39:23 +00:00
lint.rs Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
lower_intrinsics.rs Improve consistency in LowerIntrinsics. 2024-09-09 15:15:44 +10:00
lower_slice_len.rs Inline and remove some functions. 2024-09-10 08:54:17 +10:00
match_branches.rs Rename and reorder lots of lifetimes. 2024-09-13 15:46:20 +10:00
mentioned_items.rs be even more precise about "cast" vs "coercion" 2024-09-24 23:12:02 +02:00
multiple_return_terminators.rs Reduce visibilities, and add warn(unreachable_pub). 2024-09-09 08:48:09 +10:00
nrvo.rs Reduce visibilities, and add warn(unreachable_pub). 2024-09-09 08:48:09 +10:00
pass_manager.rs Rollup merge of #130101 - RalfJung:const-cleanup, r=fee1-dead 2024-09-12 19:03:41 +02:00
post_drop_elaboration.rs Make check_live_drops into a MirLint. 2024-09-10 09:11:17 +10:00
prettify.rs Improve comment formatting. 2024-09-10 08:42:30 +10:00
promote_consts.rs tcx.is_const_fn doesn't work the way it is described, remove it 2024-10-25 20:52:39 +02:00
ref_prop.rs Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
remove_noop_landing_pads.rs Inline and remove some functions. 2024-09-10 08:54:17 +10:00
remove_place_mention.rs Reduce visibilities, and add warn(unreachable_pub). 2024-09-09 08:48:09 +10:00
remove_storage_markers.rs Reduce visibilities, and add warn(unreachable_pub). 2024-09-09 08:48:09 +10:00
remove_uninit_drops.rs Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
remove_unneeded_drops.rs Reduce visibilities, and add warn(unreachable_pub). 2024-09-09 08:48:09 +10:00
remove_zsts.rs Reduce visibilities, and add warn(unreachable_pub). 2024-09-09 08:48:09 +10:00
required_consts.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
reveal_all.rs Improve comment formatting. 2024-09-10 08:42:30 +10:00
sanity_check.rs Move MirPass to rustc_mir_transform. 2024-09-03 16:03:46 +10:00
shim.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
simplify.rs Inline and remove some functions. 2024-09-10 08:54:17 +10:00
simplify_branches.rs Reduce visibilities, and add warn(unreachable_pub). 2024-09-09 08:48:09 +10:00
simplify_comparison_integral.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
single_use_consts.rs cleanup: don't clone types that are Copy 2024-09-29 13:31:30 +02:00
sroa.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
ssa.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
unreachable_enum_branching.rs compiler: Add is_uninhabited and use LayoutS accessors 2024-10-28 09:58:30 -07:00
unreachable_prop.rs Improve comment formatting. 2024-09-10 08:42:30 +10:00
validate.rs TypingMode 🤔 2024-10-29 17:01:24 +01:00