rust/compiler/rustc_codegen_ssa/src
bors cc87afd8c0 Auto merge of #142259 - sayantn:simplify-intrinsics, r=workingjubilee
Simplify implementation of Rust intrinsics by using type parameters in the cache

The current implementation of intrinsics have a lot of duplication to handle different overloads of overloaded LLVM intrinsic. This PR uses the **base name and the type parameters** in the cache instead of the full, overloaded name. This has the benefit that `call_intrinsic` doesn't need to provide the full name, rather the type parameters (which is most of the time more available). This uses `LLVMIntrinsicCopyOverloadedName2` to get the overloaded name from the base name and the type parameters, and only uses it to declare the function.

(originally was part of rust-lang/rust#140763, split off later)

`@rustbot` label A-codegen A-LLVM
r? codegen
2025-06-14 16:43:34 +00:00
..
back Rollup merge of #142221 - mustartt:aix-fix-strip-order, r=davidtwco 2025-06-13 05:16:57 +02:00
debuginfo Flatten ifs in rustc_codegen_ssa 2025-03-17 18:56:52 +00:00
mir intrinsics: rename min_align_of to align_of 2025-06-12 17:50:25 +02:00
traits Auto merge of #142259 - sayantn:simplify-intrinsics, r=workingjubilee 2025-06-14 16:43:34 +00:00
assert_module_sources.rs Move methods from Map to TyCtxt, part 4. 2025-03-12 08:55:37 +11:00
base.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
codegen_attrs.rs Make #[used(linker)] the default on ELF too 2025-06-05 11:35:15 +00:00
common.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
errors.rs intrinsics: use const generic to set atomic ordering 2025-06-07 21:45:58 +02:00
lib.rs Revert "Fix linking statics on Arm64EC #140176" 2025-05-15 16:54:27 +08:00
meth.rs Rename unpack to kind 2025-05-27 11:14:45 +00:00
mono_item.rs Make predefine methods take &mut self 2025-05-28 20:55:00 +00:00
size_of_val.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
target_features.rs -Zretpoline and -Zretpoline-external-thunk flags (target modifiers) to enable retpoline-related target features 2025-06-09 21:29:59 +07:00