about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
AgeCommit message (Expand)AuthorLines
2024-06-17coverage: Add debugging flag `-Zcoverage-options=no-mir-spans`Zalathar-2/+6
2024-05-30coverage: Rename MC/DC `conditions_num` to `num_conditions`Zalathar-3/+3
2024-05-06coverage: Tidy imports in `rustc_mir_transform::coverage`Zalathar-7/+8
2024-05-06coverage: Rename `CoverageSpans` to `ExtractedMappings`Zalathar-15/+15
2024-05-06coverage: Destructure the mappings struct to make sure we don't miss anyZalathar-4/+13
2024-05-06coverage: Don't recompute the number of test vector bitmap bytesZalathar-5/+1
2024-05-06coverage: Separately compute the set of BCBs with counter mappingsZalathar-9/+12
2024-05-04coverage: Rename `BcbBranchPair` to `mappings::BranchPair`Zalathar-2/+2
2024-05-04coverage: Flatten `BcbMappingKind` into `mappings::CodeMapping`Zalathar-6/+4
2024-05-04coverage: Extract helper `region_for_span`Zalathar-4/+5
2024-05-04coverage: Split out MC/DC branches from `BcbMappingKind`Zalathar-28/+23
2024-05-04coverage: Split out MC/DC decisions from `BcbMappingKind`Zalathar-15/+17
2024-05-01coverage: Replace `max_decision_depth` with `num_condition_bitmaps`Zalathar-3/+3
2024-04-30coverage: Split off `mappings.rs` from `spans.rs` and `from_mir.rs`Zalathar-2/+3
2024-04-30coverage: Prepare to split `spans.rs` into two filesZalathar-1/+0
2024-04-29mcdc-coverage: Get decision_depth from THIR loweringDorian Péron-0/+11
2024-04-29mcdc-coverage: Add decision_depth field in structsDorian Péron-15/+20
2024-04-22coverage: Separate branch pairs from other mapping kindsZalathar-8/+14
2024-04-22coverage: Detach MC/DC branch spans from regular branch spansZalathar-4/+12
2024-04-19coverage. Generate Mappings of decisions and conditions for MC/DCzhuyunxing-7/+72
2024-03-28Replace `RemapFileNameExt::for_codegen` with explicit callsUrgau-2/+5
2024-03-23Unbox and unwrap the contents of `StatementKind::Coverage`Zalathar-5/+2
2024-03-18Deduplicate `associated_body` and `body_id`Oli Scherer-3/+1
2024-03-14coverage: Include recorded branch info in coverage instrumentationZalathar-0/+4
2024-03-13coverage: Make `is_eligible_for_coverage` a hook methodZalathar-33/+1
2024-02-07Rollup merge of #120564 - Zalathar:increment-site, r=oli-obkGuillaume Boisseau-49/+40
2024-02-05coverage: Make `fn_sig_span` optional, and note its quirksZalathar-8/+9
2024-02-05coverage: Make unexpansion of closure bodies more preciseZalathar-18/+12
2024-02-02coverage: Split out counter increment sites from BCB node/edge countersZalathar-49/+40
2024-01-30hir: Add non-optional `hir_owner_nodes` for real `OwnerId`sVadim Petrochenkov-6/+1
2024-01-30hir: Simplify `hir_owner_nodes` queryVadim Petrochenkov-1/+1
2024-01-25Rollup merge of #120292 - Zalathar:dismantle, r=oli-obkMatthias Krüger-139/+126
2024-01-24Rollup merge of #120185 - Zalathar:auto-derived, r=wesleywiserLeón Orell Valerian Liehr-0/+11
2024-01-24Rollup merge of #119460 - Zalathar:improper-region, r=wesleywiserLeón Orell Valerian Liehr-1/+34
2024-01-24coverage: Flatten the functions for extracting/refining coverage spansZalathar-1/+1
2024-01-24coverage: Dismantle `Instrumentor` into ordinary functionsZalathar-139/+126
2024-01-22Use debug_assert instead of expanded equivalentWesley Wiser-4/+2
2024-01-22coverage: Don't instrument `#[automatically_derived]` functionsZalathar-0/+11
2024-01-11coverage: Add enums to accommodate other kinds of coverage mappingsZalathar-4/+6
2024-01-11coverage: Store extracted spans as a flat list of mappingsZalathar-10/+3
2024-01-11coverage: Extract helper function `term_for_bcb`Zalathar-4/+8
2024-01-10coverage: Discard code regions that might cause fatal errors in `llvm-cov`Zalathar-1/+36
2024-01-08coverage: `llvm-cov` expects column numbers to be bytes, not code pointsZalathar-14/+58
2024-01-08coverage: Allow `make_code_region` to failZalathar-6/+12
2024-01-03Rollup merge of #119444 - compiler-errors:closure-or-coroutine, r=oli-obkLeón Orell Valerian Liehr-1/+1
2023-12-30is_coroutine -> is_coroutine_or_closureMichael Goulet-1/+1
2023-12-30coverage: Make `coverage_counters` a local variableZalathar-14/+18
2023-12-30coverage: Prepare mappings separately from injecting statementsZalathar-27/+37
2023-12-27coverage: Unexpand spans with `find_ancestor_inside_same_ctxt`Zalathar-16/+5
2023-12-20coverage: Check for `async fn` explicitly, without needing a heuristicZalathar-1/+3