[#llvm-stableHashValue-00] = xref:llvm.adoc[llvm]::stableHashValue :relfileprefix: ../ :mrdocs: Compute a stable hash of machine instruction `MI.` == Synopsis Declared in `<llvm/CodeGen/MachineStableHash.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/stable_hash.adoc[stable_hash] stableHashValue( xref:llvm/MachineInstr.adoc[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 [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#