[−][src]Module rustc_mir::transform::instrument_coverage

Structs

CoverageRegion
CoverageVisitor
InstrumentCoverage

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.

Instrumentor
ShortCircuitPreorder

Functions

coverageinfo_from_mir
hash
hash_mir_source
hir_body
make_code_region

Convert the Span into its file name, start line and column, and end line and column

provide

The query provider for CoverageInfo, requested by codegen_coverage() (to inject each counter) and FunctionCoverage::new() (to extract the coverage map metadata from the MIR).