Skip to content

Commit

Permalink
[VPlan] Remove unused forward declarations. NFC.
Browse files Browse the repository at this point in the history
Move VPlan.h include from VPlanVerifier.h down to VPlanVerifier.cpp
  • Loading branch information
RKSimon committed Apr 23, 2020
1 parent cca6bc4 commit b108a45
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
Expand Up @@ -31,6 +31,8 @@

namespace llvm {

class LoopVectorizationLegality;
class LoopVectorizationCostModel;
class PredicatedScalarEvolution;

/// VPlan-based builder utility analogous to IRBuilder.
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
Expand Up @@ -18,7 +18,6 @@ namespace llvm {

class LoopVectorizationLegality;
class LoopVectorizationCostModel;
class TargetTransformInfo;
class TargetLibraryInfo;

/// Helper class to create VPRecipies from IR instructions.
Expand Down
4 changes: 1 addition & 3 deletions llvm/lib/Transforms/Vectorize/VPlan.h
Expand Up @@ -48,8 +48,6 @@

namespace llvm {

class LoopVectorizationLegality;
class LoopVectorizationCostModel;
class BasicBlock;
class DominatorTree;
class InnerLoopVectorizer;
Expand All @@ -59,6 +57,7 @@ class raw_ostream;
class Value;
class VPBasicBlock;
class VPRegionBlock;
class VPSlotTracker;
class VPlan;
class VPlanSlp;

Expand Down Expand Up @@ -1501,7 +1500,6 @@ struct GraphTraits<Inverse<VPRegionBlock *>>
}
};

class VPSlotTracker;
/// VPlan models a candidate for vectorization, encoding various decisions take
/// to produce efficient output IR, including which branches, basic-blocks and
/// output IR instructions to generate, and their cost. VPlan holds a
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
Expand Up @@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//

#include "VPlanVerifier.h"
#include "VPlan.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/Support/CommandLine.h"

Expand Down
3 changes: 1 addition & 2 deletions llvm/lib/Transforms/Vectorize/VPlanVerifier.h
Expand Up @@ -24,9 +24,8 @@
#ifndef LLVM_TRANSFORMS_VECTORIZE_VPLANVERIFIER_H
#define LLVM_TRANSFORMS_VECTORIZE_VPLANVERIFIER_H

#include "VPlan.h"

namespace llvm {
class VPRegionBlock;

/// Struct with utility functions that can be used to check the consistency and
/// invariants of a VPlan, including the components of its H-CFG.
Expand Down

0 comments on commit b108a45

Please sign in to comment.