rustc_mir_transform::coverage - Rust (original) (raw)
Module coverage
Modules§
counters 🔒
graph 🔒
mappings 🔒
query 🔒
spans 🔒
unexpand 🔒
Structs§
Function information extracted from HIR by the coverage instrumentor.
Inserts StatementKind::Coverage
statements that either instrument the binary with injected counters, via intrinsic llvm.instrprof.increment
, and/or inject metadata used during codegen to construct the coverage map.
Functions§
For each coverage span extracted from MIR, create a corresponding mapping.
Inject any necessary coverage statements into MIR, so that they influence codegen.
For each conditions inject statements to update condition bitmap after it has been evaluated. For each decision inject statements to update test vector bitmap after it has been evaluated.