[VPlan] Replace a few unnecessary includes with forward decls.

This commit is contained in:
Florian Hahn 2021-04-15 19:07:28 +01:00
parent d4385e483d
commit 49999d4364
2 changed files with 6 additions and 4 deletions

View File

@ -25,18 +25,18 @@
#define LLVM_TRANSFORMS_VECTORIZE_LOOPVECTORIZATIONPLANNER_H #define LLVM_TRANSFORMS_VECTORIZE_LOOPVECTORIZATIONPLANNER_H
#include "VPlan.h" #include "VPlan.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
namespace llvm { namespace llvm {
class LoopInfo;
class LoopVectorizationLegality; class LoopVectorizationLegality;
class LoopVectorizationCostModel; class LoopVectorizationCostModel;
class PredicatedScalarEvolution; class PredicatedScalarEvolution;
class LoopVectorizationRequirements; class LoopVectorizationRequirements;
class LoopVectorizeHints; class LoopVectorizeHints;
class OptimizationRemarkEmitter; class OptimizationRemarkEmitter;
class TargetTransformInfo;
class TargetLibraryInfo;
class VPRecipeBuilder; class VPRecipeBuilder;
/// VPlan-based builder utility analogous to IRBuilder. /// VPlan-based builder utility analogous to IRBuilder.

View File

@ -14,11 +14,13 @@
#define LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H #define LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H
#include "VPlan.h" #include "VPlan.h"
#include "llvm/IR/Instruction.h"
#include "llvm/Transforms/Vectorize/LoopVectorizationLegality.h" #include "llvm/Transforms/Vectorize/LoopVectorizationLegality.h"
namespace llvm { namespace llvm {
class Instruction;
class ScalarEvolution;
struct VPlanTransforms { struct VPlanTransforms {
/// Replaces the VPInstructions in \p Plan with corresponding /// Replaces the VPInstructions in \p Plan with corresponding
/// widen recipes. /// widen recipes.