Skip to content

Commit

Permalink
[VPlan] Drop redundant private: at beginning of class defs (NFC).
Browse files Browse the repository at this point in the history
Default visibility for classes is private, so the private: at the top of
various class definitions is redundant.

Reviewers: gilr, rengolin, Ayal, hsaito

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D77810
  • Loading branch information
fhahn committed Apr 11, 2020
1 parent 7cc6d0c commit 719846c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
Expand Up @@ -33,7 +33,6 @@ namespace llvm {

/// VPlan-based builder utility analogous to IRBuilder.
class VPBuilder {
private:
VPBasicBlock *BB = nullptr;
VPBasicBlock::iterator InsertPt = VPBasicBlock::iterator();

Expand Down
18 changes: 0 additions & 18 deletions llvm/lib/Transforms/Vectorize/VPlan.h
Expand Up @@ -346,7 +346,6 @@ struct VPTransformState {
class VPBlockBase {
friend class VPBlockUtils;

private:
const unsigned char SubclassID; ///< Subclass identifier (for isa/dyn_cast).

/// An optional name for the block.
Expand Down Expand Up @@ -594,7 +593,6 @@ class VPRecipeBase : public ilist_node_with_parent<VPRecipeBase, VPBasicBlock> {
friend VPBasicBlock;
friend class VPBlockUtils;

private:
const unsigned char SubclassID; ///< Subclass identifier (for isa/dyn_cast).

/// Each VPRecipe belongs to a single VPBasicBlock.
Expand Down Expand Up @@ -766,7 +764,6 @@ class VPInstruction : public VPUser, public VPRecipeBase {
/// ingredient. This recipe covers most of the traditional vectorization cases
/// where each ingredient transforms into a vectorized version of itself.
class VPWidenRecipe : public VPRecipeBase {
private:
/// Hold the instruction to be widened.
Instruction &Ingredient;

Expand All @@ -790,7 +787,6 @@ class VPWidenRecipe : public VPRecipeBase {

/// A recipe for widening Call instructions.
class VPWidenCallRecipe : public VPRecipeBase {
private:
/// Hold the call to be widened.
CallInst &Ingredient;

Expand Down Expand Up @@ -819,7 +815,6 @@ class VPWidenCallRecipe : public VPRecipeBase {

/// A recipe for handling GEP instructions.
class VPWidenGEPRecipe : public VPRecipeBase {
private:
GetElementPtrInst *GEP;
bool IsPtrLoopInvariant;
SmallBitVector IsIndexLoopInvariant;
Expand Down Expand Up @@ -851,7 +846,6 @@ class VPWidenGEPRecipe : public VPRecipeBase {
/// A recipe for handling phi nodes of integer and floating-point inductions,
/// producing their vector and scalar values.
class VPWidenIntOrFpInductionRecipe : public VPRecipeBase {
private:
PHINode *IV;
TruncInst *Trunc;

Expand All @@ -876,7 +870,6 @@ class VPWidenIntOrFpInductionRecipe : public VPRecipeBase {

/// A recipe for handling all phi nodes except for integer and FP inductions.
class VPWidenPHIRecipe : public VPRecipeBase {
private:
PHINode *Phi;

public:
Expand All @@ -899,7 +892,6 @@ class VPWidenPHIRecipe : public VPRecipeBase {
/// A recipe for vectorizing a phi-node as a sequence of mask-based select
/// instructions.
class VPBlendRecipe : public VPRecipeBase {
private:
PHINode *Phi;

/// The blend operation is a User of the incoming values and of their
Expand Down Expand Up @@ -946,7 +938,6 @@ class VPBlendRecipe : public VPRecipeBase {
/// VPInterleaveRecipe is a recipe for transforming an interleave group of load
/// or stores into one wide load/store and shuffles.
class VPInterleaveRecipe : public VPRecipeBase {
private:
const InterleaveGroup<Instruction> *IG;
VPUser User;

Expand Down Expand Up @@ -991,7 +982,6 @@ class VPInterleaveRecipe : public VPRecipeBase {
/// single copy of widened type for all lanes. If the instruction is known to be
/// uniform only one copy, per lane zero, will be generated.
class VPReplicateRecipe : public VPRecipeBase {
private:
/// The instruction being replicated.
Instruction *Ingredient;

Expand Down Expand Up @@ -1037,7 +1027,6 @@ class VPReplicateRecipe : public VPRecipeBase {

/// A recipe for generating conditional branches on the bits of a mask.
class VPBranchOnMaskRecipe : public VPRecipeBase {
private:
std::unique_ptr<VPUser> User;

public:
Expand Down Expand Up @@ -1073,7 +1062,6 @@ class VPBranchOnMaskRecipe : public VPRecipeBase {
/// The phi nodes can be scalar or vector depending on the users of the value.
/// This recipe works in concert with VPBranchOnMaskRecipe.
class VPPredInstPHIRecipe : public VPRecipeBase {
private:
Instruction *PredInst;

public:
Expand Down Expand Up @@ -1103,7 +1091,6 @@ class VPPredInstPHIRecipe : public VPRecipeBase {
/// TODO: We currently execute only per-part unless a specific instance is
/// provided.
class VPWidenMemoryInstructionRecipe : public VPRecipeBase {
private:
Instruction &Instr;
VPUser User;

Expand Down Expand Up @@ -1165,7 +1152,6 @@ class VPWidenMemoryInstructionRecipe : public VPRecipeBase {

/// A Recipe for widening the canonical induction variable of the vector loop.
class VPWidenCanonicalIVRecipe : public VPRecipeBase {
private:
/// A VPValue representing the canonical vector IV.
VPValue Val;

Expand Down Expand Up @@ -1282,7 +1268,6 @@ class VPBasicBlock : public VPBlockBase {
/// candidate VF's. The actual replication takes place only once the desired VF
/// and UF have been determined.
class VPRegionBlock : public VPBlockBase {
private:
/// Hold the Single Entry of the SESE region modelled by the VPRegionBlock.
VPBlockBase *Entry;

Expand Down Expand Up @@ -1488,7 +1473,6 @@ class VPlan {
friend class VPlanPrinter;
friend class VPSlotTracker;

private:
/// Hold the single entry to the Hierarchical CFG of the VPlan.
VPBlockBase *Entry;

Expand Down Expand Up @@ -1785,7 +1769,6 @@ class VPBlockUtils {
};

class VPInterleavedAccessInfo {
private:
DenseMap<VPInstruction *, InterleaveGroup<VPInstruction> *>
InterleaveGroupMap;

Expand Down Expand Up @@ -1829,7 +1812,6 @@ class VPInterleavedAccessInfo {
/// Class that maps (parts of) an existing VPlan to trees of combined
/// VPInstructions.
class VPlanSlp {
private:
enum class OpMode { Failed, Load, Opcode };

/// A DenseMapInfo implementation for using SmallVector<VPValue *, 4> as
Expand Down
3 changes: 0 additions & 3 deletions llvm/lib/Transforms/Vectorize/VPlanValue.h
Expand Up @@ -45,7 +45,6 @@ class VPValue {
friend class VPInterleavedAccessInfo;
friend class VPSlotTracker;

private:
const unsigned char SubclassID; ///< Subclass identifier (for isa/dyn_cast).

SmallVector<VPUser *, 1> Users;
Expand Down Expand Up @@ -133,7 +132,6 @@ raw_ostream &operator<<(raw_ostream &OS, const VPValue &V);
/// This class augments VPValue with operands which provide the inverse def-use
/// edges from VPValue's users to their defs.
class VPUser : public VPValue {
private:
SmallVector<VPValue *, 2> Operands;

protected:
Expand Down Expand Up @@ -198,7 +196,6 @@ class VPRegionBlock;
/// VPlan and allows querying the numbering for printing, similar to the
/// ModuleSlotTracker for IR values.
class VPSlotTracker {
private:
DenseMap<const VPValue *, unsigned> Slots;
unsigned NextSlot = 0;

Expand Down

0 comments on commit 719846c

Please sign in to comment.