[llvm] 8b11811 - [Transforms] Remove unused forward declarations (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 10 10:07:18 PST 2023
Author: Kazu Hirata
Date: 2023-12-10T10:07:12-08:00
New Revision: 8b1181133d5029f8bb4b40f8706d6c3e3fe3598c
URL: https://github.com/llvm/llvm-project/commit/8b1181133d5029f8bb4b40f8706d6c3e3fe3598c
DIFF: https://github.com/llvm/llvm-project/commit/8b1181133d5029f8bb4b40f8706d6c3e3fe3598c.diff
LOG: [Transforms] Remove unused forward declarations (NFC)
Added:
Modified:
llvm/include/llvm/Transforms/HipStdPar/HipStdPar.h
llvm/include/llvm/Transforms/IPO/EmbedBitcodePass.h
llvm/include/llvm/Transforms/Instrumentation/MemProfiler.h
llvm/include/llvm/Transforms/Scalar/Scalarizer.h
llvm/include/llvm/Transforms/Scalar/SimpleLoopUnswitch.h
llvm/include/llvm/Transforms/Utils/ValueMapper.h
llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
llvm/lib/Transforms/Vectorize/VPlanAnalysis.h
llvm/lib/Transforms/Vectorize/VPlanTransforms.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/HipStdPar/HipStdPar.h b/llvm/include/llvm/Transforms/HipStdPar/HipStdPar.h
index 9df093d8d5d597..5ff38bdf04812b 100644
--- a/llvm/include/llvm/Transforms/HipStdPar/HipStdPar.h
+++ b/llvm/include/llvm/Transforms/HipStdPar/HipStdPar.h
@@ -23,7 +23,6 @@
namespace llvm {
class Module;
-class ModuleAnaysisManager;
class HipStdParAcceleratorCodeSelectionPass
: public PassInfoMixin<HipStdParAcceleratorCodeSelectionPass> {
diff --git a/llvm/include/llvm/Transforms/IPO/EmbedBitcodePass.h b/llvm/include/llvm/Transforms/IPO/EmbedBitcodePass.h
index c35048c91aba20..2bb7d5f1fcf149 100644
--- a/llvm/include/llvm/Transforms/IPO/EmbedBitcodePass.h
+++ b/llvm/include/llvm/Transforms/IPO/EmbedBitcodePass.h
@@ -22,7 +22,6 @@
namespace llvm {
class Module;
-class ModulePass;
class Pass;
/// Pass embeds a copy of the module optimized with the provided pass pipeline
diff --git a/llvm/include/llvm/Transforms/Instrumentation/MemProfiler.h b/llvm/include/llvm/Transforms/Instrumentation/MemProfiler.h
index 293133b29cd9f9..f92c6b4775a2a2 100644
--- a/llvm/include/llvm/Transforms/Instrumentation/MemProfiler.h
+++ b/llvm/include/llvm/Transforms/Instrumentation/MemProfiler.h
@@ -17,9 +17,7 @@
namespace llvm {
class Function;
-class FunctionPass;
class Module;
-class ModulePass;
namespace vfs {
class FileSystem;
diff --git a/llvm/include/llvm/Transforms/Scalar/Scalarizer.h b/llvm/include/llvm/Transforms/Scalar/Scalarizer.h
index c2d9151b497107..45e25cbf282149 100644
--- a/llvm/include/llvm/Transforms/Scalar/Scalarizer.h
+++ b/llvm/include/llvm/Transforms/Scalar/Scalarizer.h
@@ -24,7 +24,6 @@
namespace llvm {
class Function;
-class FunctionPass;
struct ScalarizerPassOptions {
// These options correspond 1:1 to cl::opt options defined in
diff --git a/llvm/include/llvm/Transforms/Scalar/SimpleLoopUnswitch.h b/llvm/include/llvm/Transforms/Scalar/SimpleLoopUnswitch.h
index 417e9668527bd1..b97ee23fc0e65d 100644
--- a/llvm/include/llvm/Transforms/Scalar/SimpleLoopUnswitch.h
+++ b/llvm/include/llvm/Transforms/Scalar/SimpleLoopUnswitch.h
@@ -17,7 +17,6 @@ namespace llvm {
class LPMUpdater;
class Loop;
-class Pass;
class StringRef;
class raw_ostream;
diff --git a/llvm/include/llvm/Transforms/Utils/ValueMapper.h b/llvm/include/llvm/Transforms/Utils/ValueMapper.h
index eedd25f898c016..e1f2796d97ceb1 100644
--- a/llvm/include/llvm/Transforms/Utils/ValueMapper.h
+++ b/llvm/include/llvm/Transforms/Utils/ValueMapper.h
@@ -22,7 +22,6 @@
namespace llvm {
class Constant;
-class DIBuilder;
class DPValue;
class Function;
class GlobalVariable;
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp b/llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
index afa0bc716aa0e1..62e49469cb0198 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
@@ -47,9 +47,7 @@
#include <utility>
namespace llvm {
-class AssumptionCache;
class DataLayout;
-class DominatorTree;
class LLVMContext;
} // namespace llvm
diff --git a/llvm/lib/Transforms/Vectorize/VPlanAnalysis.h b/llvm/lib/Transforms/Vectorize/VPlanAnalysis.h
index 473a7c28e48af8..7276641551ae80 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanAnalysis.h
+++ b/llvm/lib/Transforms/Vectorize/VPlanAnalysis.h
@@ -16,12 +16,9 @@ namespace llvm {
class LLVMContext;
class VPValue;
class VPBlendRecipe;
-class VPInterleaveRecipe;
class VPInstruction;
-class VPReductionPHIRecipe;
class VPWidenRecipe;
class VPWidenCallRecipe;
-class VPWidenCastRecipe;
class VPWidenIntOrFpInductionRecipe;
class VPWidenMemoryInstructionRecipe;
struct VPWidenSelectRecipe;
diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.h b/llvm/lib/Transforms/Vectorize/VPlanTransforms.h
index e8a6da8c32054a..3bf91115debb7d 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.h
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.h
@@ -22,11 +22,9 @@ class InductionDescriptor;
class Instruction;
class PHINode;
class ScalarEvolution;
-class Loop;
class PredicatedScalarEvolution;
class TargetLibraryInfo;
class VPBuilder;
-class VPRecipeBuilder;
struct VPlanTransforms {
/// Replaces the VPInstructions in \p Plan with corresponding
More information about the llvm-commits
mailing list