ΒΆllvm::hash_code hash_value(
    const llvm::IRSimilarity::IRInstructionData&
        ID)

Description

Hashes \p Value based on its opcode, types, and operand types. Two IRInstructionData instances produce the same hash when they perform the same operation. As a simple example, consider the following instructions. Because the first two adds operate the same types, and are performing the same action, they will be hashed to the same value. However, the subtraction instruction is not the same as an addition, and will be hashed to a different value. Finally, the last add has a different type compared to the first two add instructions, so it will also be hashed to a different value that any of the previous instructions.

Declared at: llvm/include/llvm/Analysis/IRSimilarityIdentifier.h:255

Parameters

const llvm::IRSimilarity::IRInstructionData& ID
- The IRInstructionData instance to be hashed.

Returns

A hash_value of the IRInstructionData.