Module llvm_cov

Module llvm_cov 

Source
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, so Version7 is actually 6u32.
write_filenames_to_buffer πŸ”’
write_function_mappings_to_buffer πŸ”’