Expand description
Safe wrappers for coverage-specific FFI functions.
StructsΒ§
- Regions π
- Holds tables of the various region types in one struct.
FunctionsΒ§
- covfun_
section_ πname - covmap_
section_ πname - covmap_
var_ πname - create_
pgo_ πfunc_ name_ var - hash_
bytes π - Hashes some bytes into a 64-bit hash, via LLVMβs
IndexedInstrProf::ComputeHash
, as required for parts of the LLVM coverage mapping format. - mapping_
version π - 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
. - write_
filenames_ πto_ buffer - write_
function_ πmappings_ to_ buffer