cranelift_codegen::incremental_cache

Function compute_cache_key

Source
pub fn compute_cache_key(isa: &dyn TargetIsa, func: &Function) -> CacheKeyHash
Available on crate feature incremental-cache only.
Expand description

Compute a cache key, and hash it on your behalf.

Since computing the CacheKey is a bit expensive, it should be done as least as possible.