1 //===- llvm/IR/StructuralHash.h - IR Hashing --------------------*- C++ -*-===//
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 // This file provides hashing of the LLVM IR structure to be used to check
10 // Passes modification status.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_IR_STRUCTURALHASH_H
15 #define LLVM_IR_STRUCTURALHASH_H
16 
17 #include <cstdint>
18 
19 namespace llvm {
20 
21 class Function;
22 class Module;
23 
24 uint64_t StructuralHash(const Function &F);
25 uint64_t StructuralHash(const Module &M);
26 
27 } // end namespace llvm
28 
29 #endif
30