Expand description
Safe wrappers for coverage-specific FFI functions.
Functions§
- Hashes some bytes into a 64-bit hash, via LLVM’s
IndexedInstrProf::ComputeHash
, as required for parts of the LLVM coverage mapping format. - Returns LLVM’s
coverage::CovMapVersion::CurrentVersion
(CoverageMapping.h) as a raw numeric value. For historical reasons, the numeric value is 1 less than the number in the version’s name, soVersion7
is actually6u32
.