Compute a stable hash of machine instruction MI.

Synopsis

Declared in <llvm/CodeGen/MachineStableHash.h>

stable_hash
stableHashValue(
    MachineInstr const& MI,
    bool HashVRegs = false,
    bool HashConstantPoolIndices = false,
    bool HashMemOperands = false);

Description

Returns 0 if no stable hash could be computed. By default, virtual register definitions and memory operands are ignored so the hash is useful for CSE.

Return Value

A stable hash of the machine instruction, or 0 if none could be computed.

Parameters

Name

Description

MI

The machine instruction to hash.

HashVRegs

Whether to include virtual register definitions.

HashConstantPoolIndices

Whether to include constant pool indices.

HashMemOperands

Whether to include memory operands.

Created with MrDocs