Returns a hash of the function F.

Synopsis

Declared in <llvm/IR/StructuralHash.h>

stable_hash
StructuralHash(
    Function const& F,
    bool DetailedHash = false);

Return Value

An opaque object representing a stable hash code. It can be serialized, deserialized, and is stable across processes and executions.

Parameters

Name

Description

F

The function to hash.

DetailedHash

Whether or not to encode additional information in the hash. The additional information added into the hash when this flag is set to true includes instruction and operand type information.

Created with MrDocs