[polly] r204468 - clang-format: Remove empty lines

Tobias Grosser tobias at grosser.es
Fri Mar 21 07:04:25 PDT 2014


Author: grosser
Date: Fri Mar 21 09:04:25 2014
New Revision: 204468

URL: http://llvm.org/viewvc/llvm-project?rev=204468&view=rev
Log:
clang-format: Remove empty lines

Modified:
    polly/trunk/include/polly/TempScopInfo.h
    polly/trunk/lib/Analysis/ScopDetection.cpp
    polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
    polly/trunk/lib/Analysis/TempScopInfo.cpp
    polly/trunk/lib/CodeGen/BlockGenerators.cpp
    polly/trunk/lib/CodeGen/LoopGenerators.cpp
    polly/trunk/lib/CodeGen/PTXGenerator.cpp
    polly/trunk/lib/Exchange/OpenScopExporter.cpp
    polly/trunk/lib/Exchange/OpenScopImporter.cpp
    polly/trunk/lib/Exchange/ScopLib.cpp
    polly/trunk/lib/Transform/DeadCodeElimination.cpp
    polly/trunk/lib/Transform/IndVarSimplify.cpp
    polly/trunk/lib/Transform/Pluto.cpp
    polly/trunk/lib/Transform/ScheduleOptimizer.cpp

