[llvm] 5ee7692 - [Analysis] Remove unused forward declarations (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 31 10:25:27 PST 2021


Author: Kazu Hirata
Date: 2021-12-31T10:25:16-08:00
New Revision: 5ee769296ead9138d7905917f20fdcf736ea63d0

URL: https://github.com/llvm/llvm-project/commit/5ee769296ead9138d7905917f20fdcf736ea63d0
DIFF: https://github.com/llvm/llvm-project/commit/5ee769296ead9138d7905917f20fdcf736ea63d0.diff

LOG: [Analysis] Remove unused forward declarations (NFC)

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/AliasAnalysis.h
    llvm/include/llvm/Analysis/DivergenceAnalysis.h
    llvm/include/llvm/Analysis/IVUsers.h
    llvm/include/llvm/Analysis/InlineCost.h
    llvm/include/llvm/Analysis/InlineOrder.h
    llvm/include/llvm/Analysis/LazyBlockFrequencyInfo.h
    llvm/include/llvm/Analysis/Loads.h
    llvm/include/llvm/Analysis/LoopAccessAnalysis.h
    llvm/include/llvm/Analysis/MemoryBuiltins.h
    llvm/include/llvm/Analysis/MemorySSA.h
    llvm/include/llvm/Analysis/MemorySSAUpdater.h
    llvm/include/llvm/Analysis/ReplayInlineAdvisor.h
    llvm/include/llvm/Analysis/SyncDependenceAnalysis.h
    llvm/include/llvm/Analysis/TargetTransformInfo.h
    llvm/include/llvm/Analysis/ValueTracking.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/AliasAnalysis.h b/llvm/include/llvm/Analysis/AliasAnalysis.h
index 2770a1a9b2774..1ecbd4b830049 100644
--- a/llvm/include/llvm/Analysis/AliasAnalysis.h
+++ b/llvm/include/llvm/Analysis/AliasAnalysis.h
@@ -60,7 +60,6 @@ class CatchReturnInst;
 class DominatorTree;
 class FenceInst;
 class Function;
-class InvokeInst;
 class LoopInfo;
 class PreservedAnalyses;
 class TargetLibraryInfo;

diff  --git a/llvm/include/llvm/Analysis/DivergenceAnalysis.h b/llvm/include/llvm/Analysis/DivergenceAnalysis.h
index 6f759a81fdef6..7e526b2fad84c 100644
--- a/llvm/include/llvm/Analysis/DivergenceAnalysis.h
+++ b/llvm/include/llvm/Analysis/DivergenceAnalysis.h
@@ -22,7 +22,6 @@
 #include <vector>
 
 namespace llvm {
-class Module;
 class Value;
 class Instruction;
 class Loop;

diff  --git a/llvm/include/llvm/Analysis/IVUsers.h b/llvm/include/llvm/Analysis/IVUsers.h
index e2026a4d5875c..390d09848dde8 100644
--- a/llvm/include/llvm/Analysis/IVUsers.h
+++ b/llvm/include/llvm/Analysis/IVUsers.h
@@ -28,7 +28,6 @@ class Value;
 class ScalarEvolution;
 class SCEV;
 class IVUsers;
-class DataLayout;
 
 /// IVStrideUse - Keep track of one use of a strided induction variable.
 /// The Expr member keeps track of the expression, User is the actual user

diff  --git a/llvm/include/llvm/Analysis/InlineCost.h b/llvm/include/llvm/Analysis/InlineCost.h
index 776749b9a07f4..f86ee5a148749 100644
--- a/llvm/include/llvm/Analysis/InlineCost.h
+++ b/llvm/include/llvm/Analysis/InlineCost.h
@@ -21,7 +21,6 @@
 #include <climits>
 
 namespace llvm {
-class AssumptionCacheTracker;
 class BlockFrequencyInfo;
 class CallBase;
 class DataLayout;

diff  --git a/llvm/include/llvm/Analysis/InlineOrder.h b/llvm/include/llvm/Analysis/InlineOrder.h
index def3192356f48..feefa9b9ddd15 100644
--- a/llvm/include/llvm/Analysis/InlineOrder.h
+++ b/llvm/include/llvm/Analysis/InlineOrder.h
@@ -20,7 +20,6 @@
 namespace llvm {
 class CallBase;
 class Function;
-class Module;
 
 template <typename T> class InlineOrder {
 public:

diff  --git a/llvm/include/llvm/Analysis/LazyBlockFrequencyInfo.h b/llvm/include/llvm/Analysis/LazyBlockFrequencyInfo.h
index 0e7dc943bacf5..ab6d6ce9ec5ae 100644
--- a/llvm/include/llvm/Analysis/LazyBlockFrequencyInfo.h
+++ b/llvm/include/llvm/Analysis/LazyBlockFrequencyInfo.h
@@ -22,7 +22,6 @@
 
 namespace llvm {
 class AnalysisUsage;
-class BranchProbabilityInfo;
 class Function;
 class LoopInfo;
 

diff  --git a/llvm/include/llvm/Analysis/Loads.h b/llvm/include/llvm/Analysis/Loads.h
index ced1943b81d95..3db501c51a171 100644
--- a/llvm/include/llvm/Analysis/Loads.h
+++ b/llvm/include/llvm/Analysis/Loads.h
@@ -24,7 +24,6 @@ class DominatorTree;
 class Instruction;
 class LoadInst;
 class Loop;
-class MDNode;
 class MemoryLocation;
 class ScalarEvolution;
 class TargetLibraryInfo;

diff  --git a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
index 2b4edfac61fc4..e55a90b0ea41f 100644
--- a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
+++ b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
@@ -26,7 +26,6 @@ class AAResults;
 class DataLayout;
 class Loop;
 class LoopAccessInfo;
-class OptimizationRemarkEmitter;
 class raw_ostream;
 class SCEV;
 class SCEVUnionPredicate;

diff  --git a/llvm/include/llvm/Analysis/MemoryBuiltins.h b/llvm/include/llvm/Analysis/MemoryBuiltins.h
index 94495a5180422..6cbd700e67ac1 100644
--- a/llvm/include/llvm/Analysis/MemoryBuiltins.h
+++ b/llvm/include/llvm/Analysis/MemoryBuiltins.h
@@ -30,7 +30,6 @@ namespace llvm {
 class AllocaInst;
 class Argument;
 class CallInst;
-class ConstantInt;
 class ConstantPointerNull;
 class DataLayout;
 class ExtractElementInst;

diff  --git a/llvm/include/llvm/Analysis/MemorySSA.h b/llvm/include/llvm/Analysis/MemorySSA.h
index 48aeef371e3d5..9198bd8412e68 100644
--- a/llvm/include/llvm/Analysis/MemorySSA.h
+++ b/llvm/include/llvm/Analysis/MemorySSA.h
@@ -106,7 +106,6 @@
 
 namespace llvm {
 
-class AllocaInst;
 class Function;
 class Instruction;
 class MemoryAccess;

diff  --git a/llvm/include/llvm/Analysis/MemorySSAUpdater.h b/llvm/include/llvm/Analysis/MemorySSAUpdater.h
index 659e6aff6e28b..3e5ebe9cb4275 100644
--- a/llvm/include/llvm/Analysis/MemorySSAUpdater.h
+++ b/llvm/include/llvm/Analysis/MemorySSAUpdater.h
@@ -44,7 +44,6 @@
 namespace llvm {
 
 class BasicBlock;
-class BranchInst;
 class DominatorTree;
 class Instruction;
 class LoopBlocksRPO;

diff  --git a/llvm/include/llvm/Analysis/ReplayInlineAdvisor.h b/llvm/include/llvm/Analysis/ReplayInlineAdvisor.h
index a0eb9af622052..dc2efeafb5680 100644
--- a/llvm/include/llvm/Analysis/ReplayInlineAdvisor.h
+++ b/llvm/include/llvm/Analysis/ReplayInlineAdvisor.h
@@ -14,11 +14,9 @@
 #include "llvm/IR/LLVMContext.h"
 
 namespace llvm {
-class BasicBlock;
 class CallBase;
 class Function;
 class Module;
-class OptimizationRemarkEmitter;
 
 struct CallSiteFormat {
   enum class Format : int {

diff  --git a/llvm/include/llvm/Analysis/SyncDependenceAnalysis.h b/llvm/include/llvm/Analysis/SyncDependenceAnalysis.h
index 92459ea79ab48..d42bfe5ba25f7 100644
--- a/llvm/include/llvm/Analysis/SyncDependenceAnalysis.h
+++ b/llvm/include/llvm/Analysis/SyncDependenceAnalysis.h
@@ -27,7 +27,6 @@ namespace llvm {
 
 class BasicBlock;
 class DominatorTree;
-class Loop;
 class PostDominatorTree;
 
 using ConstBlockSet = SmallPtrSet<const BasicBlock *, 4>;

diff  --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h
index d9f5c9689d5c2..a405b532c8921 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfo.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h
@@ -43,7 +43,6 @@ class BlockFrequencyInfo;
 class DominatorTree;
 class BranchInst;
 class CallBase;
-class ExtractElementInst;
 class Function;
 class GlobalValue;
 class InstCombiner;

diff  --git a/llvm/include/llvm/Analysis/ValueTracking.h b/llvm/include/llvm/Analysis/ValueTracking.h
index f0f78c0eaed4e..b943ec1cebd59 100644
--- a/llvm/include/llvm/Analysis/ValueTracking.h
+++ b/llvm/include/llvm/Analysis/ValueTracking.h
@@ -33,7 +33,6 @@ class APInt;
 class AssumptionCache;
 class DominatorTree;
 class GEPOperator;
-class IntrinsicInst;
 class LoadInst;
 class WithOverflowInst;
 struct KnownBits;


        


More information about the llvm-commits mailing list