[polly] r179160 - Update formatting to latest version of clang-format

Tobias Grosser grosser at fim.uni-passau.de
Tue Apr 9 23:55:45 PDT 2013


Author: grosser
Date: Wed Apr 10 01:55:45 2013
New Revision: 179160

URL: http://llvm.org/viewvc/llvm-project?rev=179160&view=rev
Log:
Update formatting to latest version of clang-format

Modified:
    polly/trunk/include/polly/CodeGen/BlockGenerators.h
    polly/trunk/include/polly/CodeGen/PTXGenerator.h
    polly/trunk/include/polly/LinkAllPasses.h
    polly/trunk/include/polly/MayAliasSet.h
    polly/trunk/include/polly/ScopInfo.h
    polly/trunk/include/polly/ScopPass.h
    polly/trunk/include/polly/Support/SCEVValidator.h
    polly/trunk/lib/Analysis/Dependences.cpp
    polly/trunk/lib/Analysis/ScopDetection.cpp
    polly/trunk/lib/Analysis/ScopInfo.cpp
    polly/trunk/lib/Analysis/TempScopInfo.cpp
    polly/trunk/lib/CodeGen/BlockGenerators.cpp
    polly/trunk/lib/CodeGen/CodeGeneration.cpp
    polly/trunk/lib/CodeGen/IslAst.cpp
    polly/trunk/lib/CodeGen/IslCodeGeneration.cpp
    polly/trunk/lib/CodePreparation.cpp
    polly/trunk/lib/DeadCodeElimination.cpp
    polly/trunk/lib/Exchange/JSONExporter.cpp
    polly/trunk/lib/Exchange/ScopLib.cpp
    polly/trunk/lib/Exchange/ScopLibExporter.cpp
    polly/trunk/lib/IndVarSimplify.cpp
    polly/trunk/lib/IndependentBlocks.cpp
    polly/trunk/lib/RegionSimplify.cpp
    polly/trunk/tools/GPURuntime/GPUJIT.h

Modified: polly/trunk/include/polly/CodeGen/BlockGenerators.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/BlockGenerators.h?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/BlockGenerators.h (original)
+++ polly/trunk/include/polly/CodeGen/BlockGenerators.h Wed Apr 10 01:55:45 2013
@@ -192,10 +192,10 @@ public:
   ///                   loop containing the statemenet.
   /// @param P          A reference to the pass this function is called from.
   ///                   The pass is needed to update other analysis.
-  static void generate(
-      IRBuilder<> &B, ScopStmt &Stmt, VectorValueMapT &GlobalMaps,
-      std::vector<LoopToScevMapT> &VLTS, __isl_keep isl_map *Schedule,
-      Pass *P) {
+  static void
+  generate(IRBuilder<> &B, ScopStmt &Stmt, VectorValueMapT &GlobalMaps,
+           std::vector<LoopToScevMapT> &VLTS, __isl_keep isl_map *Schedule,
+           Pass *P) {
     VectorBlockGenerator Generator(B, GlobalMaps, VLTS, Stmt, Schedule, P);
     Generator.copyBB();
   }

Modified: polly/trunk/include/polly/CodeGen/PTXGenerator.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/PTXGenerator.h?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/PTXGenerator.h (original)
+++ polly/trunk/include/polly/CodeGen/PTXGenerator.h Wed Apr 10 01:55:45 2013
@@ -130,14 +130,14 @@ private:
                                       Value *Size);
   void createCallSetKernelParameters(Value *Kernel, Value *BlockWidth,
                                      Value *BlockHeight, Value *DeviceData);
-  void createCallLaunchKernel(Value *Kernel, Value *GridWidth,
-                              Value *GridHeight);
+  void
+  createCallLaunchKernel(Value *Kernel, Value *GridWidth, Value *GridHeight);
   void createCallStartTimerByCudaEvent(Value *StartEvent, Value *StopEvent);
   void createCallStopTimerByCudaEvent(Value *StartEvent, Value *StopEvent,
                                       Value *Timer);
-  void createCallCleanupGPGPUResources(Value *HostData, Value *DeviceData,
-                                       Value *Module, Value *Context,
-                                       Value *Kernel);
+  void
+  createCallCleanupGPGPUResources(Value *HostData, Value *DeviceData,
+                                  Value *Module, Value *Context, Value *Kernel);
 
   /// @brief Create the CUDA subfunction.
   ///

