Reformat blank lines.

llvm-svn: 249284
This commit is contained in:
NAKAMURA Takumi 2015-10-05 04:43:48 +00:00
parent 72e03fd917
commit 07609eab0f
19 changed files with 38 additions and 44 deletions

View File

@ -54,7 +54,7 @@ class GlobalsAAResult : public AAResultBase<GlobalsAAResult> {
/// ID that is only useful for comparing for equality (are two functions /// ID that is only useful for comparing for equality (are two functions
/// in the same SCC or not?) /// in the same SCC or not?)
DenseMap<const Function *, unsigned> FunctionToSCCMap; DenseMap<const Function *, unsigned> FunctionToSCCMap;
/// Handle to clear this analysis on deletion of values. /// Handle to clear this analysis on deletion of values.
struct DeletionCallbackHandle final : CallbackVH { struct DeletionCallbackHandle final : CallbackVH {
GlobalsAAResult *GAR; GlobalsAAResult *GAR;
@ -109,7 +109,7 @@ private:
GlobalValue *OkayStoreDest = nullptr); GlobalValue *OkayStoreDest = nullptr);
bool AnalyzeIndirectGlobalMemory(GlobalValue *GV); bool AnalyzeIndirectGlobalMemory(GlobalValue *GV);
void CollectSCCMembership(CallGraph &CG); void CollectSCCMembership(CallGraph &CG);
bool isNonEscapingGlobalNoAlias(const GlobalValue *GV, const Value *V); bool isNonEscapingGlobalNoAlias(const GlobalValue *GV, const Value *V);
ModRefInfo getModRefInfoForArgument(ImmutableCallSite CS, ModRefInfo getModRefInfoForArgument(ImmutableCallSite CS,
const GlobalValue *GV); const GlobalValue *GV);

View File

@ -161,9 +161,9 @@ public:
} }
unsigned CreateReg(MVT VT); unsigned CreateReg(MVT VT);
unsigned CreateRegs(Type *Ty); unsigned CreateRegs(Type *Ty);
unsigned InitializeRegForValue(const Value *V) { unsigned InitializeRegForValue(const Value *V) {
// Tokens never live in vregs. // Tokens never live in vregs.
if (V->getType()->isTokenTy()) if (V->getType()->isTokenTy())

View File

@ -162,7 +162,7 @@ public:
/// Objects are owned internally; No caller should attempt to delete the /// Objects are owned internally; No caller should attempt to delete the
/// returned objects. /// returned objects.
GCStrategy *getGCStrategy(const StringRef Name); GCStrategy *getGCStrategy(const StringRef Name);
/// List of per function info objects. In theory, Each of these /// List of per function info objects. In theory, Each of these
/// may be associated with a different GC. /// may be associated with a different GC.
typedef std::vector<std::unique_ptr<GCFunctionInfo>> FuncInfoVec; typedef std::vector<std::unique_ptr<GCFunctionInfo>> FuncInfoVec;

View File

@ -46,13 +46,12 @@ public:
/// ///
Type *getType() const { return Ty; } Type *getType() const { return Ty; }
/// getRelocationInfo - This method classifies the entry according to /// getRelocationInfo - This method classifies the entry according to
/// whether or not it may generate a relocation entry. This must be /// whether or not it may generate a relocation entry. This must be
/// conservative, so if it might codegen to a relocatable entry, it should say /// conservative, so if it might codegen to a relocatable entry, it should say
/// so. The return values are the same as Constant::getRelocationInfo(). /// so. The return values are the same as Constant::getRelocationInfo().
virtual unsigned getRelocationInfo() const = 0; virtual unsigned getRelocationInfo() const = 0;
virtual int getExistingMachineCPValue(MachineConstantPool *CP, virtual int getExistingMachineCPValue(MachineConstantPool *CP,
unsigned Alignment) = 0; unsigned Alignment) = 0;
@ -67,7 +66,6 @@ inline raw_ostream &operator<<(raw_ostream &OS,
V.print(OS); V.print(OS);
return OS; return OS;
} }
/// This class is a data container for one entry in a MachineConstantPool. /// This class is a data container for one entry in a MachineConstantPool.
/// It contains a pointer to the value and an offset from the start of /// It contains a pointer to the value and an offset from the start of
@ -107,7 +105,7 @@ public:
} }
Type *getType() const; Type *getType() const;
/// getRelocationInfo - This method classifies the entry according to /// getRelocationInfo - This method classifies the entry according to
/// whether or not it may generate a relocation entry. This must be /// whether or not it may generate a relocation entry. This must be
/// conservative, so if it might codegen to a relocatable entry, it should say /// conservative, so if it might codegen to a relocatable entry, it should say
@ -123,7 +121,7 @@ public:
SectionKind getSectionKind(const DataLayout *DL) const; SectionKind getSectionKind(const DataLayout *DL) const;
}; };
/// The MachineConstantPool class keeps track of constants referenced by a /// The MachineConstantPool class keeps track of constants referenced by a
/// function which must be spilled to memory. This is used for constants which /// function which must be spilled to memory. This is used for constants which
/// are unable to be used directly as operands to instructions, which typically /// are unable to be used directly as operands to instructions, which typically
@ -148,11 +146,11 @@ public:
explicit MachineConstantPool(const DataLayout &DL) explicit MachineConstantPool(const DataLayout &DL)
: PoolAlignment(1), DL(DL) {} : PoolAlignment(1), DL(DL) {}
~MachineConstantPool(); ~MachineConstantPool();
/// getConstantPoolAlignment - Return the alignment required by /// getConstantPoolAlignment - Return the alignment required by
/// the whole constant pool, of which the first element must be aligned. /// the whole constant pool, of which the first element must be aligned.
unsigned getConstantPoolAlignment() const { return PoolAlignment; } unsigned getConstantPoolAlignment() const { return PoolAlignment; }
/// getConstantPoolIndex - Create a new entry in the constant pool or return /// getConstantPoolIndex - Create a new entry in the constant pool or return
/// an existing one. User must specify the minimum required alignment for /// an existing one. User must specify the minimum required alignment for
/// the object. /// the object.

