Expand description
Safe wrappers for coverage-specific FFI functions.
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