[llvm] 457db40 - Cloning.h - reduce AliasAnalysis.h include to forward declarations. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 24 07:48:22 PDT 2020
Author: Simon Pilgrim
Date: 2020-06-24T15:48:10+01:00
New Revision: 457db4036a14635c6bc6875a24e17c502a30f6e8
URL: https://github.com/llvm/llvm-project/commit/457db4036a14635c6bc6875a24e17c502a30f6e8
DIFF: https://github.com/llvm/llvm-project/commit/457db4036a14635c6bc6875a24e17c502a30f6e8.diff
LOG: Cloning.h - reduce AliasAnalysis.h include to forward declarations. NFC.
Fix implicit include dependencies in source files.
Added:
Modified:
llvm/include/llvm/Transforms/Utils/Cloning.h
llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
llvm/unittests/Transforms/Utils/CloningTest.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/Cloning.h b/llvm/include/llvm/Transforms/Utils/Cloning.h
index 4fce03461deb..dffb7801bc8e 100644
--- a/llvm/include/llvm/Transforms/Utils/Cloning.h
+++ b/llvm/include/llvm/Transforms/Utils/Cloning.h
@@ -19,7 +19,6 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Twine.h"
-#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/InlineCost.h"
#include "llvm/IR/ValueHandle.h"
@@ -30,6 +29,7 @@
namespace llvm {
+class AAResults;
class AllocaInst;
class BasicBlock;
class BlockFrequencyInfo;
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp b/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
index 3382f35a945a..7652f0fda55f 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
@@ -15,6 +15,7 @@
#include "ReduceFunctions.h"
#include "Delta.h"
#include "llvm/ADT/SetVector.h"
+#include "llvm/IR/Instructions.h"
#include <set>
using namespace llvm;
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp b/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
index 5732208ee0a9..843ca46458f5 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
@@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "ReduceGlobalVars.h"
+#include "llvm/IR/Constants.h"
#include <set>
using namespace llvm;
diff --git a/llvm/unittests/Transforms/Utils/CloningTest.cpp b/llvm/unittests/Transforms/Utils/CloningTest.cpp
index fc0b3de23641..c8bfd288a4f0 100644
--- a/llvm/unittests/Transforms/Utils/CloningTest.cpp
+++ b/llvm/unittests/Transforms/Utils/CloningTest.cpp
@@ -9,6 +9,7 @@
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallPtrSet.h"
+#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/DomTreeUpdater.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/AsmParser/Parser.h"
More information about the llvm-commits
mailing list