[llvm] 03f05a4 - [IR] Don't include GenericDomTreeConstruction.h in header (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 22 00:15:28 PST 2023


Author: Nikita Popov
Date: 2023-11-22T09:06:36+01:00
New Revision: 03f05a4e72891237264ab48adf62034aaac8bd46

URL: https://github.com/llvm/llvm-project/commit/03f05a4e72891237264ab48adf62034aaac8bd46
DIFF: https://github.com/llvm/llvm-project/commit/03f05a4e72891237264ab48adf62034aaac8bd46.diff

LOG: [IR] Don't include GenericDomTreeConstruction.h in header (NFC)

The whole point of the GenericDomTree.h vs
GenericDomTreeConstruction.h distinction is that the latter only
needs to be included in the source file and not the header.

Added: 
    

Modified: 
    llvm/include/llvm/IR/Dominators.h
    llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
    llvm/lib/IR/Dominators.cpp
    llvm/lib/Transforms/Vectorize/VectorCombine.cpp
    llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Dominators.h b/llvm/include/llvm/IR/Dominators.h
index 6ceadbf30b895f4..d619c2d84aa1e9b 100644
--- a/llvm/include/llvm/IR/Dominators.h
+++ b/llvm/include/llvm/IR/Dominators.h
@@ -33,7 +33,6 @@
 #include "llvm/Support/CFGDiff.h"
 #include "llvm/Support/CFGUpdate.h"
 #include "llvm/Support/GenericDomTree.h"
-#include "llvm/Support/GenericDomTreeConstruction.h"
 #include <algorithm>
 #include <utility>
 #include <vector>

diff  --git a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
index d250fd9339ab4e4..f00528023c91de7 100644
--- a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
+++ b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
@@ -25,6 +25,7 @@
 #include <assert.h>
 #include <cstdint>
 #include <optional>
+#include <queue>
 #include <sstream>
 #include <unordered_map>
 

diff  --git a/llvm/lib/IR/Dominators.cpp b/llvm/lib/IR/Dominators.cpp
index 24cc9f46ff79fe7..0f4d112c69c1889 100644
--- a/llvm/lib/IR/Dominators.cpp
+++ b/llvm/lib/IR/Dominators.cpp
@@ -25,6 +25,7 @@
 #include "llvm/PassRegistry.h"
 #include "llvm/Support/Casting.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/GenericDomTreeConstruction.h"
 #include "llvm/Support/raw_ostream.h"
 
 #include <cassert>

diff  --git a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
index 71ff21082c732d0..acf2b0e154e8267 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -30,6 +30,7 @@
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Transforms/Utils/Local.h"
 #include <numeric>
+#include <queue>
 
 #define DEBUG_TYPE "vector-combine"
 #include "llvm/Transforms/Utils/InstructionWorklist.h"

diff  --git a/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp
index dccc18fdb9d6c00..1763feedcdbc3da 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp
@@ -14,6 +14,7 @@
 #include "llvm/IR/InstIterator.h"
 #include "llvm/IR/Instructions.h"
 #include "llvm/IR/Operator.h"
+#include <queue>
 
 using namespace llvm;
 


        


More information about the llvm-commits mailing list