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 ๐Ÿ”’