View File

@ -103,7 +103,7 @@ class MachineFunction {
// Keep track of constants which are spilled to memory // Keep track of constants which are spilled to memory
MachineConstantPool *ConstantPool; MachineConstantPool *ConstantPool;
// Keep track of jump tables for switch instructions // Keep track of jump tables for switch instructions
MachineJumpTableInfo *JumpTableInfo; MachineJumpTableInfo *JumpTableInfo;
@ -132,7 +132,7 @@ class MachineFunction {
/// this translation unit. /// this translation unit.
/// ///
unsigned FunctionNumber; unsigned FunctionNumber;
/// Alignment - The alignment of the function. /// Alignment - The alignment of the function.
unsigned Alignment; unsigned Alignment;
@ -215,7 +215,6 @@ public:
/// does already exist, allocate one. /// does already exist, allocate one.
MachineJumpTableInfo *getOrCreateJumpTableInfo(unsigned JTEntryKind); MachineJumpTableInfo *getOrCreateJumpTableInfo(unsigned JTEntryKind);
/// getConstantPool - Return the constant pool object for the current /// getConstantPool - Return the constant pool object for the current
/// function. /// function.
/// ///
@ -290,14 +289,14 @@ public:
/// getNumBlockIDs - Return the number of MBB ID's allocated. /// getNumBlockIDs - Return the number of MBB ID's allocated.
/// ///
unsigned getNumBlockIDs() const { return (unsigned)MBBNumbering.size(); } unsigned getNumBlockIDs() const { return (unsigned)MBBNumbering.size(); }
/// RenumberBlocks - This discards all of the MachineBasicBlock numbers and /// RenumberBlocks - This discards all of the MachineBasicBlock numbers and
/// recomputes them. This guarantees that the MBB numbers are sequential, /// recomputes them. This guarantees that the MBB numbers are sequential,
/// dense, and match the ordering of the blocks within the function. If a /// dense, and match the ordering of the blocks within the function. If a
/// specific MachineBasicBlock is specified, only that block and those after /// specific MachineBasicBlock is specified, only that block and those after
/// it are renumbered. /// it are renumbered.
void RenumberBlocks(MachineBasicBlock *MBBFrom = nullptr); void RenumberBlocks(MachineBasicBlock *MBBFrom = nullptr);
/// print - Print out the MachineFunction in a format suitable for debugging /// print - Print out the MachineFunction in a format suitable for debugging
/// to the specified stream. /// to the specified stream.
/// ///
@ -436,7 +435,7 @@ public:
unsigned base_alignment, unsigned base_alignment,
const AAMDNodes &AAInfo = AAMDNodes(), const AAMDNodes &AAInfo = AAMDNodes(),
const MDNode *Ranges = nullptr); const MDNode *Ranges = nullptr);
/// getMachineMemOperand - Allocate a new MachineMemOperand by copying /// getMachineMemOperand - Allocate a new MachineMemOperand by copying
/// an existing one, adjusting by an offset and using the given size. /// an existing one, adjusting by an offset and using the given size.
/// MachineMemOperands are owned by the MachineFunction and need not be /// MachineMemOperands are owned by the MachineFunction and need not be
@ -492,13 +491,13 @@ public:
//===--------------------------------------------------------------------===// //===--------------------------------------------------------------------===//
// Label Manipulation. // Label Manipulation.
// //
/// getJTISymbol - Return the MCSymbol for the specified non-empty jump table. /// getJTISymbol - Return the MCSymbol for the specified non-empty jump table.
/// If isLinkerPrivate is specified, an 'l' label is returned, otherwise a /// If isLinkerPrivate is specified, an 'l' label is returned, otherwise a
/// normal 'L' label is returned. /// normal 'L' label is returned.
MCSymbol *getJTISymbol(unsigned JTI, MCContext &Ctx, MCSymbol *getJTISymbol(unsigned JTI, MCContext &Ctx,
bool isLinkerPrivate = false) const; bool isLinkerPrivate = false) const;
/// getPICBaseSymbol - Return a function-local symbol to represent the PIC /// getPICBaseSymbol - Return a function-local symbol to represent the PIC
/// base. /// base.
MCSymbol *getPICBaseSymbol() const; MCSymbol *getPICBaseSymbol() const;