Modified: polly/trunk/include/polly/TempScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/TempScopInfo.h?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/include/polly/TempScopInfo.h (original)
+++ polly/trunk/include/polly/TempScopInfo.h Fri Mar 21 09:04:25 2014
@@ -77,7 +77,6 @@ public:
 };
 
 class Comparison {
-
   const SCEV *LHS;
   const SCEV *RHS;
 

Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Fri Mar 21 09:04:25 2014
@@ -198,7 +198,6 @@ public:
 int DiagnosticScopFound::PluginDiagnosticKind = 10;
 
 void DiagnosticScopFound::print(DiagnosticPrinter &DP) const {
-
   DP << "Polly detected an optimizable loop region (scop) in function '" << F
      << "'\n";
 
@@ -617,7 +616,6 @@ static unsigned eraseAllChildren(std::se
 }
 
 void ScopDetection::findScops(Region &R) {
-
   if (!DetectRegionsWithoutLoops && regionWithoutLoops(R, LI))
     return;
 

Modified: polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopGraphPrinter.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopGraphPrinter.cpp (original)
+++ polly/trunk/lib/Analysis/ScopGraphPrinter.cpp Fri Mar 21 09:04:25 2014
@@ -26,7 +26,6 @@ using namespace llvm;
 namespace llvm {
 template <>
 struct GraphTraits<ScopDetection *> : public GraphTraits<RegionInfo *> {
-
   static NodeType *getEntryNode(ScopDetection *SD) {
     return GraphTraits<RegionInfo *>::getEntryNode(SD->getRI());
   }
@@ -39,11 +38,9 @@ struct GraphTraits<ScopDetection *> : pu
 };
 
 template <> struct DOTGraphTraits<RegionNode *> : public DefaultDOTGraphTraits {
-
   DOTGraphTraits(bool isSimple = false) : DefaultDOTGraphTraits(isSimple) {}
 
   std::string getNodeLabel(RegionNode *Node, RegionNode *Graph) {
-
     if (!Node->isSubRegion()) {
       BasicBlock *BB = Node->getNodeAs<BasicBlock>();
 
@@ -68,7 +65,6 @@ struct DOTGraphTraits<ScopDetection *> :
   std::string getEdgeAttributes(RegionNode *srcNode,
                                 GraphTraits<RegionInfo *>::ChildIteratorType CI,
                                 ScopDetection *SD) {
-
     RegionNode *destNode = *CI;
 
     if (srcNode->isSubRegion() || destNode->isSubRegion())
@@ -103,7 +99,6 @@ struct DOTGraphTraits<ScopDetection *> :
 
     for (std::string::iterator SI = String.begin(), SE = String.end(); SI != SE;
          ++SI) {
-
       if (*SI == '"')
         Escaped += '\\';
 

Modified: polly/trunk/lib/Analysis/TempScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/TempScopInfo.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/TempScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/TempScopInfo.cpp Fri Mar 21 09:04:25 2014
@@ -77,7 +77,6 @@ void TempScop::print(raw_ostream &OS, Sc
 
 void TempScop::printDetail(raw_ostream &OS, ScalarEvolution *SE, LoopInfo *LI,
                            const Region *CurR, unsigned ind) const {
-
   // FIXME: Print other details rather than memory accesses.
   for (const auto &CurBlock : CurR->blocks()) {
     AccFuncMapType::const_iterator AccSetIt = AccFuncMap.find(CurBlock);

Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Fri Mar 21 09:04:25 2014
@@ -220,7 +220,6 @@ Value *BlockGenerator::getNewValue(const
 
 void BlockGenerator::copyInstScalar(const Instruction *Inst, ValueMapT &BBMap,
                                     ValueMapT &GlobalMap, LoopToScevMapT &LTS) {
-
   // We do not generate debug intrinsics as we did not investigate how to
   // copy them correctly. At the current state, they just crash the code
   // generation as the meta-data operands are not correctly copied.
@@ -257,7 +256,6 @@ void BlockGenerator::copyInstScalar(cons
 std::vector<Value *> BlockGenerator::getMemoryAccessIndex(
     __isl_keep isl_map *AccessRelation, Value *BaseAddress, ValueMapT &BBMap,
     ValueMapT &GlobalMap, LoopToScevMapT &LTS, Loop *L) {
-
   assert((isl_map_dim(AccessRelation, isl_dim_out) == 1) &&
          "Only single dimensional access functions supported");
 

Modified: polly/trunk/lib/CodeGen/LoopGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/LoopGenerators.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/LoopGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/LoopGenerators.cpp Fri Mar 21 09:04:25 2014
@@ -50,7 +50,6 @@ Value *polly::createLoop(Value *LB, Valu
                          PollyIRBuilder &Builder, Pass *P, BasicBlock *&ExitBB,
                          ICmpInst::Predicate Predicate,
                          LoopAnnotator *Annotator, bool Parallel) {
-
   DominatorTree &DT = P->getAnalysis<DominatorTreeWrapperPass>().getDomTree();
   LoopInfo &LI = P->getAnalysis<LoopInfo>();
   Function *F = Builder.GetInsertBlock()->getParent();

Modified: polly/trunk/lib/CodeGen/PTXGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PTXGenerator.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PTXGenerator.cpp (original)
+++ polly/trunk/lib/CodeGen/PTXGenerator.cpp Fri Mar 21 09:04:25 2014
@@ -37,7 +37,6 @@ PTXGenerator::PTXGenerator(PollyIRBuilde
                            const std::string &Triple)
     : Builder(Builder), P(P), GPUTriple(Triple), GridWidth(1), GridHeight(1),
       BlockWidth(1), BlockHeight(1), OutputBytes(0) {
-
   InitializeGPUDataTypes();
 }
 

Modified: polly/trunk/lib/Exchange/OpenScopExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/OpenScopExporter.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/OpenScopExporter.cpp (original)
+++ polly/trunk/lib/Exchange/OpenScopExporter.cpp Fri Mar 21 09:04:25 2014
@@ -181,7 +181,6 @@ void OpenScop::initializeStatements() {
 }
 
 void OpenScop::freeStatement(openscop_statement_p stmt) {
-
   if (stmt->read)
     openscop_matrix_free(stmt->read);
   stmt->read = NULL;
@@ -279,7 +278,6 @@ int OpenScop::domainToMatrix_basic_set(i
 /// @param PS The set to be translated
 /// @return A OpenScop Matrix
 openscop_matrix_p OpenScop::domainToMatrix(isl_set *PS) {
-
   // Create a canonical copy of this set.
   isl_set *set = isl_set_copy(PS);
   set = isl_set_compute_divs(set);
@@ -373,7 +371,6 @@ int OpenScop::scatteringToMatrix_basic_m
 /// @param map The map to be translated
 /// @return A OpenScop Matrix
 openscop_matrix_p OpenScop::scatteringToMatrix(isl_map *pmap) {
-
   // Create a canonical copy of this set.
   isl_map *map = isl_map_copy(pmap);
   map = isl_map_compute_divs(map);
@@ -472,7 +469,6 @@ int OpenScop::accessToMatrix_basic_map(i
 ///
 /// @return The memory access matrix, as it is required by openscop.
 openscop_matrix_p OpenScop::createAccessMatrix(ScopStmt *S, bool isRead) {
-
   unsigned NbColumns = S->getNumIterators() + S->getNumParams() + 2;
   openscop_matrix_p m = openscop_matrix_malloc(0, NbColumns);
 

Modified: polly/trunk/lib/Exchange/OpenScopImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/OpenScopImporter.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/OpenScopImporter.cpp (original)
+++ polly/trunk/lib/Exchange/OpenScopImporter.cpp Fri Mar 21 09:04:25 2014
@@ -118,7 +118,6 @@ isl_map *mapFromMatrix(openscop_matrix_p
 ///
 /// @return An isl_map describing the scattering.
 isl_map *scatteringForStmt(openscop_matrix_p m, ScopStmt *PollyStmt) {
-
   unsigned NbParam = PollyStmt->getNumParams();
   unsigned NbIterators = PollyStmt->getNumIterators();
   unsigned NbScattering = m->NbColumns - 2 - NbParam - NbIterators;

Modified: polly/trunk/lib/Exchange/ScopLib.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/ScopLib.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/ScopLib.cpp (original)
+++ polly/trunk/lib/Exchange/ScopLib.cpp Fri Mar 21 09:04:25 2014
@@ -127,7 +127,6 @@ void ScopLib::initializeStatements() {
 }
 
 void ScopLib::freeStatement(scoplib_statement_p stmt) {
-
   if (stmt->read)
     scoplib_matrix_free(stmt->read);
   stmt->read = NULL;
@@ -445,7 +444,6 @@ int ScopLib::accessToMatrix_basic_map(is
 ///
 /// @return The memory access matrix, as it is required by scoplib.
 scoplib_matrix_p ScopLib::createAccessMatrix(ScopStmt *S, bool isRead) {
-
   unsigned NbColumns = S->getNumIterators() + S->getNumParams() + 2;
   scoplib_matrix_p m = scoplib_matrix_malloc(0, NbColumns);
 
@@ -644,7 +642,6 @@ isl_map *mapFromMatrix(scoplib_matrix_p
 /// @return An isl_map describing the scattering.
 isl_map *scatteringForStmt(scoplib_matrix_p m, ScopStmt *PollyStmt,
                            int scatteringDims) {
-
   unsigned NbParam = PollyStmt->getNumParams();
   unsigned NbIterators = PollyStmt->getNumIterators();
   unsigned NbScattering;

Modified: polly/trunk/lib/Transform/DeadCodeElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/DeadCodeElimination.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/Transform/DeadCodeElimination.cpp (original)
+++ polly/trunk/lib/Transform/DeadCodeElimination.cpp Fri Mar 21 09:04:25 2014
@@ -53,7 +53,6 @@ cl::opt<int> DCEPreciseSteps(
     cl::ZeroOrMore, cl::init(-1));
 
 class DeadCodeElim : public ScopPass {
-
 public:
   static char ID;
   explicit DeadCodeElim() : ScopPass(ID) {}

Modified: polly/trunk/lib/Transform/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/IndVarSimplify.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/Transform/IndVarSimplify.cpp (original)
+++ polly/trunk/lib/Transform/IndVarSimplify.cpp Fri Mar 21 09:04:25 2014
@@ -992,7 +992,6 @@ const SCEVAddRecExpr *WidenIV::GetWideRe
 /// WidenIVUse - Determine whether an individual user of the narrow IV can be
 /// widened. If so, return the wide clone of the user.
 Instruction *WidenIV::WidenIVUse(NarrowIVDefUse DU, SCEVExpander &Rewriter) {
-
   // Stop traversing the def-use chain at inner-loop phis or post-loop phis.
   if (isa<PHINode>(DU.NarrowUse) &&
       LI->getLoopFor(DU.NarrowUse->getParent()) != L)
@@ -1537,7 +1536,6 @@ static Value *genLoopLimit(PHINode *IndV
   // GEP. Avoid running SCEVExpander on a new pointer value, instead reusing
   // the existing GEPs whenever possible.
   if (IndVar->getType()->isPointerTy() && !IVCount->getType()->isPointerTy()) {
-
     Type *OfsTy = SE->getEffectiveSCEVType(IVInit->getType());
     const SCEV *IVOffset = SE->getTruncateOrSignExtend(IVCount, OfsTy);
 

Modified: polly/trunk/lib/Transform/Pluto.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/Pluto.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/Transform/Pluto.cpp (original)
+++ polly/trunk/lib/Transform/Pluto.cpp Fri Mar 21 09:04:25 2014
@@ -126,7 +126,6 @@ static std::string convertInt(int number
 }
 
 class PlutoOptimizer : public ScopPass {
-
 public:
   static char ID;
   explicit PlutoOptimizer() : ScopPass(ID) {}

Modified: polly/trunk/lib/Transform/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ScheduleOptimizer.cpp?rev=204468&r1=204467&r2=204468&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/Transform/ScheduleOptimizer.cpp Fri Mar 21 09:04:25 2014
@@ -81,7 +81,6 @@ MaximizeBandDepth("polly-opt-maximize-ba
 namespace {
 
 class IslScheduleOptimizer : public ScopPass {
-
 public:
   static char ID;
   explicit IslScheduleOptimizer() : ScopPass(ID) { LastSchedule = NULL; }





More information about the llvm-commits mailing list