[llvm] ccaaa00 - [CodeGen] Avoid GenericDomTreeConstruction.h include in headers (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 03:37:38 PDT 2024
Author: Nikita Popov
Date: 2024-06-12T12:36:30+02:00
New Revision: ccaaa0000f585ac0724452f8a7baee7307dae4eb
URL: https://github.com/llvm/llvm-project/commit/ccaaa0000f585ac0724452f8a7baee7307dae4eb
DIFF: https://github.com/llvm/llvm-project/commit/ccaaa0000f585ac0724452f8a7baee7307dae4eb.diff
LOG: [CodeGen] Avoid GenericDomTreeConstruction.h include in headers (NFC)
This header is split off from GenericDomTree.h so it can be included
in the source file only. Do this for MachineDominators.h and
MachinePostDominators.h.
Added:
Modified:
llvm/include/llvm/CodeGen/MachineDominators.h
llvm/lib/CodeGen/MachineDominators.cpp
llvm/lib/CodeGen/MachinePostDominators.cpp
llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/MachineDominators.h b/llvm/include/llvm/CodeGen/MachineDominators.h
index 7c7df8ca4c381..6f889fc2ea37f 100644
--- a/llvm/include/llvm/CodeGen/MachineDominators.h
+++ b/llvm/include/llvm/CodeGen/MachineDominators.h
@@ -21,7 +21,6 @@
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBundleIterator.h"
#include "llvm/Support/GenericDomTree.h"
-#include "llvm/Support/GenericDomTreeConstruction.h"
#include <cassert>
#include <memory>
#include <optional>
diff --git a/llvm/lib/CodeGen/MachineDominators.cpp b/llvm/lib/CodeGen/MachineDominators.cpp
index bdde8a4b43570..22d315a1d149a 100644
--- a/llvm/lib/CodeGen/MachineDominators.cpp
+++ b/llvm/lib/CodeGen/MachineDominators.cpp
@@ -18,6 +18,7 @@
#include "llvm/Pass.h"
#include "llvm/PassRegistry.h"
#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/GenericDomTreeConstruction.h"
using namespace llvm;
diff --git a/llvm/lib/CodeGen/MachinePostDominators.cpp b/llvm/lib/CodeGen/MachinePostDominators.cpp
index bb587b0611fa1..8ba7c3180785c 100644
--- a/llvm/lib/CodeGen/MachinePostDominators.cpp
+++ b/llvm/lib/CodeGen/MachinePostDominators.cpp
@@ -13,6 +13,7 @@
#include "llvm/CodeGen/MachinePostDominators.h"
#include "llvm/InitializePasses.h"
+#include "llvm/Support/GenericDomTreeConstruction.h"
using namespace llvm;
diff --git a/llvm/lib/Target/X86/X86FlagsCopyLowering.cpp b/llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
index 9bd4e783f5839..394947bc65c89 100644
--- a/llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
+++ b/llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
@@ -24,6 +24,7 @@
#include "X86InstrBuilder.h"
#include "X86InstrInfo.h"
#include "X86Subtarget.h"
+#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/ScopeExit.h"
More information about the llvm-commits
mailing list