View File

@ -28,7 +28,7 @@ namespace llvm {
void finalizeBundle(MachineBasicBlock &MBB, void finalizeBundle(MachineBasicBlock &MBB,
MachineBasicBlock::instr_iterator FirstMI, MachineBasicBlock::instr_iterator FirstMI,
MachineBasicBlock::instr_iterator LastMI); MachineBasicBlock::instr_iterator LastMI);
/// finalizeBundle - Same functionality as the previous finalizeBundle except /// finalizeBundle - Same functionality as the previous finalizeBundle except
/// the last instruction in the bundle is not provided as an input. This is /// the last instruction in the bundle is not provided as an input. This is
/// used in cases where bundles are pre-determined by marking instructions /// used in cases where bundles are pre-determined by marking instructions

View File

@ -528,7 +528,7 @@ public:
/// apply sub registers to ToReg in order to obtain a final/proper physical /// apply sub registers to ToReg in order to obtain a final/proper physical
/// register. /// register.
void replaceRegWith(unsigned FromReg, unsigned ToReg); void replaceRegWith(unsigned FromReg, unsigned ToReg);
/// getVRegDef - Return the machine instr that defines the specified virtual /// getVRegDef - Return the machine instr that defines the specified virtual
/// register or null if none is found. This assumes that the code is in SSA /// register or null if none is found. This assumes that the code is in SSA
/// form, so there should only be one definition. /// form, so there should only be one definition.

View File

@ -87,7 +87,7 @@ class MVT {
v8i64 = 40, // 8 x i64 v8i64 = 40, // 8 x i64
v16i64 = 41, // 16 x i64 v16i64 = 41, // 16 x i64
v1i128 = 42, // 1 x i128 v1i128 = 42, // 1 x i128
FIRST_INTEGER_VECTOR_VALUETYPE = v2i1, FIRST_INTEGER_VECTOR_VALUETYPE = v2i1,
LAST_INTEGER_VECTOR_VALUETYPE = v1i128, LAST_INTEGER_VECTOR_VALUETYPE = v1i128,

View File

@ -38,7 +38,6 @@ public:
Registry.Add(this); Registry.Add(this);
} }
~RegisterRegAlloc() { Registry.Remove(this); } ~RegisterRegAlloc() { Registry.Remove(this); }
// Accessors. // Accessors.
// //
@ -57,7 +56,6 @@ public:
static void setListener(MachinePassRegistryListener *L) { static void setListener(MachinePassRegistryListener *L) {
Registry.setListener(L); Registry.setListener(L);
} }
}; };
} // end namespace llvm } // end namespace llvm

View File

