rust/compiler/rustc_codegen_llvm/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
..
back Consistently use safe wrapper function set_section 2024-10-30 11:38:20 +11:00
coverageinfo Use a type-safe helper to cast &str and &[u8] to *const c_char 2024-10-28 21:31:32 +11:00
debuginfo Consistently use safe wrapper function set_section 2024-10-30 11:38:20 +11:00
llvm Rollup merge of #132342 - Zalathar:operand-bundle, r=workingjubilee 2024-10-30 06:40:38 +01:00
abi.rs compiler: rustc_abi::Abi => BackendRepr 2024-10-29 14:56:00 -07:00
allocator.rs Clean up FFI calls for operand bundles 2024-10-30 13:26:24 +11:00
asm.rs compiler: rustc_abi::Abi => BackendRepr 2024-10-29 14:56:00 -07:00
attributes.rs codegen_ssa: consolidate tied feature checking 2024-09-24 15:48:49 +01:00
base.rs Consistently use safe wrapper function set_section 2024-10-30 11:38:20 +11:00
builder.rs Rollup merge of #132246 - workingjubilee:campaign-on-irform, r=compiler-errors 2024-10-30 14:01:37 -07:00
callee.rs Use safe wrappers get_visibility and set_visibility 2024-10-26 20:20:20 +11:00
common.rs Clean up FFI calls for operand bundles 2024-10-30 13:26:24 +11:00
consts.rs Use a type-safe helper to cast &str and &[u8] to *const c_char 2024-10-28 21:31:32 +11:00
context.rs Consistently use safe wrapper function set_section 2024-10-30 11:38:20 +11:00
declare.rs Use a type-safe helper to cast &str and &[u8] to *const c_char 2024-10-28 21:31:32 +11:00
errors.rs codegen_ssa: consolidate tied feature checking 2024-09-24 15:48:49 +01:00
intrinsic.rs compiler: rustc_abi::Abi => BackendRepr 2024-10-29 14:56:00 -07:00
lib.rs Use &raw in the compiler 2024-09-26 20:33:26 -07:00
llvm_util.rs refactor: cleaner check to return None 2024-10-28 20:16:35 +09:00
mono_item.rs Use safe wrappers get_visibility and set_visibility 2024-10-26 20:20:20 +11:00
type_.rs replace some deprecated functions 2024-09-19 09:39:28 +08:00
type_of.rs compiler: rustc_abi::Abi => BackendRepr 2024-10-29 14:56:00 -07:00
va_arg.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
value.rs Add warn(unreachable_pub) to rustc_codegen_llvm. 2024-08-16 08:46:57 +10:00