Modified: polly/trunk/include/polly/LinkAllPasses.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/LinkAllPasses.h?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/include/polly/LinkAllPasses.h (original)
+++ polly/trunk/include/polly/LinkAllPasses.h Wed Apr 10 01:55:45 2013
@@ -1,4 +1,4 @@
-//===- polly/LinkAllPasses.h ------------ Reference All Passes ---*- C++ -*-===//
+//===- polly/LinkAllPasses.h ----------- Reference All Passes ---*- C++ -*-===//
 //
 //                      The LLVM Compiler Infrastructure
 //

Modified: polly/trunk/include/polly/MayAliasSet.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/MayAliasSet.h?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/include/polly/MayAliasSet.h (original)
+++ polly/trunk/include/polly/MayAliasSet.h Wed Apr 10 01:55:45 2013
@@ -83,6 +83,7 @@ class MayAliasSet {
   MayAliasSet() {}
 
   friend class MayAliasSetInfo;
+
 public:
 
   /// @name Must Alias Pointer Iterators

Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Wed Apr 10 01:55:45 2013
@@ -106,6 +106,7 @@ private:
 
   /// Updated access relation read from JSCOP file.
   isl_map *newAccessRelation;
+
 public:
   // @brief Create a memory access from an access in LLVM-IR.
   //
@@ -293,6 +294,7 @@ class ScopStmt {
            SmallVectorImpl<unsigned> &Scatter);
 
   friend class Scop;
+
 public:
 
   ~ScopStmt();
@@ -469,6 +471,7 @@ class Scop {
   void printStatements(raw_ostream &OS) const;
 
   friend class ScopInfo;
+
 public:
 
   ~Scop();

Modified: polly/trunk/include/polly/ScopPass.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopPass.h?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopPass.h (original)
+++ polly/trunk/include/polly/ScopPass.h Wed Apr 10 01:55:45 2013
@@ -32,6 +32,7 @@ class Scop;
 /// runOnRegion, subclasses override runOnScop.
 class ScopPass : public RegionPass {
   Scop *S;
+
 protected:
   explicit ScopPass(char &ID) : RegionPass(ID), S(0) {}
 
@@ -50,6 +51,7 @@ public:
     assert(S && "Not on a Scop!");
     return *S;
   }
+
 private:
   virtual bool runOnRegion(Region *R, RGPassManager &RGM);
   void print(raw_ostream &OS, const Module *) const;

Modified: polly/trunk/include/polly/Support/SCEVValidator.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/SCEVValidator.h?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/SCEVValidator.h (original)
+++ polly/trunk/include/polly/Support/SCEVValidator.h Wed Apr 10 01:55:45 2013
@@ -28,9 +28,9 @@ namespace polly {
 /// @param S The SCEV to analyze.
 /// @param R The region in which we look for dependences.
 bool hasScalarDepsInsideRegion(const llvm::SCEV *S, const llvm::Region *R);
-bool isAffineExpr(const llvm::Region *R, const llvm::SCEV *Expression,
-                  llvm::ScalarEvolution &SE,
-                  const llvm::Value *BaseAddress = 0);
+bool
+isAffineExpr(const llvm::Region *R, const llvm::SCEV *Expression,
+             llvm::ScalarEvolution &SE, const llvm::Value *BaseAddress = 0);
 std::vector<const llvm::SCEV *> getParamsInAffineExpr(
     const llvm::Region *R, const llvm::SCEV *Expression,
     llvm::ScalarEvolution &SE, const llvm::Value *BaseAddress = 0);

Modified: polly/trunk/lib/Analysis/Dependences.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/Dependences.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/Dependences.cpp (original)
+++ polly/trunk/lib/Analysis/Dependences.cpp Wed Apr 10 01:55:45 2013
@@ -50,9 +50,9 @@ ValueDependences("polly-value-dependence
 //===----------------------------------------------------------------------===//
 Dependences::Dependences() : ScopPass(ID) { RAW = WAR = WAW = NULL; }
 
-void Dependences::collectInfo(Scop &S, isl_union_map **Read,
-                              isl_union_map **Write, isl_union_map **MayWrite,
-                              isl_union_map **Schedule) {
+void
+Dependences::collectInfo(Scop &S, isl_union_map **Read, isl_union_map **Write,
+                         isl_union_map **MayWrite, isl_union_map **Schedule) {
   isl_space *Space = S.getParamSpace();
   *Read = isl_union_map_empty(isl_space_copy(Space));
   *Write = isl_union_map_empty(isl_space_copy(Space));

Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Wed Apr 10 01:55:45 2013
@@ -150,8 +150,8 @@ std::string ScopDetection::regionIsInval
   return InvalidRegions.find(R)->second;
 }
 
-bool ScopDetection::isValidCFG(BasicBlock &BB,
-                               DetectionContext &Context) const {
+bool
+ScopDetection::isValidCFG(BasicBlock &BB, DetectionContext &Context) const {
   Region &RefRegion = Context.CurRegion;
   TerminatorInst *TI = BB.getTerminator();
 
@@ -176,8 +176,7 @@ bool ScopDetection::isValidCFG(BasicBloc
   // Only Constant and ICmpInst are allowed as condition.
   if (!(isa<Constant>(Condition) || isa<ICmpInst>(Condition)))
     INVALID(AffFunc, "Condition in BB '" + BB.getName() +
-                     "' neither "
-                     "constant nor an icmp instruction");
+                         "' neither constant nor an icmp instruction");
 
   // Allow perfectly nested conditions.
   assert(Br->getNumSuccessors() == 2 && "Unexpected number of successors");
@@ -316,8 +315,8 @@ bool ScopDetection::isValidMemoryAccess(
   return true;
 }
 
-bool ScopDetection::hasScalarDependency(Instruction &Inst,
-                                        Region &RefRegion) const {
+bool
+ScopDetection::hasScalarDependency(Instruction &Inst, Region &RefRegion) const {
   for (Instruction::use_iterator UI = Inst.use_begin(), UE = Inst.use_end();
        UI != UE; ++UI)
     if (Instruction *Use = dyn_cast<Instruction>(*UI))
@@ -410,7 +409,7 @@ bool ScopDetection::isValidLoop(Loop *L,
   if (!isAffineExpr(&Context.CurRegion, LoopCount, *SE))
     INVALID(LoopBound,
             "Non affine loop bound '"
-            << *LoopCount << "' in loop: " << L->getHeader()->getName());
+                << *LoopCount << "' in loop: " << L->getHeader()->getName());
 
   return true;
 }
@@ -438,7 +437,8 @@ Region *ScopDetection::expandRegion(Regi
       if (LastValidRegion)
         delete LastValidRegion;
 
-      // Store this region, because it is the greatest valid (encountered so far)
+      // Store this region, because it is the greatest valid (encountered so
+      // far).
       LastValidRegion = ExpandedRegion;
 
       // Create and test the next greater region (if any)
@@ -456,7 +456,7 @@ Region *ScopDetection::expandRegion(Regi
   }
 
   DEBUG(if (LastValidRegion)
-        dbgs() << "\tto " << LastValidRegion->getNameStr() << "\n";
+            dbgs() << "\tto " << LastValidRegion->getNameStr() << "\n";
         else dbgs() << "\tExpanding " << R.getNameStr() << " failed\n";);
 
   return LastValidRegion;

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Wed Apr 10 01:55:45 2013
@@ -229,8 +229,8 @@ MemoryAccess::~MemoryAccess() {
   isl_map_free(newAccessRelation);
 }
 
-static void replace(std::string &str, const std::string &find,
-                    const std::string &replace) {
+static void
+replace(std::string &str, const std::string &find, const std::string &replace) {
   size_t pos = 0;
   while ((pos = str.find(find, pos)) != std::string::npos) {
     str.replace(pos, find.length(), replace);
@@ -546,7 +546,7 @@ __isl_give isl_set *ScopStmt::addLoopBou
 __isl_give isl_set *ScopStmt::addConditionsToDomain(
     __isl_take isl_set *Domain, TempScop &tempScop, const Region &CurRegion) {
   const Region *TopRegion = tempScop.getMaxRegion().getParent(),
-                *CurrentRegion = &CurRegion;
+               *CurrentRegion = &CurRegion;
   const BasicBlock *BranchingBB = BB;
 
   do {

Modified: polly/trunk/lib/Analysis/TempScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/TempScopInfo.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/TempScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/TempScopInfo.cpp Wed Apr 10 01:55:45 2013
@@ -71,9 +71,9 @@ void TempScop::print(raw_ostream &OS, Sc
   printDetail(OS, SE, LI, &R, 0);
 }
 
-void TempScop::printDetail(llvm::raw_ostream &OS, ScalarEvolution *SE,
-                           LoopInfo *LI, const Region *CurR,
-                           unsigned ind) const {}
+void
+TempScop::printDetail(llvm::raw_ostream &OS, ScalarEvolution *SE, LoopInfo *LI,
+                      const Region *CurR, unsigned ind) const {}
 
 void TempScopInfo::buildAccessFunctions(Region &R, BasicBlock &BB) {
   AccFuncSetType Functions;

Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Wed Apr 10 01:55:45 2013
@@ -179,7 +179,7 @@ Value *BlockGenerator::getNewValue(const
     Value *New = GlobalMap[Old];
 
     if (Old->getType()->getScalarSizeInBits() <
-            New->getType()->getScalarSizeInBits())
+        New->getType()->getScalarSizeInBits())
       New = Builder.CreateTruncOrBitCast(New, Old->getType());
 
     return New;
@@ -338,9 +338,9 @@ BlockGenerator::generateScalarStore(cons
   return Builder.CreateStore(ValueOperand, NewPointer);
 }
 
-void BlockGenerator::copyInstruction(const Instruction *Inst, ValueMapT &BBMap,
-                                     ValueMapT &GlobalMap,
-                                     LoopToScevMapT &LTS) {
+void
+BlockGenerator::copyInstruction(const Instruction *Inst, ValueMapT &BBMap,
+                                ValueMapT &GlobalMap, LoopToScevMapT &LTS) {
   // Terminator instructions control the control flow. They are explicitly
   // expressed in the clast and do not need to be copied.
   if (Inst->isTerminator())

Modified: polly/trunk/lib/CodeGen/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodeGeneration.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/CodeGeneration.cpp Wed Apr 10 01:55:45 2013
@@ -88,6 +88,7 @@ class ClastExpCodeGen {
   Value *codegen(const clast_term *e, Type *Ty);
   Value *codegen(const clast_binary *e, Type *Ty);
   Value *codegen(const clast_reduction *r, Type *Ty);
+
 public:
 
   // A generator for clast expressions.
@@ -261,10 +262,10 @@ private:
 
   void codegen(const clast_assignment *a);
 
-  void codegen(const clast_assignment *a, ScopStmt *Statement,
-               unsigned Dimension, int vectorDim,
-               std::vector<ValueMapT> *VectorVMap = 0,
-               std::vector<LoopToScevMapT> *VLTS = 0);
+  void
+  codegen(const clast_assignment *a, ScopStmt *Statement, unsigned Dimension,
+          int vectorDim, std::vector<ValueMapT> *VectorVMap = 0,
+          std::vector<LoopToScevMapT> *VLTS = 0);
 
   void codegenSubstitutions(const clast_stmt *Assignment, ScopStmt *Statement,
                             int vectorDim = 0,
@@ -421,9 +422,9 @@ extractPartialSchedule(ScopStmt *Stateme
                              UnscheduledDimensions);
 }
 
-void ClastStmtCodeGen::codegen(const clast_user_stmt *u,
-                               std::vector<Value *> *IVS, const char *iterator,
-                               isl_set *Domain) {
+void
+ClastStmtCodeGen::codegen(const clast_user_stmt *u, std::vector<Value *> *IVS,
+                          const char *iterator, isl_set *Domain) {
   ScopStmt *Statement = (ScopStmt *)u->statement->usr;
 
   if (u->substitutions)
@@ -488,6 +489,7 @@ void ClastStmtCodeGen::codegenForSequent
 // clast. Scalar parameters are scalar variables defined outside of the SCoP.
 class ParameterVisitor : public ClastVisitor {
   std::set<Value *> Values;
+
 public:
   ParameterVisitor() : ClastVisitor(), Values() {}
 
@@ -545,8 +547,8 @@ SetVector<Value *> ClastStmtCodeGen::get
   return Values;
 }
 
-void ClastStmtCodeGen::updateWithValueMap(
-    OMPGenerator::ValueToValueMapTy &VMap) {
+void
+ClastStmtCodeGen::updateWithValueMap(OMPGenerator::ValueToValueMapTy &VMap) {
   std::set<Value *> Inserted;
 
   for (CharMapT::iterator I = ClastVars.begin(), E = ClastVars.end(); I != E;
@@ -986,8 +988,8 @@ public:
 
     Region &R = S.getRegion();
 
-    assert (!R.isTopLevelRegion() && "Top level regions are not supported");
-    assert (R.getEnteringBlock() && "Only support regions with a single entry");
+    assert(!R.isTopLevelRegion() && "Top level regions are not supported");
+    assert(R.getEnteringBlock() && "Only support regions with a single entry");
 
     if (!R.getExitingBlock()) {
       BasicBlock *newExit = createSingleExitEdge(&R, this);

Modified: polly/trunk/lib/CodeGen/IslAst.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslAst.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslAst.cpp (original)
+++ polly/trunk/lib/CodeGen/IslAst.cpp Wed Apr 10 01:55:45 2013
@@ -143,8 +143,8 @@ static void freeIslAstUser(void *Ptr) {
 // dimension, then the loop is parallel. The distance is zero in the current
 // dimension if it is a subset of a map with equal values for the current
 // dimension.
-static bool astScheduleDimIsParallel(__isl_keep isl_ast_build *Build,
-                                     Dependences *D) {
+static bool
+astScheduleDimIsParallel(__isl_keep isl_ast_build *Build, Dependences *D) {
   isl_union_map *Schedule, *Deps;
   isl_map *ScheduleDeps, *Test;
   isl_space *ScheduleSpace;

Modified: polly/trunk/lib/CodeGen/IslCodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslCodeGeneration.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslCodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/IslCodeGeneration.cpp Wed Apr 10 01:55:45 2013
@@ -698,8 +698,8 @@ void IslNodeBuilder::createUserVector(
   isl_ast_node_free(User);
 }
 
-void IslNodeBuilder::createForVector(__isl_take isl_ast_node *For,
-                                     int VectorWidth) {
+void
+IslNodeBuilder::createForVector(__isl_take isl_ast_node *For, int VectorWidth) {
   isl_ast_node *Body = isl_ast_node_for_get_body(For);
   isl_ast_expr *Init = isl_ast_node_for_get_init(For);
   isl_ast_expr *Inc = isl_ast_node_for_get_inc(For);
@@ -1028,8 +1028,8 @@ public:
 
     Region &R = S.getRegion();
 
-    assert (!R.isTopLevelRegion() && "Top level regions are not supported");
-    assert (R.getEnteringBlock() && "Only support regions with a single entry");
+    assert(!R.isTopLevelRegion() && "Top level regions are not supported");
+    assert(R.getEnteringBlock() && "Only support regions with a single entry");
 
     if (!R.getExitingBlock()) {
       BasicBlock *newExit = createSingleExitEdge(&R, this);

Modified: polly/trunk/lib/CodePreparation.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodePreparation.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/CodePreparation.cpp (original)
+++ polly/trunk/lib/CodePreparation.cpp Wed Apr 10 01:55:45 2013
@@ -179,7 +179,7 @@ char &polly::CodePreparationID = CodePre
 Pass *polly::createCodePreparationPass() { return new CodePreparation(); }
 
 INITIALIZE_PASS_BEGIN(CodePreparation, "polly-prepare",
-                      "Polly - Prepare code for polly", false, false);
-INITIALIZE_PASS_DEPENDENCY(LoopInfo);
+                      "Polly - Prepare code for polly", false, false)
+INITIALIZE_PASS_DEPENDENCY(LoopInfo)
 INITIALIZE_PASS_END(CodePreparation, "polly-prepare",
                     "Polly - Prepare code for polly", false, false)

Modified: polly/trunk/lib/DeadCodeElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/DeadCodeElimination.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/DeadCodeElimination.cpp (original)
+++ polly/trunk/lib/DeadCodeElimination.cpp Wed Apr 10 01:55:45 2013
@@ -66,8 +66,8 @@ void DeadCodeElim::getAnalysisUsage(Anal
 Pass *polly::createDeadCodeElimPass() { return new DeadCodeElim(); }
 
 INITIALIZE_PASS_BEGIN(DeadCodeElim, "polly-dce",
-                      "Polly - Remove dead iterations", false, false);
-INITIALIZE_PASS_DEPENDENCY(Dependences);
-INITIALIZE_PASS_DEPENDENCY(ScopInfo);
+                      "Polly - Remove dead iterations", false, false)
+INITIALIZE_PASS_DEPENDENCY(Dependences)
+INITIALIZE_PASS_DEPENDENCY(ScopInfo)
 INITIALIZE_PASS_END(DeadCodeElim, "polly-dce", "Polly - Remove dead iterations",
                     false, false)

Modified: polly/trunk/lib/Exchange/JSONExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/JSONExporter.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/JSONExporter.cpp (original)
+++ polly/trunk/lib/Exchange/JSONExporter.cpp Wed Apr 10 01:55:45 2013
@@ -270,7 +270,7 @@ bool JSONImporter::runOnScop(Scop &scop)
       isl_map *currentAccessMap = (*MI)->getAccessRelation();
 
       if (isl_map_dim(newAccessMap, isl_dim_param) !=
-              isl_map_dim(currentAccessMap, isl_dim_param)) {
+          isl_map_dim(currentAccessMap, isl_dim_param)) {
         errs() << "JScop file changes the number of parameter dimensions\n";
         isl_map_free(currentAccessMap);
         isl_map_free(newAccessMap);
@@ -332,20 +332,17 @@ INITIALIZE_PASS_BEGIN(JSONExporter, "pol
                       "Polly - Export Scops as JSON"
                       " (Writes a .jscop file for each Scop)",
                       false, false);
-INITIALIZE_PASS_DEPENDENCY(Dependences);
+INITIALIZE_PASS_DEPENDENCY(Dependences)
 INITIALIZE_PASS_END(JSONExporter, "polly-export-jscop",
                     "Polly - Export Scops as JSON"
                     " (Writes a .jscop file for each Scop)",
                     false, false)
 
-    // typedef to make clang-format introduce a linebreak
-    typedef int clangformatdef;
-
 INITIALIZE_PASS_BEGIN(JSONImporter, "polly-import-jscop",
                       "Polly - Import Scops from JSON"
                       " (Reads a .jscop file for each Scop)",
                       false, false);
-INITIALIZE_PASS_DEPENDENCY(Dependences);
+INITIALIZE_PASS_DEPENDENCY(Dependences)
 INITIALIZE_PASS_END(JSONImporter, "polly-import-jscop",
                     "Polly - Import Scops from JSON"
                     " (Reads a .jscop file for each Scop)",

Modified: polly/trunk/lib/Exchange/ScopLib.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/ScopLib.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/ScopLib.cpp (original)
+++ polly/trunk/lib/Exchange/ScopLib.cpp Wed Apr 10 01:55:45 2013
@@ -694,7 +694,7 @@ StatementToIslMapTy *readScattering(Scop
   ScopStmt *pollyStmt = *S->begin();
 
   if (stmt->schedule->NbColumns ==
-          2 + pollyStmt->getNumParams() + pollyStmt->getNumIterators()) {
+      2 + pollyStmt->getNumParams() + pollyStmt->getNumIterators()) {
     numScatteringDims = maxScattering(stmt);
   }
 

Modified: polly/trunk/lib/Exchange/ScopLibExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/ScopLibExporter.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/ScopLibExporter.cpp (original)
+++ polly/trunk/lib/Exchange/ScopLibExporter.cpp Wed Apr 10 01:55:45 2013
@@ -39,6 +39,7 @@ class ScopLibExporter : public ScopPass
   Scop *S;
 
   std::string getFileName(Scop *S) const;
+
 public:
   static char ID;
   explicit ScopLibExporter() : ScopPass(ID) {}

Modified: polly/trunk/lib/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/IndVarSimplify.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/IndVarSimplify.cpp (original)
+++ polly/trunk/lib/IndVarSimplify.cpp Wed Apr 10 01:55:45 2013
@@ -74,6 +74,7 @@ class PollyIndVarSimplify : public LoopP
 
   SmallVector<WeakVH, 16> DeadInsts;
   bool Changed;
+
 public:
 
   static char ID; // Pass identification, replacement for typeid
@@ -491,8 +492,8 @@ void PollyIndVarSimplify::RewriteNonInte
 /// happen later, except that it's more powerful in some cases, because it's
 /// able to brute-force evaluate arbitrary instructions as long as they have
 /// constant operands at the beginning of the loop.
-void PollyIndVarSimplify::RewriteLoopExitValues(Loop *L,
-                                                SCEVExpander &Rewriter) {
+void
+PollyIndVarSimplify::RewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter) {
   // Verify the input to the pass in already in LCSSA form.
   assert(L->isLCSSAForm(*DT));
 
@@ -644,8 +645,8 @@ static bool isSafe(const SCEV *S, const
   return false;
 }
 
-void PollyIndVarSimplify::RewriteIVExpressions(Loop *L,
-                                               SCEVExpander &Rewriter) {
+void
+PollyIndVarSimplify::RewriteIVExpressions(Loop *L, SCEVExpander &Rewriter) {
   // Rewrite all induction variable expressions in terms of the canonical
   // induction variable.
   //
@@ -899,13 +900,13 @@ Instruction *WidenIV::CloneIVUser(Narrow
     // comes from a widened IV, it should be removed during a future call to
     // WidenIVUse.
     Value *LHS = (DU.NarrowUse->getOperand(0) == DU.NarrowDef)
-                 ? DU.WideDef
-                 : getExtend(DU.NarrowUse->getOperand(0), WideType, IsSigned,
-                             DU.NarrowUse);
+                     ? DU.WideDef
+                     : getExtend(DU.NarrowUse->getOperand(0), WideType,
+                                 IsSigned, DU.NarrowUse);
     Value *RHS = (DU.NarrowUse->getOperand(1) == DU.NarrowDef)
-                 ? DU.WideDef
-                 : getExtend(DU.NarrowUse->getOperand(1), WideType, IsSigned,
-                             DU.NarrowUse);
+                     ? DU.WideDef
+                     : getExtend(DU.NarrowUse->getOperand(1), WideType,
+                                 IsSigned, DU.NarrowUse);
 
     BinaryOperator *NarrowBO = cast<BinaryOperator>(DU.NarrowUse);
     BinaryOperator *WideBO = BinaryOperator::Create(NarrowBO->getOpcode(), LHS,
@@ -975,7 +976,7 @@ const SCEVAddRecExpr *WidenIV::GetWideRe
 
   const SCEV *NarrowExpr = SE->getSCEV(NarrowUse);
   if (SE->getTypeSizeInBits(NarrowExpr->getType()) >=
-          SE->getTypeSizeInBits(WideType)) {
+      SE->getTypeSizeInBits(WideType)) {
     // NarrowUse implicitly widens its operand. e.g. a gep with a narrow
     // index. So don't follow this use.
     return 0;
@@ -1584,7 +1585,7 @@ static Value *genLoopLimit(PHINode *IndV
 
       // For integer IVs, truncate the IV before computing IVInit + BECount.
       if (SE->getTypeSizeInBits(IVInit->getType()) >
-              SE->getTypeSizeInBits(IVCount->getType()))
+          SE->getTypeSizeInBits(IVCount->getType()))
         IVInit = SE->getTruncateExpr(IVInit, IVCount->getType());
 
       IVLimit = SE->getAddExpr(IVInit, IVCount);
@@ -1674,7 +1675,7 @@ Value *PollyIndVarSimplify::LinearFuncti
 
   IRBuilder<> Builder(BI);
   if (SE->getTypeSizeInBits(CmpIndVar->getType()) >
-          SE->getTypeSizeInBits(ExitCnt->getType())) {
+      SE->getTypeSizeInBits(ExitCnt->getType())) {
     CmpIndVar =
         Builder.CreateTrunc(CmpIndVar, ExitCnt->getType(), "lftr.wideiv");
   }
@@ -1901,7 +1902,7 @@ bool PollyIndVarSimplify::runOnLoop(Loop
     SmallVector<PHINode *, 2> OldCannIVs;
     while (PHINode *OldCannIV = L->getCanonicalInductionVariable()) {
       if (SE->getTypeSizeInBits(OldCannIV->getType()) >
-              SE->getTypeSizeInBits(LargestType))
+          SE->getTypeSizeInBits(LargestType))
         OldCannIV->removeFromParent();
       else
         break;
@@ -1985,7 +1986,7 @@ bool PollyIndVarSimplify::runOnLoop(Loop
     SE->forgetLoop(L);
     const SCEV *NewBECount = SE->getBackedgeTakenCount(L);
     if (SE->getTypeSizeInBits(BackedgeTakenCount->getType()) <
-            SE->getTypeSizeInBits(NewBECount->getType()))
+        SE->getTypeSizeInBits(NewBECount->getType()))
       NewBECount =
           SE->getTruncateOrNoop(NewBECount, BackedgeTakenCount->getType());
     else

Modified: polly/trunk/lib/IndependentBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/IndependentBlocks.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/IndependentBlocks.cpp (original)
+++ polly/trunk/lib/IndependentBlocks.cpp Wed Apr 10 01:55:45 2013
@@ -178,9 +178,9 @@ void IndependentBlocks::moveOperandTree(
 
       // If the Scop Region does not contain N, skip it and all its operands and
       // continue: because we reach a "parameter".
-      // FIXME: we must keep the predicate instruction inside the Scop, otherwise
-      // it will be translated to a load instruction, and we can not handle load
-      // as affine predicate at this moment.
+      // FIXME: we must keep the predicate instruction inside the Scop,
+      // otherwise it will be translated to a load instruction, and we can not
+      // handle load as affine predicate at this moment.
       if (!R->contains(Operand) && !isa<TerminatorInst>(CurInst)) {
         DEBUG(dbgs() << "Out of region.\n");
         continue;
@@ -235,8 +235,8 @@ void IndependentBlocks::moveOperandTree(
   SE->forgetValue(Inst);
 }
 
-bool IndependentBlocks::createIndependentBlocks(BasicBlock *BB,
-                                                const Region *R) {
+bool
+IndependentBlocks::createIndependentBlocks(BasicBlock *BB, const Region *R) {
   std::vector<Instruction *> WorkList;
   for (BasicBlock::iterator II = BB->begin(), IE = BB->end(); II != IE; ++II)
     if (!isSafeToMove(II) && !canSynthesize(II, LI, SE, R))
@@ -363,8 +363,8 @@ bool IndependentBlocks::onlyUsedInRegion
   return true;
 }
 
-bool IndependentBlocks::translateScalarToArray(Instruction *Inst,
-                                               const Region *R) {
+bool
+IndependentBlocks::translateScalarToArray(Instruction *Inst, const Region *R) {
   if (canSynthesize(Inst, LI, SE, R) && onlyUsedInRegion(Inst, R))
     return false;
 
@@ -418,8 +418,8 @@ bool IndependentBlocks::translateScalarT
   return true;
 }
 
-bool IndependentBlocks::translateScalarToArray(BasicBlock *BB,
-                                               const Region *R) {
+bool
+IndependentBlocks::translateScalarToArray(BasicBlock *BB, const Region *R) {
   bool changed = false;
 
   SmallVector<Instruction *, 32> Insts;
@@ -434,8 +434,8 @@ bool IndependentBlocks::translateScalarT
   return changed;
 }
 
-bool IndependentBlocks::isIndependentBlock(const Region *R,
-                                           BasicBlock *BB) const {
+bool
+IndependentBlocks::isIndependentBlock(const Region *R, BasicBlock *BB) const {
   for (BasicBlock::iterator II = BB->begin(), IE = --BB->end(); II != IE;
        ++II) {
     Instruction *Inst = &*II;

Modified: polly/trunk/lib/RegionSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/RegionSimplify.cpp?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/lib/RegionSimplify.cpp (original)
+++ polly/trunk/lib/RegionSimplify.cpp Wed Apr 10 01:55:45 2013
@@ -38,6 +38,7 @@ class RegionSimplify : public RegionPass
   Region *r;
   void createSingleEntryEdge(Region *R);
   void createSingleExitEdge(Region *R);
+
 public:
   static char ID;
   explicit RegionSimplify() : RegionPass(ID), r(0) {}

Modified: polly/trunk/tools/GPURuntime/GPUJIT.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/tools/GPURuntime/GPUJIT.h?rev=179160&r1=179159&r2=179160&view=diff
==============================================================================
--- polly/trunk/tools/GPURuntime/GPUJIT.h (original)
+++ polly/trunk/tools/GPURuntime/GPUJIT.h Wed Apr 10 01:55:45 2013
@@ -96,8 +96,8 @@ void polly_allocateMemoryForHostAndDevic
     void **HostData, PollyGPUDevicePtr **DevData, int MemSize);
 void polly_setKernelParameters(PollyGPUFunction *Kernel, int BlockWidth,
                                int BlockHeight, PollyGPUDevicePtr *DevData);
-void polly_launchKernel(PollyGPUFunction *Kernel, int GridWidth,
-                        int GridHeight);
+void
+polly_launchKernel(PollyGPUFunction *Kernel, int GridWidth, int GridHeight);
 void polly_cleanupGPGPUResources(
     void *HostData, PollyGPUDevicePtr *DevData, PollyGPUModule *Module,
     PollyGPUContext *Context, PollyGPUFunction *Kernel);





More information about the llvm-commits mailing list