@ -169,10 +169,10 @@ private:
/// Processes the current instruction and fill the KillRegUnits and /// Processes the current instruction and fill the KillRegUnits and
/// DefRegUnits bit vectors. /// DefRegUnits bit vectors.
void determineKillsAndDefs(); void determineKillsAndDefs();
/// Add all Reg Units that Reg contains to BV. /// Add all Reg Units that Reg contains to BV.
void addRegUnits(BitVector &BV, unsigned Reg); void addRegUnits(BitVector &BV, unsigned Reg);
/// Return the candidate register that is unused for the longest after /// Return the candidate register that is unused for the longest after
/// StartMI. UseMI is set to the instruction where the search stopped. /// StartMI. UseMI is set to the instruction where the search stopped.
/// ///

View File

@ -333,7 +333,7 @@ private:
bool NoInfs : 1; bool NoInfs : 1;
bool NoSignedZeros : 1; bool NoSignedZeros : 1;
bool AllowReciprocal : 1; bool AllowReciprocal : 1;
public: public:
/// Default constructor turns off all optimization flags. /// Default constructor turns off all optimization flags.
SDNodeFlags() { SDNodeFlags() {
@ -346,7 +346,7 @@ public:
NoSignedZeros = false; NoSignedZeros = false;
AllowReciprocal = false; AllowReciprocal = false;
} }
// These are mutators for each flag. // These are mutators for each flag.
void setNoUnsignedWrap(bool b) { NoUnsignedWrap = b; } void setNoUnsignedWrap(bool b) { NoUnsignedWrap = b; }
void setNoSignedWrap(bool b) { NoSignedWrap = b; } void setNoSignedWrap(bool b) { NoSignedWrap = b; }
@ -356,7 +356,7 @@ public:
void setNoInfs(bool b) { NoInfs = b; } void setNoInfs(bool b) { NoInfs = b; }
void setNoSignedZeros(bool b) { NoSignedZeros = b; } void setNoSignedZeros(bool b) { NoSignedZeros = b; }
void setAllowReciprocal(bool b) { AllowReciprocal = b; } void setAllowReciprocal(bool b) { AllowReciprocal = b; }
// These are accessors for each flag. // These are accessors for each flag.
bool hasNoUnsignedWrap() const { return NoUnsignedWrap; } bool hasNoUnsignedWrap() const { return NoUnsignedWrap; }
bool hasNoSignedWrap() const { return NoSignedWrap; } bool hasNoSignedWrap() const { return NoSignedWrap; }
@ -366,7 +366,7 @@ public:
bool hasNoInfs() const { return NoInfs; } bool hasNoInfs() const { return NoInfs; }
bool hasNoSignedZeros() const { return NoSignedZeros; } bool hasNoSignedZeros() const { return NoSignedZeros; }
bool hasAllowReciprocal() const { return AllowReciprocal; } bool hasAllowReciprocal() const { return AllowReciprocal; }
/// Return a raw encoding of the flags. /// Return a raw encoding of the flags.
/// This function should only be used to add data to the NodeID value. /// This function should only be used to add data to the NodeID value.
unsigned getRawFlags() const { unsigned getRawFlags() const {
@ -704,7 +704,7 @@ public:
/// This could be defined as a virtual function and implemented more simply /// This could be defined as a virtual function and implemented more simply
/// and directly, but it is not to avoid creating a vtable for this class. /// and directly, but it is not to avoid creating a vtable for this class.
const SDNodeFlags *getFlags() const; const SDNodeFlags *getFlags() const;
/// Return the number of values defined/returned by this operator. /// Return the number of values defined/returned by this operator.
unsigned getNumValues() const { return NumValues; } unsigned getNumValues() const { return NumValues; }

View File

@ -632,7 +632,7 @@ private:
unsigned Reg; unsigned Reg;
const MCRegisterInfo *MCRI; const MCRegisterInfo *MCRI;
bool IncludeSelf; bool IncludeSelf;
MCRegUnitIterator RI; MCRegUnitIterator RI;
MCRegUnitRootIterator RRI; MCRegUnitRootIterator RRI;
MCSuperRegIterator SI; MCSuperRegIterator SI;

View File

@ -183,7 +183,7 @@ struct MCSchedModel {
// takes to recover from a branch misprediction. // takes to recover from a branch misprediction.
unsigned MispredictPenalty; unsigned MispredictPenalty;
static const unsigned DefaultMispredictPenalty = 10; static const unsigned DefaultMispredictPenalty = 10;
bool PostRAScheduler; // default value is false bool PostRAScheduler; // default value is false
bool CompleteModel; bool CompleteModel;

View File

@ -116,7 +116,7 @@ public:
bool operator==(const MachORebaseEntry &) const; bool operator==(const MachORebaseEntry &) const;
void moveNext(); void moveNext();
private: private:
friend class MachOObjectFile; friend class MachOObjectFile;
void moveToFirst(); void moveToFirst();
@ -521,4 +521,3 @@ inline const ObjectFile *DiceRef::getObjectFile() const {
} }
#endif #endif

View File

@ -91,7 +91,7 @@ public:
/// isCFGOnlyPass - return true if this pass only looks at the CFG for the /// isCFGOnlyPass - return true if this pass only looks at the CFG for the
/// function. /// function.
bool isCFGOnlyPass() const { return IsCFGOnlyPass; } bool isCFGOnlyPass() const { return IsCFGOnlyPass; }
/// getNormalCtor - Return a pointer to a function, that when called, creates /// getNormalCtor - Return a pointer to a function, that when called, creates
/// an instance of the pass and returns it. This pointer may be null if there /// an instance of the pass and returns it. This pointer may be null if there
/// is no default constructor for the pass. /// is no default constructor for the pass.

View File

@ -150,7 +150,7 @@ public:
virtual bool enableShrinkWrapping(const MachineFunction &MF) const { virtual bool enableShrinkWrapping(const MachineFunction &MF) const {
return false; return false;
} }
/// emitProlog/emitEpilog - These methods insert prolog and epilog code into /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
/// the function. /// the function.
virtual void emitPrologue(MachineFunction &MF, virtual void emitPrologue(MachineFunction &MF,

View File

@ -885,7 +885,7 @@ public:
bool allowsMemoryAccess(LLVMContext &Context, const DataLayout &DL, EVT VT, bool allowsMemoryAccess(LLVMContext &Context, const DataLayout &DL, EVT VT,
unsigned AddrSpace = 0, unsigned Alignment = 1, unsigned AddrSpace = 0, unsigned Alignment = 1,
bool *Fast = nullptr) const; bool *Fast = nullptr) const;
/// Returns the target specific optimal type for load and store operations as /// Returns the target specific optimal type for load and store operations as
/// a result of memset, memcpy, and memmove lowering. /// a result of memset, memcpy, and memmove lowering.
/// ///

View File

@ -204,7 +204,7 @@ namespace llvm {
/// This class encapsulates options for reciprocal-estimate code generation. /// This class encapsulates options for reciprocal-estimate code generation.
TargetRecip Reciprocals; TargetRecip Reciprocals;
/// JTType - This flag specifies the type of jump-instruction table to /// JTType - This flag specifies the type of jump-instruction table to
/// create for functions that have the jumptable attribute. /// create for functions that have the jumptable attribute.
JumpTable::JumpTableType JTType; JumpTable::JumpTableType JTType;

View File

@ -31,7 +31,7 @@ public:
/// Initialize all or part of the operations from command-line options or /// Initialize all or part of the operations from command-line options or
/// a front end. /// a front end.
TargetRecip(const std::vector<std::string> &Args); TargetRecip(const std::vector<std::string> &Args);
/// Set whether a particular reciprocal operation is enabled and how many /// Set whether a particular reciprocal operation is enabled and how many
/// refinement steps are needed when using it. Use "all" to set enablement /// refinement steps are needed when using it. Use "all" to set enablement
/// and refinement steps for all operations. /// and refinement steps for all operations.
@ -52,14 +52,14 @@ private:
enum { enum {
Uninitialized = -1 Uninitialized = -1
}; };
struct RecipParams { struct RecipParams {
int8_t Enabled; int8_t Enabled;
int8_t RefinementSteps; int8_t RefinementSteps;
RecipParams() : Enabled(Uninitialized), RefinementSteps(Uninitialized) {} RecipParams() : Enabled(Uninitialized), RefinementSteps(Uninitialized) {}
}; };
std::map<StringRef, RecipParams> RecipMap; std::map<StringRef, RecipParams> RecipMap;
typedef std::map<StringRef, RecipParams>::iterator RecipIter; typedef std::map<StringRef, RecipParams>::iterator RecipIter;
typedef std::map<StringRef, RecipParams>::const_iterator ConstRecipIter; typedef std::map<StringRef, RecipParams>::const_iterator ConstRecipIter;