[llvm] 9596b48 - [IPO] Remove unused forward declarations

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 11 08:45:13 PDT 2023


Author: Kazu Hirata
Date: 2023-06-11T08:45:07-07:00
New Revision: 9596b48973f9e01dae7e252f03b2fb3ef3f7a153

URL: https://github.com/llvm/llvm-project/commit/9596b48973f9e01dae7e252f03b2fb3ef3f7a153
DIFF: https://github.com/llvm/llvm-project/commit/9596b48973f9e01dae7e252f03b2fb3ef3f7a153.diff

LOG: [IPO] Remove unused forward declarations

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/IPO.h
    llvm/include/llvm/Transforms/IPO/FunctionAttrs.h
    llvm/include/llvm/Transforms/IPO/Internalize.h
    llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/IPO.h b/llvm/include/llvm/Transforms/IPO.h
index 704d09b5f3d85..4995b000c4542 100644
--- a/llvm/include/llvm/Transforms/IPO.h
+++ b/llvm/include/llvm/Transforms/IPO.h
@@ -20,11 +20,8 @@
 
 namespace llvm {
 
-struct InlineParams;
 class ModulePass;
 class Pass;
-class BasicBlock;
-class GlobalValue;
 class raw_ostream;
 
 //===----------------------------------------------------------------------===//

diff  --git a/llvm/include/llvm/Transforms/IPO/FunctionAttrs.h b/llvm/include/llvm/Transforms/IPO/FunctionAttrs.h
index 0b93bbd6eaa2d..6a21ff616d506 100644
--- a/llvm/include/llvm/Transforms/IPO/FunctionAttrs.h
+++ b/llvm/include/llvm/Transforms/IPO/FunctionAttrs.h
@@ -26,7 +26,6 @@ class GlobalValueSummary;
 class ModuleSummaryIndex;
 class Function;
 class Module;
-class Pass;
 
 /// Returns the memory access properties of this copy of the function.
 MemoryEffects computeFunctionBodyMemoryAccess(Function &F, AAResults &AAR);

diff  --git a/llvm/include/llvm/Transforms/IPO/Internalize.h b/llvm/include/llvm/Transforms/IPO/Internalize.h
index 5beb925bb089d..ece5bfe77b798 100644
--- a/llvm/include/llvm/Transforms/IPO/Internalize.h
+++ b/llvm/include/llvm/Transforms/IPO/Internalize.h
@@ -28,7 +28,6 @@
 
 namespace llvm {
 class Module;
-class CallGraph;
 
 /// A pass that internalizes all functions and variables other than those that
 /// must be preserved according to \c MustPreserveGV.

diff  --git a/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h b/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h
index bfa84b8015b3c..9e121d9c6f4ed 100644
--- a/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h
+++ b/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h
@@ -28,7 +28,6 @@ class Module;
 
 template <typename T> class ArrayRef;
 template <typename T> class MutableArrayRef;
-class Function;
 class GlobalVariable;
 class ModuleSummaryIndex;
 struct ValueInfo;


        


More information about the llvm-commits mailing list