rust/compiler/rustc_codegen_llvm/src
Stuart Cook 3b22c21dd8
Rollup merge of #140847 - Zalathar:unused-local-file, r=SparrowLii
coverage: Detect unused local file IDs to avoid an LLVM assertion

Each function's coverage metadata contains a *local file table* that maps local file IDs (used by the function's mapping regions) to global file IDs (shared by all functions in the same CGU).

LLVM requires all local file IDs to have at least one mapping region, and has an assertion that will fail if it detects a local file ID with no regions. To make sure that assertion doesn't fire, we need to detect and skip functions whose metadata would trigger it.

(This can't actually happen yet, because currently all of a function's spans must belong to the same file and expansion. But this will be an important edge case when adding expansion region support.)
2025-05-19 21:10:42 +10:00
..
back Add a safe wrapper for LLVMAppendModuleInlineAsm 2025-05-11 14:38:42 +10:00
builder add custom enzyme markers to target methods 2025-04-25 11:09:52 +05:30
coverageinfo coverage: Detect unused local file IDs to avoid an LLVM assertion 2025-05-10 00:24:03 +10:00
debuginfo Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00
llvm Auto merge of #140914 - Zalathar:asm-bindings, r=compiler-errors 2025-05-12 17:39:21 +00:00
abi.rs Update the minimum external LLVM to 19 2025-04-05 11:44:38 -07:00
allocator.rs Remove implicit #[no_mangle] for #[rustc_std_internal_symbol] 2025-03-17 14:08:09 +00:00
asm.rs Flatten control-flow in inline_asm_call after verification 2025-05-11 14:38:42 +10:00
attributes.rs don't depend on rustc_attr_parsing if rustc_data_structures will do 2025-05-09 23:16:55 +02:00
base.rs Pass &mut self to codegen_global_asm 2025-04-14 09:38:04 +00:00
builder.rs Rename OperandBundleOwned to OperandBundleBox 2025-05-11 21:21:38 +10:00
callee.rs don't depend on rustc_attr_parsing if rustc_data_structures will do 2025-05-09 23:16:55 +02:00
common.rs Rename OperandBundleOwned to OperandBundleBox 2025-05-11 21:21:38 +10:00
consts.rs Revert "Fix linking statics on Arm64EC #140176" 2025-05-15 16:54:27 +08:00
context.rs Use the fallback body for {minimum,maximum}f128 on LLVM as well. 2025-05-10 17:34:54 +02:00
declare.rs Make allocator shim creation mostly use safe code 2025-02-24 15:11:29 +00:00
errors.rs KCFI: Add KCFI arity indicator support 2025-04-05 04:05:04 +00:00
intrinsic.rs Use the fallback body for {minimum,maximum}f128 on LLVM as well. 2025-05-10 17:34:54 +02:00
lib.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
llvm_util.rs Added apxf target feature support, under flag apx_target_feature 2025-05-06 23:28:27 +05:30
mono_item.rs Rename is_like_osx to is_like_darwin 2025-03-25 21:53:52 +01:00
type_.rs remove noinline attribute and add alwaysinline after AD pass 2025-04-28 21:10:32 +05:30
type_of.rs rename BackendRepr::Vector → SimdVector 2025-02-28 17:17:45 +01:00
va_arg.rs Rename is_like_osx to is_like_darwin 2025-03-25 21:53:52 +01:00
value.rs Add warn(unreachable_pub) to rustc_codegen_llvm. 2024-08-16 08:46:57 +10:00