From 07609eab0fa8fd6c55cba410e926261df62d790d Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 5 Oct 2015 04:43:48 +0000 Subject: [PATCH] Reformat blank lines. llvm-svn: 249284 --- llvm/include/llvm/Analysis/GlobalsModRef.h | 4 ++-- llvm/include/llvm/CodeGen/FunctionLoweringInfo.h | 4 ++-- llvm/include/llvm/CodeGen/GCMetadata.h | 2 +- llvm/include/llvm/CodeGen/MachineConstantPool.h | 12 +++++------- llvm/include/llvm/CodeGen/MachineFunction.h | 15 +++++++-------- llvm/include/llvm/CodeGen/MachineInstrBundle.h | 2 +- llvm/include/llvm/CodeGen/MachineRegisterInfo.h | 2 +- llvm/include/llvm/CodeGen/MachineValueType.h | 2 +- llvm/include/llvm/CodeGen/RegAllocRegistry.h | 2 -- llvm/include/llvm/CodeGen/RegisterScavenging.h | 4 ++-- llvm/include/llvm/CodeGen/SelectionDAGNodes.h | 10 +++++----- llvm/include/llvm/MC/MCRegisterInfo.h | 2 +- llvm/include/llvm/MC/MCSchedule.h | 2 +- llvm/include/llvm/Object/MachO.h | 3 +-- llvm/include/llvm/PassInfo.h | 2 +- llvm/include/llvm/Target/TargetFrameLowering.h | 2 +- llvm/include/llvm/Target/TargetLowering.h | 2 +- llvm/include/llvm/Target/TargetOptions.h | 2 +- llvm/include/llvm/Target/TargetRecip.h | 8 ++++---- 19 files changed, 38 insertions(+), 44 deletions(-) diff --git a/llvm/include/llvm/Analysis/GlobalsModRef.h b/llvm/include/llvm/Analysis/GlobalsModRef.h index 3b3779c9f458..1ee53f14bc87 100644 --- a/llvm/include/llvm/Analysis/GlobalsModRef.h +++ b/llvm/include/llvm/Analysis/GlobalsModRef.h @@ -54,7 +54,7 @@ class GlobalsAAResult : public AAResultBase { /// ID that is only useful for comparing for equality (are two functions /// in the same SCC or not?) DenseMap FunctionToSCCMap; - + /// Handle to clear this analysis on deletion of values. struct DeletionCallbackHandle final : CallbackVH { GlobalsAAResult *GAR; @@ -109,7 +109,7 @@ private: GlobalValue *OkayStoreDest = nullptr); bool AnalyzeIndirectGlobalMemory(GlobalValue *GV); void CollectSCCMembership(CallGraph &CG); - + bool isNonEscapingGlobalNoAlias(const GlobalValue *GV, const Value *V); ModRefInfo getModRefInfoForArgument(ImmutableCallSite CS, const GlobalValue *GV); diff --git a/llvm/include/llvm/CodeGen/FunctionLoweringInfo.h b/llvm/include/llvm/CodeGen/FunctionLoweringInfo.h index efd354921e8a..3c8349315660 100644 --- a/llvm/include/llvm/CodeGen/FunctionLoweringInfo.h +++ b/llvm/include/llvm/CodeGen/FunctionLoweringInfo.h @@ -161,9 +161,9 @@ public: } unsigned CreateReg(MVT VT); - + unsigned CreateRegs(Type *Ty); - + unsigned InitializeRegForValue(const Value *V) { // Tokens never live in vregs. if (V->getType()->isTokenTy()) diff --git a/llvm/include/llvm/CodeGen/GCMetadata.h b/llvm/include/llvm/CodeGen/GCMetadata.h index e883bd196ea3..4b820cddb622 100644 --- a/llvm/include/llvm/CodeGen/GCMetadata.h +++ b/llvm/include/llvm/CodeGen/GCMetadata.h @@ -162,7 +162,7 @@ public: /// Objects are owned internally; No caller should attempt to delete the /// returned objects. GCStrategy *getGCStrategy(const StringRef Name); - + /// List of per function info objects. In theory, Each of these /// may be associated with a different GC. typedef std::vector> FuncInfoVec; diff --git a/llvm/include/llvm/CodeGen/MachineConstantPool.h b/llvm/include/llvm/CodeGen/MachineConstantPool.h index 628400322f60..4a067f9317f7 100644 --- a/llvm/include/llvm/CodeGen/MachineConstantPool.h +++ b/llvm/include/llvm/CodeGen/MachineConstantPool.h @@ -46,13 +46,12 @@ public: /// Type *getType() const { return Ty; } - /// getRelocationInfo - This method classifies the entry according to /// 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 /// so. The return values are the same as Constant::getRelocationInfo(). virtual unsigned getRelocationInfo() const = 0; - + virtual int getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) = 0; @@ -67,7 +66,6 @@ inline raw_ostream &operator<<(raw_ostream &OS, V.print(OS); return OS; } - /// 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 @@ -107,7 +105,7 @@ public: } Type *getType() const; - + /// getRelocationInfo - This method classifies the entry according to /// 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 @@ -123,7 +121,7 @@ public: SectionKind getSectionKind(const DataLayout *DL) const; }; - + /// The MachineConstantPool class keeps track of constants referenced by a /// 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 @@ -148,11 +146,11 @@ public: explicit MachineConstantPool(const DataLayout &DL) : PoolAlignment(1), DL(DL) {} ~MachineConstantPool(); - + /// getConstantPoolAlignment - Return the alignment required by /// the whole constant pool, of which the first element must be aligned. unsigned getConstantPoolAlignment() const { return PoolAlignment; } - + /// getConstantPoolIndex - Create a new entry in the constant pool or return /// an existing one. User must specify the minimum required alignment for /// the object. diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h index 1a102c050006..118a87f241d6 100644 --- a/llvm/include/llvm/CodeGen/MachineFunction.h +++ b/llvm/include/llvm/CodeGen/MachineFunction.h @@ -103,7 +103,7 @@ class MachineFunction { // Keep track of constants which are spilled to memory MachineConstantPool *ConstantPool; - + // Keep track of jump tables for switch instructions MachineJumpTableInfo *JumpTableInfo; @@ -132,7 +132,7 @@ class MachineFunction { /// this translation unit. /// unsigned FunctionNumber; - + /// Alignment - The alignment of the function. unsigned Alignment; @@ -215,7 +215,6 @@ public: /// does already exist, allocate one. MachineJumpTableInfo *getOrCreateJumpTableInfo(unsigned JTEntryKind); - /// getConstantPool - Return the constant pool object for the current /// function. /// @@ -290,14 +289,14 @@ public: /// getNumBlockIDs - Return the number of MBB ID's allocated. /// unsigned getNumBlockIDs() const { return (unsigned)MBBNumbering.size(); } - + /// RenumberBlocks - This discards all of the MachineBasicBlock numbers and /// recomputes them. This guarantees that the MBB numbers are sequential, /// dense, and match the ordering of the blocks within the function. If a /// specific MachineBasicBlock is specified, only that block and those after /// it are renumbered. void RenumberBlocks(MachineBasicBlock *MBBFrom = nullptr); - + /// print - Print out the MachineFunction in a format suitable for debugging /// to the specified stream. /// @@ -436,7 +435,7 @@ public: unsigned base_alignment, const AAMDNodes &AAInfo = AAMDNodes(), const MDNode *Ranges = nullptr); - + /// getMachineMemOperand - Allocate a new MachineMemOperand by copying /// an existing one, adjusting by an offset and using the given size. /// MachineMemOperands are owned by the MachineFunction and need not be @@ -492,13 +491,13 @@ public: //===--------------------------------------------------------------------===// // Label Manipulation. // - + /// getJTISymbol - Return the MCSymbol for the specified non-empty jump table. /// If isLinkerPrivate is specified, an 'l' label is returned, otherwise a /// normal 'L' label is returned. MCSymbol *getJTISymbol(unsigned JTI, MCContext &Ctx, bool isLinkerPrivate = false) const; - + /// getPICBaseSymbol - Return a function-local symbol to represent the PIC /// base. MCSymbol *getPICBaseSymbol() const; diff --git a/llvm/include/llvm/CodeGen/MachineInstrBundle.h b/llvm/include/llvm/CodeGen/MachineInstrBundle.h index 122022486345..ef35cea92b2b 100644 --- a/llvm/include/llvm/CodeGen/MachineInstrBundle.h +++ b/llvm/include/llvm/CodeGen/MachineInstrBundle.h @@ -28,7 +28,7 @@ namespace llvm { void finalizeBundle(MachineBasicBlock &MBB, MachineBasicBlock::instr_iterator FirstMI, MachineBasicBlock::instr_iterator LastMI); - + /// finalizeBundle - Same functionality as the previous finalizeBundle except /// 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 diff --git a/llvm/include/llvm/CodeGen/MachineRegisterInfo.h b/llvm/include/llvm/CodeGen/MachineRegisterInfo.h index 8314b3833a76..ee48dca5853d 100644 --- a/llvm/include/llvm/CodeGen/MachineRegisterInfo.h +++ b/llvm/include/llvm/CodeGen/MachineRegisterInfo.h @@ -528,7 +528,7 @@ public: /// apply sub registers to ToReg in order to obtain a final/proper physical /// register. void replaceRegWith(unsigned FromReg, unsigned ToReg); - + /// 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 /// form, so there should only be one definition. diff --git a/llvm/include/llvm/CodeGen/MachineValueType.h b/llvm/include/llvm/CodeGen/MachineValueType.h index 4211aa7a369d..6b478499d92a 100644 --- a/llvm/include/llvm/CodeGen/MachineValueType.h +++ b/llvm/include/llvm/CodeGen/MachineValueType.h @@ -87,7 +87,7 @@ class MVT { v8i64 = 40, // 8 x i64 v16i64 = 41, // 16 x i64 v1i128 = 42, // 1 x i128 - + FIRST_INTEGER_VECTOR_VALUETYPE = v2i1, LAST_INTEGER_VECTOR_VALUETYPE = v1i128, diff --git a/llvm/include/llvm/CodeGen/RegAllocRegistry.h b/llvm/include/llvm/CodeGen/RegAllocRegistry.h index ca495778446f..d6d8c8229f3b 100644 --- a/llvm/include/llvm/CodeGen/RegAllocRegistry.h +++ b/llvm/include/llvm/CodeGen/RegAllocRegistry.h @@ -38,7 +38,6 @@ public: Registry.Add(this); } ~RegisterRegAlloc() { Registry.Remove(this); } - // Accessors. // @@ -57,7 +56,6 @@ public: static void setListener(MachinePassRegistryListener *L) { Registry.setListener(L); } - }; } // end namespace llvm diff --git a/llvm/include/llvm/CodeGen/RegisterScavenging.h b/llvm/include/llvm/CodeGen/RegisterScavenging.h index ebef42c3eb4e..5de4e3851e05 100644 --- a/llvm/include/llvm/CodeGen/RegisterScavenging.h +++ b/llvm/include/llvm/CodeGen/RegisterScavenging.h @@ -169,10 +169,10 @@ private: /// Processes the current instruction and fill the KillRegUnits and /// DefRegUnits bit vectors. void determineKillsAndDefs(); - + /// Add all Reg Units that Reg contains to BV. void addRegUnits(BitVector &BV, unsigned Reg); - + /// Return the candidate register that is unused for the longest after /// StartMI. UseMI is set to the instruction where the search stopped. /// diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index 12f9c8cd3e61..16cb4fe9f00c 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h @@ -333,7 +333,7 @@ private: bool NoInfs : 1; bool NoSignedZeros : 1; bool AllowReciprocal : 1; - + public: /// Default constructor turns off all optimization flags. SDNodeFlags() { @@ -346,7 +346,7 @@ public: NoSignedZeros = false; AllowReciprocal = false; } - + // These are mutators for each flag. void setNoUnsignedWrap(bool b) { NoUnsignedWrap = b; } void setNoSignedWrap(bool b) { NoSignedWrap = b; } @@ -356,7 +356,7 @@ public: void setNoInfs(bool b) { NoInfs = b; } void setNoSignedZeros(bool b) { NoSignedZeros = b; } void setAllowReciprocal(bool b) { AllowReciprocal = b; } - + // These are accessors for each flag. bool hasNoUnsignedWrap() const { return NoUnsignedWrap; } bool hasNoSignedWrap() const { return NoSignedWrap; } @@ -366,7 +366,7 @@ public: bool hasNoInfs() const { return NoInfs; } bool hasNoSignedZeros() const { return NoSignedZeros; } bool hasAllowReciprocal() const { return AllowReciprocal; } - + /// Return a raw encoding of the flags. /// This function should only be used to add data to the NodeID value. unsigned getRawFlags() const { @@ -704,7 +704,7 @@ public: /// 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. const SDNodeFlags *getFlags() const; - + /// Return the number of values defined/returned by this operator. unsigned getNumValues() const { return NumValues; } diff --git a/llvm/include/llvm/MC/MCRegisterInfo.h b/llvm/include/llvm/MC/MCRegisterInfo.h index 8e25ee18e08d..8f0e6c2fc6cb 100644 --- a/llvm/include/llvm/MC/MCRegisterInfo.h +++ b/llvm/include/llvm/MC/MCRegisterInfo.h @@ -632,7 +632,7 @@ private: unsigned Reg; const MCRegisterInfo *MCRI; bool IncludeSelf; - + MCRegUnitIterator RI; MCRegUnitRootIterator RRI; MCSuperRegIterator SI; diff --git a/llvm/include/llvm/MC/MCSchedule.h b/llvm/include/llvm/MC/MCSchedule.h index a8b20570103e..d7f9b69a9a2c 100644 --- a/llvm/include/llvm/MC/MCSchedule.h +++ b/llvm/include/llvm/MC/MCSchedule.h @@ -183,7 +183,7 @@ struct MCSchedModel { // takes to recover from a branch misprediction. unsigned MispredictPenalty; static const unsigned DefaultMispredictPenalty = 10; - + bool PostRAScheduler; // default value is false bool CompleteModel; diff --git a/llvm/include/llvm/Object/MachO.h b/llvm/include/llvm/Object/MachO.h index 75259bc48f81..5bc4dafabb38 100644 --- a/llvm/include/llvm/Object/MachO.h +++ b/llvm/include/llvm/Object/MachO.h @@ -116,7 +116,7 @@ public: bool operator==(const MachORebaseEntry &) const; void moveNext(); - + private: friend class MachOObjectFile; void moveToFirst(); @@ -521,4 +521,3 @@ inline const ObjectFile *DiceRef::getObjectFile() const { } #endif - diff --git a/llvm/include/llvm/PassInfo.h b/llvm/include/llvm/PassInfo.h index d10761831b3a..321b100a1895 100644 --- a/llvm/include/llvm/PassInfo.h +++ b/llvm/include/llvm/PassInfo.h @@ -91,7 +91,7 @@ public: /// isCFGOnlyPass - return true if this pass only looks at the CFG for the /// function. bool isCFGOnlyPass() const { return IsCFGOnlyPass; } - + /// 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 /// is no default constructor for the pass. diff --git a/llvm/include/llvm/Target/TargetFrameLowering.h b/llvm/include/llvm/Target/TargetFrameLowering.h index 3485ed6df8b4..2e8c178914e7 100644 --- a/llvm/include/llvm/Target/TargetFrameLowering.h +++ b/llvm/include/llvm/Target/TargetFrameLowering.h @@ -150,7 +150,7 @@ public: virtual bool enableShrinkWrapping(const MachineFunction &MF) const { return false; } - + /// emitProlog/emitEpilog - These methods insert prolog and epilog code into /// the function. virtual void emitPrologue(MachineFunction &MF, diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h index 64e0ee550304..ae83833fd637 100644 --- a/llvm/include/llvm/Target/TargetLowering.h +++ b/llvm/include/llvm/Target/TargetLowering.h @@ -885,7 +885,7 @@ public: bool allowsMemoryAccess(LLVMContext &Context, const DataLayout &DL, EVT VT, unsigned AddrSpace = 0, unsigned Alignment = 1, bool *Fast = nullptr) const; - + /// Returns the target specific optimal type for load and store operations as /// a result of memset, memcpy, and memmove lowering. /// diff --git a/llvm/include/llvm/Target/TargetOptions.h b/llvm/include/llvm/Target/TargetOptions.h index bd696f399d54..2b087af85906 100644 --- a/llvm/include/llvm/Target/TargetOptions.h +++ b/llvm/include/llvm/Target/TargetOptions.h @@ -204,7 +204,7 @@ namespace llvm { /// This class encapsulates options for reciprocal-estimate code generation. TargetRecip Reciprocals; - + /// JTType - This flag specifies the type of jump-instruction table to /// create for functions that have the jumptable attribute. JumpTable::JumpTableType JTType; diff --git a/llvm/include/llvm/Target/TargetRecip.h b/llvm/include/llvm/Target/TargetRecip.h index 71b1c94de7ad..210d49324848 100644 --- a/llvm/include/llvm/Target/TargetRecip.h +++ b/llvm/include/llvm/Target/TargetRecip.h @@ -31,7 +31,7 @@ public: /// Initialize all or part of the operations from command-line options or /// a front end. TargetRecip(const std::vector &Args); - + /// Set whether a particular reciprocal operation is enabled and how many /// refinement steps are needed when using it. Use "all" to set enablement /// and refinement steps for all operations. @@ -52,14 +52,14 @@ private: enum { Uninitialized = -1 }; - + struct RecipParams { int8_t Enabled; int8_t RefinementSteps; - + RecipParams() : Enabled(Uninitialized), RefinementSteps(Uninitialized) {} }; - + std::map RecipMap; typedef std::map::iterator RecipIter; typedef std::map::const_iterator ConstRecipIter;