Modules§
Structs§
- Extracted
HirInfo 🔒 - Function information extracted from HIR by the coverage instrumentor.
- Instrument
Coverage 🔒 - Inserts
StatementKind::Coverage
statements that either instrument the binary with injected counters, via intrinsicllvm.instrprof.increment
, and/or inject metadata used during codegen to construct the coverage map.
Functions§
- create_
mappings 🔒 - For each coverage span extracted from MIR, create a corresponding mapping.
- extract_
hir_ 🔒info - extract_
hole_ 🔒spans_ from_ hir - hash_
mir_ 🔒source - inject_
coverage_ 🔒statements - Inject any necessary coverage statements into MIR, so that they influence codegen.
- inject_
mcdc_ 🔒statements - 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.
- inject_
statement 🔒 - instrument_
function_ 🔒for_ coverage