Module llvm_cov

Source
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, so Version7 is actually 6u32.
write_filenames_to_buffer 🔒
write_function_mappings_to_buffer 🔒