[llvm] [StructuralHash] Refactor (PR #112621)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 25 15:18:57 PDT 2024
================
@@ -14,14 +14,15 @@
#ifndef LLVM_IR_STRUCTURALHASH_H
#define LLVM_IR_STRUCTURALHASH_H
+#include "llvm/ADT/StableHashing.h"
#include <cstdint>
namespace llvm {
class Function;
class Module;
-using IRHash = uint64_t;
+using IRHash = stable_hash;
----------------
boomanaiden154 wrote:
If we're just going to use `stable_hash`, should we get rid of the `IRHash` name here?
We either need to do this or use `IRHash` instead of `stable_hash` in a couple instances in the implementation.
https://github.com/llvm/llvm-project/pull/112621
More information about the llvm-commits
mailing list