Skip to content

Commit 5fab20b

Browse files
authored
[NFC] Move StableHashing.h from CodeGen to ADT (#67704)
1 parent 5e4ec53 commit 5fab20b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

llvm/include/llvm/CodeGen/StableHashing.h renamed to llvm/include/llvm/ADT/StableHashing.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- llvm/CodeGen/StableHashing.h - Utilities for stable hashing * C++ *-===//
1+
//===- llvm/ADT/StableHashing.h - Utilities for stable hashing * C++ *-----===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -12,8 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
#ifndef LLVM_CODEGEN_STABLEHASHING_H
16-
#define LLVM_CODEGEN_STABLEHASHING_H
15+
#ifndef LLVM_ADT_STABLEHASHING_H
16+
#define LLVM_ADT_STABLEHASHING_H
1717

1818
#include "llvm/ADT/StringRef.h"
1919

llvm/include/llvm/CodeGen/MachineStableHash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#ifndef LLVM_CODEGEN_MACHINESTABLEHASH_H
1515
#define LLVM_CODEGEN_MACHINESTABLEHASH_H
1616

17-
#include "llvm/CodeGen/StableHashing.h"
17+
#include "llvm/ADT/StableHashing.h"
1818

1919
namespace llvm {
2020
class MachineBasicBlock;

llvm/lib/CodeGen/MachineOperand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#include "llvm/CodeGen/MachineOperand.h"
14+
#include "llvm/ADT/StableHashing.h"
1415
#include "llvm/ADT/StringExtras.h"
1516
#include "llvm/Analysis/Loads.h"
1617
#include "llvm/CodeGen/MIRFormatter.h"
1718
#include "llvm/CodeGen/MachineFrameInfo.h"
1819
#include "llvm/CodeGen/MachineJumpTableInfo.h"
1920
#include "llvm/CodeGen/MachineRegisterInfo.h"
20-
#include "llvm/CodeGen/StableHashing.h"
2121
#include "llvm/CodeGen/TargetInstrInfo.h"
2222
#include "llvm/CodeGen/TargetRegisterInfo.h"
2323
#include "llvm/Config/llvm-config.h"

llvm/lib/CodeGen/MachineStableHash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "llvm/ADT/Hashing.h"
2020
#include "llvm/ADT/STLExtras.h"
2121
#include "llvm/ADT/SmallVector.h"
22+
#include "llvm/ADT/StableHashing.h"
2223
#include "llvm/ADT/Statistic.h"
2324
#include "llvm/ADT/ilist_iterator.h"
2425
#include "llvm/ADT/iterator_range.h"
@@ -30,7 +31,6 @@
3031
#include "llvm/CodeGen/MachineOperand.h"
3132
#include "llvm/CodeGen/MachineRegisterInfo.h"
3233
#include "llvm/CodeGen/Register.h"
33-
#include "llvm/CodeGen/StableHashing.h"
3434
#include "llvm/Config/llvm-config.h"
3535
#include "llvm/IR/Constants.h"
3636
#include "llvm/MC/MCSymbol.h"

llvm/lib/Passes/StandardInstrumentations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
#include "llvm/Passes/StandardInstrumentations.h"
1616
#include "llvm/ADT/Any.h"
17+
#include "llvm/ADT/StableHashing.h"
1718
#include "llvm/ADT/StringRef.h"
1819
#include "llvm/Analysis/CallGraphSCCPass.h"
1920
#include "llvm/Analysis/LazyCallGraph.h"
2021
#include "llvm/Analysis/LoopInfo.h"
21-
#include "llvm/CodeGen/StableHashing.h"
2222
#include "llvm/IR/Constants.h"
2323
#include "llvm/IR/Function.h"
2424
#include "llvm/IR/Module.h"

0 commit comments

Comments
 (0)