diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h index d5306e556e14..809cd808f233 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h +++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h @@ -25,18 +25,18 @@ #define LLVM_TRANSFORMS_VECTORIZE_LOOPVECTORIZATIONPLANNER_H #include "VPlan.h" -#include "llvm/Analysis/LoopInfo.h" -#include "llvm/Analysis/TargetLibraryInfo.h" -#include "llvm/Analysis/TargetTransformInfo.h" namespace llvm { +class LoopInfo; class LoopVectorizationLegality; class LoopVectorizationCostModel; class PredicatedScalarEvolution; class LoopVectorizationRequirements; class LoopVectorizeHints; class OptimizationRemarkEmitter; +class TargetTransformInfo; +class TargetLibraryInfo; class VPRecipeBuilder; /// VPlan-based builder utility analogous to IRBuilder. diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.h b/llvm/lib/Transforms/Vectorize/VPlanTransforms.h index 976122ebd110..dac4f59c13d9 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.h +++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.h @@ -14,11 +14,13 @@ #define LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H #include "VPlan.h" -#include "llvm/IR/Instruction.h" #include "llvm/Transforms/Vectorize/LoopVectorizationLegality.h" namespace llvm { +class Instruction; +class ScalarEvolution; + struct VPlanTransforms { /// Replaces the VPInstructions in \p Plan with corresponding /// widen recipes.