rustc_codegen_llvm::coverageinfo::llvm_cov

Function hash_bytes

Source
pub(crate) fn hash_bytes(bytes: &[u8]) -> u64
Expand description

Hashes some bytes into a 64-bit hash, via LLVM’s IndexedInstrProf::ComputeHash, as required for parts of the LLVM coverage mapping format.