[DDG] Break a cyclic dependency from Analysis to ScalarOpts
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 18 Sep 2019 18:04:45 +0000 (18:04 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 18 Sep 2019 18:04:45 +0000 (18:04 +0000)
llvm-svn: 372240

llvm/include/llvm/Analysis/DDG.h

index 9f28c31..e93b000 100644 (file)
@@ -16,9 +16,8 @@
 #include "llvm/ADT/DirectedGraph.h"
 #include "llvm/Analysis/DependenceAnalysis.h"
 #include "llvm/Analysis/DependenceGraphBuilder.h"
-#include "llvm/Analysis/LoopPass.h"
+#include "llvm/Analysis/LoopAnalysisManager.h"
 #include "llvm/IR/Instructions.h"
-#include "llvm/Transforms/Scalar/LoopPassManager.h"
 #include <unordered_map>
 
 namespace llvm {
@@ -27,6 +26,7 @@ class DDGEdge;
 using DDGNodeBase = DGNode<DDGNode, DDGEdge>;
 using DDGEdgeBase = DGEdge<DDGNode, DDGEdge>;
 using DDGBase = DirectedGraph<DDGNode, DDGEdge>;
+class LPMUpdater;
 
 /// Data Dependence Graph Node
 /// The graph can represent the following types of nodes: