[llvm] 5fab20b - [NFC] Move StableHashing.h from CodeGen to ADT (#67704)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 16 10:42:27 PDT 2023
Author: Arthur Eubanks
Date: 2023-10-16T10:42:22-07:00
New Revision: 5fab20bc7e5513d197e19cee8ce4e2706b7dd3b3
URL: https://github.com/llvm/llvm-project/commit/5fab20bc7e5513d197e19cee8ce4e2706b7dd3b3
DIFF: https://github.com/llvm/llvm-project/commit/5fab20bc7e5513d197e19cee8ce4e2706b7dd3b3.diff
LOG: [NFC] Move StableHashing.h from CodeGen to ADT (#67704)
Added:
llvm/include/llvm/ADT/StableHashing.h
Modified:
llvm/include/llvm/CodeGen/MachineStableHash.h
llvm/lib/CodeGen/MachineOperand.cpp
llvm/lib/CodeGen/MachineStableHash.cpp
llvm/lib/Passes/StandardInstrumentations.cpp
Removed:
llvm/include/llvm/CodeGen/StableHashing.h
################################################################################
diff --git a/llvm/include/llvm/CodeGen/StableHashing.h b/llvm/include/llvm/ADT/StableHashing.h
similarity index 95%
rename from llvm/include/llvm/CodeGen/StableHashing.h
rename to llvm/include/llvm/ADT/StableHashing.h
index caf27e152e78f64..884b5752d9bb096 100644
--- a/llvm/include/llvm/CodeGen/StableHashing.h
+++ b/llvm/include/llvm/ADT/StableHashing.h
@@ -1,4 +1,4 @@
-//===- llvm/CodeGen/StableHashing.h - Utilities for stable hashing * C++ *-===//
+//===- llvm/ADT/StableHashing.h - Utilities for stable hashing * C++ *-----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_CODEGEN_STABLEHASHING_H
-#define LLVM_CODEGEN_STABLEHASHING_H
+#ifndef LLVM_ADT_STABLEHASHING_H
+#define LLVM_ADT_STABLEHASHING_H
#include "llvm/ADT/StringRef.h"
diff --git a/llvm/include/llvm/CodeGen/MachineStableHash.h b/llvm/include/llvm/CodeGen/MachineStableHash.h
index 43571b7b8afd212..743615d136aefc1 100644
--- a/llvm/include/llvm/CodeGen/MachineStableHash.h
+++ b/llvm/include/llvm/CodeGen/MachineStableHash.h
@@ -14,7 +14,7 @@
#ifndef LLVM_CODEGEN_MACHINESTABLEHASH_H
#define LLVM_CODEGEN_MACHINESTABLEHASH_H
-#include "llvm/CodeGen/StableHashing.h"
+#include "llvm/ADT/StableHashing.h"
namespace llvm {
class MachineBasicBlock;
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp
index 788c134b6ee8408..b6d6a7532d34074 100644
--- a/llvm/lib/CodeGen/MachineOperand.cpp
+++ b/llvm/lib/CodeGen/MachineOperand.cpp
@@ -11,13 +11,13 @@
//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/MachineOperand.h"
+#include "llvm/ADT/StableHashing.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Analysis/Loads.h"
#include "llvm/CodeGen/MIRFormatter.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineJumpTableInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
-#include "llvm/CodeGen/StableHashing.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/Config/llvm-config.h"
diff --git a/llvm/lib/CodeGen/MachineStableHash.cpp b/llvm/lib/CodeGen/MachineStableHash.cpp
index 9628e4c5aeb5df4..8fb9a6bfd86a6f3 100644
--- a/llvm/lib/CodeGen/MachineStableHash.cpp
+++ b/llvm/lib/CodeGen/MachineStableHash.cpp
@@ -19,6 +19,7 @@
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/StableHashing.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/ilist_iterator.h"
#include "llvm/ADT/iterator_range.h"
@@ -30,7 +31,6 @@
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Register.h"
-#include "llvm/CodeGen/StableHashing.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/IR/Constants.h"
#include "llvm/MC/MCSymbol.h"
diff --git a/llvm/lib/Passes/StandardInstrumentations.cpp b/llvm/lib/Passes/StandardInstrumentations.cpp
index 879a5bd805363b6..95920305f983033 100644
--- a/llvm/lib/Passes/StandardInstrumentations.cpp
+++ b/llvm/lib/Passes/StandardInstrumentations.cpp
@@ -14,11 +14,11 @@
#include "llvm/Passes/StandardInstrumentations.h"
#include "llvm/ADT/Any.h"
+#include "llvm/ADT/StableHashing.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Analysis/CallGraphSCCPass.h"
#include "llvm/Analysis/LazyCallGraph.h"
#include "llvm/Analysis/LoopInfo.h"
-#include "llvm/CodeGen/StableHashing.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
More information about the llvm-commits
mailing list