LLVM  14.0.0git
MachineStableHash.h
Go to the documentation of this file.
1 //===------------ MachineStableHash.h - MIR Stable Hashing Utilities ------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Stable hashing for MachineInstr and MachineOperand. Useful or getting a
10 // hash across runs, modules, etc.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_CODEGEN_MACHINESTABLEHASH_H
15 #define LLVM_CODEGEN_MACHINESTABLEHASH_H
16 
18 
19 namespace llvm {
20 class MachineInstr;
21 class MachineOperand;
22 
23 stable_hash stableHashValue(const MachineOperand &MO);
24 stable_hash stableHashValue(const MachineInstr &MI, bool HashVRegs = false,
25  bool HashConstantPoolIndices = false,
26  bool HashMemOperands = false);
27 
28 } // namespace llvm
29 
30 #endif
MI
IRTranslator LLVM IR MI
Definition: IRTranslator.cpp:103
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::stable_hash
uint64_t stable_hash
An opaque object representing a stable hash code.
Definition: StableHashing.h:24
StableHashing.h
llvm::stableHashValue
stable_hash stableHashValue(const MachineOperand &MO)
Definition: MachineStableHash.cpp:62