[polly] r181294 - Reformat with clang-format

Tobias Grosser grosser at fim.uni-passau.de
Tue May 7 00:30:57 PDT 2013


Author: grosser
Date: Tue May  7 02:30:56 2013
New Revision: 181294

URL: http://llvm.org/viewvc/llvm-project?rev=181294&view=rev
Log:
Reformat with clang-format

clang-format become way more stable. This time we mainly reformat function
signatures.

Modified:
    polly/trunk/include/polly/CodeGen/BlockGenerators.h
    polly/trunk/include/polly/CodeGen/LoopGenerators.h
    polly/trunk/include/polly/CodeGen/PTXGenerator.h
    polly/trunk/include/polly/ScopInfo.h
    polly/trunk/include/polly/Support/SCEVValidator.h
    polly/trunk/lib/Analysis/Dependences.cpp
    polly/trunk/lib/Analysis/ScopDetection.cpp
    polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
    polly/trunk/lib/Analysis/ScopInfo.cpp
    polly/trunk/lib/Analysis/TempScopInfo.cpp
    polly/trunk/lib/CodeGen/BlockGenerators.cpp
    polly/trunk/lib/CodeGen/Cloog.cpp
    polly/trunk/lib/CodeGen/CodeGeneration.cpp
    polly/trunk/lib/CodeGen/IslAst.cpp
    polly/trunk/lib/CodeGen/IslCodeGeneration.cpp
    polly/trunk/lib/CodeGen/LoopGenerators.cpp
    polly/trunk/lib/CodeGen/PTXGenerator.cpp
    polly/trunk/lib/Exchange/JSONExporter.cpp
    polly/trunk/lib/Exchange/OpenScopExporter.cpp
    polly/trunk/lib/Exchange/OpenScopImporter.cpp
    polly/trunk/lib/Exchange/ScopLib.cpp
    polly/trunk/lib/Exchange/ScopLibExporter.cpp
    polly/trunk/lib/Exchange/ScopLibImporter.cpp
    polly/trunk/lib/IndVarSimplify.cpp
    polly/trunk/lib/IndependentBlocks.cpp
    polly/trunk/lib/Pocc.cpp
    polly/trunk/lib/RegisterPasses.cpp
    polly/trunk/lib/ScheduleOptimizer.cpp
    polly/trunk/lib/Support/GICHelper.cpp
    polly/trunk/lib/Support/SCEVValidator.cpp
    polly/trunk/lib/Support/ScopHelper.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=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/BlockGenerators.h (original)
+++ polly/trunk/include/polly/CodeGen/BlockGenerators.h Tue May  7 02:30:56 2013
@@ -119,18 +119,21 @@ protected:
   ///
   /// @param L The loop that surrounded the instruction that referenced this
   ///          memory subscript in the original code.
-  std::vector<Value *> getMemoryAccessIndex(
-      __isl_keep isl_map *AccessRelation, Value *BaseAddress, ValueMapT &BBMap,
-      ValueMapT &GlobalMap, LoopToScevMapT &LTS, Loop *L);
+  std::vector<Value *> getMemoryAccessIndex(__isl_keep isl_map *AccessRelation,
+                                            Value *BaseAddress,
+                                            ValueMapT &BBMap,
+                                            ValueMapT &GlobalMap,
+                                            LoopToScevMapT &LTS, Loop *L);
 
   /// @brief Get the new operand address according to the changed access in
   ///        JSCOP file.
   ///
   /// @param L The loop that surrounded the instruction that used this operand
   ///          in the original code.
-  Value *getNewAccessOperand(
-      __isl_keep isl_map *NewAccessRelation, Value *BaseAddress,
-      ValueMapT &BBMap, ValueMapT &GlobalMap, LoopToScevMapT &LTS, Loop *L);
+  Value *getNewAccessOperand(__isl_keep isl_map *NewAccessRelation,
+                             Value *BaseAddress, ValueMapT &BBMap,
+                             ValueMapT &GlobalMap, LoopToScevMapT &LTS,
+                             Loop *L);
 
   /// @brief Generate the operand address
   Value *generateLocationAccessed(const Instruction *Inst, const Value *Pointer,
@@ -192,10 +195,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();
   }
@@ -274,8 +277,8 @@ private:
   /// %scalar 2 = load double* %p_2
   /// %vec_2 = insertelement <2 x double> %vec_1, double %scalar_1, i32 1
   ///
-  Value *
-  generateUnknownStrideLoad(const LoadInst *Load, VectorValueMapT &ScalarMaps);
+  Value *generateUnknownStrideLoad(const LoadInst *Load,
+                                   VectorValueMapT &ScalarMaps);
 
   void generateLoad(const LoadInst *Load, ValueMapT &VectorMap,
                     VectorValueMapT &ScalarMaps);

Modified: polly/trunk/include/polly/CodeGen/LoopGenerators.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/LoopGenerators.h?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/LoopGenerators.h (original)
+++ polly/trunk/include/polly/CodeGen/LoopGenerators.h Tue May  7 02:30:56 2013
@@ -66,10 +66,10 @@ public:
   ///                    instructions that form the actual loop body.
   ///
   /// @return Value*     The newly created induction variable for this loop.
-  Value *
-  createParallelLoop(Value *LowerBound, Value *UpperBound, Value *Stride,
-                     SetVector<Value *> &UsedValues, ValueToValueMapTy &VMap,
-                     BasicBlock::iterator *LoopBody);
+  Value *createParallelLoop(Value *LowerBound, Value *UpperBound, Value *Stride,
+                            SetVector<Value *> &UsedValues,
+                            ValueToValueMapTy &VMap,
+                            BasicBlock::iterator *LoopBody);
 
 private:
   IRBuilder<> &Builder;
@@ -103,9 +103,9 @@ private:
   /// @param SubFunction  The newly created SubFunction is returned here.
   ///
   /// @return Value*      The newly created induction variable.
-  Value *
-  createSubfunction(Value *Stride, Value *Struct, SetVector<Value *> UsedValues,
-                    ValueToValueMapTy &VMap, Function **SubFunction);
+  Value *createSubfunction(Value *Stride, Value *Struct,
+                           SetVector<Value *> UsedValues,
+                           ValueToValueMapTy &VMap, Function **SubFunction);
 
   /// @brief Create the definition of the OpenMP subfunction.
   Function *createSubfunctionDefinition();

Modified: polly/trunk/include/polly/CodeGen/PTXGenerator.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/PTXGenerator.h?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/PTXGenerator.h (original)
+++ polly/trunk/include/polly/CodeGen/PTXGenerator.h Tue May  7 02:30:56 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/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Tue May  7 02:30:56 2013
@@ -279,10 +279,11 @@ class ScopStmt {
   /// Build the statment.
   //@{
   __isl_give isl_set *buildConditionSet(const Comparison &Cmp);
-  __isl_give isl_set *addConditionsToDomain(
-      __isl_take isl_set *Domain, TempScop &tempScop, const Region &CurRegion);
-  __isl_give isl_set *
-  addLoopBoundsToDomain(__isl_take isl_set *Domain, TempScop &tempScop);
+  __isl_give isl_set *addConditionsToDomain(__isl_take isl_set *Domain,
+                                            TempScop &tempScop,
+                                            const Region &CurRegion);
+  __isl_give isl_set *addLoopBoundsToDomain(__isl_take isl_set *Domain,
+                                            TempScop &tempScop);
   __isl_give isl_set *buildDomain(TempScop &tempScop, const Region &CurRegion);
   void buildScattering(SmallVectorImpl<unsigned> &Scatter);
   void buildAccesses(TempScop &tempScop, const Region &CurRegion);

Modified: polly/trunk/include/polly/Support/SCEVValidator.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/SCEVValidator.h?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/SCEVValidator.h (original)
+++ polly/trunk/include/polly/Support/SCEVValidator.h Tue May  7 02:30:56 2013
@@ -28,12 +28,13 @@ 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);
-std::vector<const llvm::SCEV *> getParamsInAffineExpr(
-    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=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/Dependences.cpp (original)
+++ polly/trunk/lib/Analysis/Dependences.cpp Tue May  7 02:30:56 2013
@@ -38,9 +38,10 @@
 using namespace polly;
 using namespace llvm;
 
-static cl::opt<bool> LegalityCheckDisabled(
-    "disable-polly-legality", cl::desc("Disable polly legality check"),
-    cl::Hidden, cl::init(false));
+static cl::opt<bool>
+LegalityCheckDisabled("disable-polly-legality",
+                      cl::desc("Disable polly legality check"), cl::Hidden,
+                      cl::init(false));
 
 static cl::opt<bool>
 ValueDependences("polly-value-dependences",
@@ -50,9 +51,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=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Tue May  7 02:30:56 2013
@@ -79,9 +79,9 @@ IgnoreAliasing("polly-ignore-aliasing",
                cl::desc("Ignore possible aliasing of the array bases"),
                cl::Hidden, cl::init(false));
 
-static cl::opt<bool>
-ReportLevel("polly-report", cl::desc("Print information about Polly"),
-            cl::Hidden, cl::init(false));
+static cl::opt<bool> ReportLevel("polly-report",
+                                 cl::desc("Print information about Polly"),
+                                 cl::Hidden, cl::init(false));
 
 static cl::opt<bool>
 AllowNonAffine("polly-allow-nonaffine",
@@ -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();
 
@@ -315,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))
@@ -549,7 +549,7 @@ bool ScopDetection::isValidRegion(Detect
     return false;
   }
 
-  if (!R.getEnteringBlock()){
+  if (!R.getEnteringBlock()) {
     Loop *L = LI->getLoopFor(R.getEntry());
     if (L && !L->isLoopSimplifyForm())
       INVALID(SimpleLoop, "Loop not in simplify form is invalid!");

Modified: polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopGraphPrinter.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopGraphPrinter.cpp (original)
+++ polly/trunk/lib/Analysis/ScopGraphPrinter.cpp Tue May  7 02:30:56 2013
@@ -191,15 +191,15 @@ struct ScopOnlyPrinter : public DOTGraph
 };
 char ScopOnlyPrinter::ID = 0;
 
-static RegisterPass<ScopViewer>
-X("view-scops", "Polly - View Scops of function");
+static RegisterPass<ScopViewer> X("view-scops",
+                                  "Polly - View Scops of function");
 
 static RegisterPass<ScopOnlyViewer>
 Y("view-scops-only",
   "Polly - View Scops of function (with no function bodies)");
 
-static RegisterPass<ScopPrinter>
-M("dot-scops", "Polly - Print Scops of function");
+static RegisterPass<ScopPrinter> M("dot-scops",
+                                   "Polly - Print Scops of function");
 
 static RegisterPass<ScopOnlyPrinter>
 N("dot-scops-only",

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue May  7 02:30:56 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);
@@ -543,8 +543,9 @@ __isl_give isl_set *ScopStmt::addLoopBou
   return Domain;
 }
 
-__isl_give isl_set *ScopStmt::addConditionsToDomain(
-    __isl_take isl_set *Domain, TempScop &tempScop, const Region &CurRegion) {
+__isl_give isl_set *ScopStmt::addConditionsToDomain(__isl_take isl_set *Domain,
+                                                    TempScop &tempScop,
+                                                    const Region &CurRegion) {
   const Region *TopRegion = tempScop.getMaxRegion().getParent(),
                *CurrentRegion = &CurRegion;
   const BasicBlock *BranchingBB = BB;
@@ -566,8 +567,8 @@ __isl_give isl_set *ScopStmt::addConditi
   return Domain;
 }
 
-__isl_give isl_set *
-ScopStmt::buildDomain(TempScop &tempScop, const Region &CurRegion) {
+__isl_give isl_set *ScopStmt::buildDomain(TempScop &tempScop,
+                                          const Region &CurRegion) {
   isl_space *Space;
   isl_set *Domain;
   isl_id *Id;

Modified: polly/trunk/lib/Analysis/TempScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/TempScopInfo.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/TempScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/TempScopInfo.cpp Tue May  7 02:30:56 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=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Tue May  7 02:30:56 2013
@@ -37,9 +37,10 @@ Aligned("enable-polly-aligned", cl::desc
         cl::Hidden, cl::value_desc("OpenMP code generation enabled if true"),
         cl::init(false), cl::ZeroOrMore);
 
-static cl::opt<bool, true> SCEVCodegenF(
-    "polly-codegen-scev", cl::desc("Use SCEV based code generation."),
-    cl::Hidden, cl::location(SCEVCodegen), cl::init(false), cl::ZeroOrMore);
+static cl::opt<bool, true>
+SCEVCodegenF("polly-codegen-scev", cl::desc("Use SCEV based code generation."),
+             cl::Hidden, cl::location(SCEVCodegen), cl::init(false),
+             cl::ZeroOrMore);
 
 bool polly::SCEVCodegen;
 
@@ -284,9 +285,11 @@ Value *BlockGenerator::getNewAccessOpera
   return NewOperand;
 }
 
-Value *BlockGenerator::generateLocationAccessed(
-    const Instruction *Inst, const Value *Pointer, ValueMapT &BBMap,
-    ValueMapT &GlobalMap, LoopToScevMapT &LTS) {
+Value *BlockGenerator::generateLocationAccessed(const Instruction *Inst,
+                                                const Value *Pointer,
+                                                ValueMapT &BBMap,
+                                                ValueMapT &GlobalMap,
+                                                LoopToScevMapT &LTS) {
   MemoryAccess &Access = Statement.getAccessFor(Inst);
   isl_map *CurrentAccessRelation = Access.getAccessRelation();
   isl_map *NewAccessRelation = Access.getNewAccessRelation();
@@ -314,9 +317,10 @@ Loop *BlockGenerator::getLoopForInst(con
   return P->getAnalysis<LoopInfo>().getLoopFor(Inst->getParent());
 }
 
-Value *
-BlockGenerator::generateScalarLoad(const LoadInst *Load, ValueMapT &BBMap,
-                                   ValueMapT &GlobalMap, LoopToScevMapT &LTS) {
+Value *BlockGenerator::generateScalarLoad(const LoadInst *Load,
+                                          ValueMapT &BBMap,
+                                          ValueMapT &GlobalMap,
+                                          LoopToScevMapT &LTS) {
   const Value *Pointer = Load->getPointerOperand();
   const Instruction *Inst = dyn_cast<Instruction>(Load);
   Value *NewPointer =
@@ -326,9 +330,10 @@ BlockGenerator::generateScalarLoad(const
   return ScalarLoad;
 }
 
-Value *
-BlockGenerator::generateScalarStore(const StoreInst *Store, ValueMapT &BBMap,
-                                    ValueMapT &GlobalMap, LoopToScevMapT &LTS) {
+Value *BlockGenerator::generateScalarStore(const StoreInst *Store,
+                                           ValueMapT &BBMap,
+                                           ValueMapT &GlobalMap,
+                                           LoopToScevMapT &LTS) {
   const Value *Pointer = Store->getPointerOperand();
   Value *NewPointer =
       generateLocationAccessed(Store, Pointer, BBMap, GlobalMap, LTS);
@@ -338,9 +343,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())
@@ -377,19 +382,22 @@ void BlockGenerator::copyBB(ValueMapT &G
     copyInstruction(II, BBMap, GlobalMap, LTS);
 }
 
-VectorBlockGenerator::VectorBlockGenerator(
-    IRBuilder<> &B, VectorValueMapT &GlobalMaps,
-    std::vector<LoopToScevMapT> &VLTS, ScopStmt &Stmt,
-    __isl_keep isl_map *Schedule, Pass *P)
+VectorBlockGenerator::VectorBlockGenerator(IRBuilder<> &B,
+                                           VectorValueMapT &GlobalMaps,
+                                           std::vector<LoopToScevMapT> &VLTS,
+                                           ScopStmt &Stmt,
+                                           __isl_keep isl_map *Schedule,
+                                           Pass *P)
     : BlockGenerator(B, Stmt, P), GlobalMaps(GlobalMaps), VLTS(VLTS),
       Schedule(Schedule) {
   assert(GlobalMaps.size() > 1 && "Only one vector lane found");
   assert(Schedule && "No statement domain provided");
 }
 
-Value *
-VectorBlockGenerator::getVectorValue(const Value *Old, ValueMapT &VectorMap,
-                                     VectorValueMapT &ScalarMaps, Loop *L) {
+Value *VectorBlockGenerator::getVectorValue(const Value *Old,
+                                            ValueMapT &VectorMap,
+                                            VectorValueMapT &ScalarMaps,
+                                            Loop *L) {
   if (VectorMap.count(Old))
     return VectorMap[Old];
 
@@ -456,8 +464,9 @@ Value *VectorBlockGenerator::generateStr
   return VectorLoad;
 }
 
-Value *VectorBlockGenerator::generateUnknownStrideLoad(
-    const LoadInst *Load, VectorValueMapT &ScalarMaps) {
+Value *
+VectorBlockGenerator::generateUnknownStrideLoad(const LoadInst *Load,
+                                                VectorValueMapT &ScalarMaps) {
   int VectorWidth = getVectorWidth();
   const Value *Pointer = Load->getPointerOperand();
   VectorType *VectorType = VectorType::get(
@@ -477,8 +486,9 @@ Value *VectorBlockGenerator::generateUnk
   return Vector;
 }
 
-void VectorBlockGenerator::generateLoad(
-    const LoadInst *Load, ValueMapT &VectorMap, VectorValueMapT &ScalarMaps) {
+void VectorBlockGenerator::generateLoad(const LoadInst *Load,
+                                        ValueMapT &VectorMap,
+                                        VectorValueMapT &ScalarMaps) {
   if (PollyVectorizerChoice >= VECTORIZER_FIRST_NEED_GROUPED_UNROLL ||
       !VectorType::isValidElementType(Load->getType())) {
     for (int i = 0; i < getVectorWidth(); i++)
@@ -530,8 +540,9 @@ void VectorBlockGenerator::copyBinaryIns
   VectorMap[Inst] = NewInst;
 }
 
-void VectorBlockGenerator::copyStore(
-    const StoreInst *Store, ValueMapT &VectorMap, VectorValueMapT &ScalarMaps) {
+void VectorBlockGenerator::copyStore(const StoreInst *Store,
+                                     ValueMapT &VectorMap,
+                                     VectorValueMapT &ScalarMaps) {
   int VectorWidth = getVectorWidth();
 
   MemoryAccess &Access = Statement.getAccessFor(Store);

Modified: polly/trunk/lib/CodeGen/Cloog.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/Cloog.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/Cloog.cpp (original)
+++ polly/trunk/lib/CodeGen/Cloog.cpp Tue May  7 02:30:56 2013
@@ -299,9 +299,9 @@ void CloogExporter::getAnalysisUsage(Ana
   AU.addRequired<CloogInfo>();
 }
 
-static RegisterPass<CloogExporter>
-A("polly-export-cloog", "Polly - Export the Cloog input file"
-                        " (Writes a .cloog file for each Scop)");
+static RegisterPass<CloogExporter> A("polly-export-cloog",
+                                     "Polly - Export the Cloog input file"
+                                     " (Writes a .cloog file for each Scop)");
 
 llvm::Pass *polly::createCloogExporterPass() { return new CloogExporter(); }
 

Modified: polly/trunk/lib/CodeGen/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodeGeneration.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/CodeGeneration.cpp Tue May  7 02:30:56 2013
@@ -72,9 +72,10 @@ GPGPU("enable-polly-gpgpu", cl::desc("Ge
       cl::value_desc("GPGPU code generation enabled if true"), cl::init(false),
       cl::ZeroOrMore);
 
-static cl::opt<std::string> GPUTriple(
-    "polly-gpgpu-triple", cl::desc("Target triple for GPU code generation"),
-    cl::Hidden, cl::init(""));
+static cl::opt<std::string>
+GPUTriple("polly-gpgpu-triple",
+          cl::desc("Target triple for GPU code generation"), cl::Hidden,
+          cl::init(""));
 #endif /* GPU_CODEGEN */
 
 typedef DenseMap<const char *, Value *> CharMapT;
@@ -262,10 +263,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,
@@ -312,9 +313,10 @@ private:
   void codegenForGPGPU(const clast_for *F);
 
   /// @brief Get innermost for loop.
-  const clast_stmt *
-  getScheduleInfo(const clast_for *F, std::vector<int> &NumIters,
-                  unsigned &LoopDepth, unsigned &NonPLoopDepth);
+  const clast_stmt *getScheduleInfo(const clast_for *F,
+                                    std::vector<int> &NumIters,
+                                    unsigned &LoopDepth,
+                                    unsigned &NonPLoopDepth);
 #endif /* GPU_CODEGEN */
 
   /// @brief Check if a loop is parallel
@@ -368,9 +370,10 @@ void ClastStmtCodeGen::codegen(const cla
   ClastVars[a->LHS] = V;
 }
 
-void ClastStmtCodeGen::codegen(
-    const clast_assignment *A, ScopStmt *Stmt, unsigned Dim, int VectorDim,
-    std::vector<ValueMapT> *VectorVMap, std::vector<LoopToScevMapT> *VLTS) {
+void ClastStmtCodeGen::codegen(const clast_assignment *A, ScopStmt *Stmt,
+                               unsigned Dim, int VectorDim,
+                               std::vector<ValueMapT> *VectorVMap,
+                               std::vector<LoopToScevMapT> *VLTS) {
   Value *RHS;
 
   assert(!A->LHS && "Statement assignments do not have left hand side");
@@ -393,9 +396,10 @@ void ClastStmtCodeGen::codegen(
   }
 }
 
-void ClastStmtCodeGen::codegenSubstitutions(
-    const clast_stmt *Assignment, ScopStmt *Statement, int vectorDim,
-    std::vector<ValueMapT> *VectorVMap, std::vector<LoopToScevMapT> *VLTS) {
+void ClastStmtCodeGen::codegenSubstitutions(const clast_stmt *Assignment,
+                                            ScopStmt *Statement, int vectorDim,
+                                            std::vector<ValueMapT> *VectorVMap,
+                                            std::vector<LoopToScevMapT> *VLTS) {
   int Dimension = 0;
 
   while (Assignment) {
@@ -411,8 +415,8 @@ void ClastStmtCodeGen::codegenSubstituti
 // Takes the cloog specific domain and translates it into a map Statement ->
 // PartialSchedule, where the PartialSchedule contains all the dimensions that
 // have been code generated up to this point.
-static __isl_give isl_map *
-extractPartialSchedule(ScopStmt *Statement, isl_set *Domain) {
+static __isl_give isl_map *extractPartialSchedule(ScopStmt *Statement,
+                                                  isl_set *Domain) {
   isl_map *Schedule = Statement->getScattering();
   int ScheduledDimensions = isl_set_dim(Domain, isl_dim_set);
   int UnscheduledDimensions =
@@ -422,9 +426,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)
@@ -661,9 +665,10 @@ SetVector<Value *> ClastStmtCodeGen::get
   return Values;
 }
 
-const clast_stmt *ClastStmtCodeGen::getScheduleInfo(
-    const clast_for *F, std::vector<int> &NumIters, unsigned &LoopDepth,
-    unsigned &NonPLoopDepth) {
+const clast_stmt *ClastStmtCodeGen::getScheduleInfo(const clast_for *F,
+                                                    std::vector<int> &NumIters,
+                                                    unsigned &LoopDepth,
+                                                    unsigned &NonPLoopDepth) {
   clast_stmt *Stmt = (clast_stmt *)F;
   const clast_for *Result;
   bool NonParaFlag = false;
@@ -986,8 +991,8 @@ public:
   bool runOnScop(Scop &S) {
     ParallelLoops.clear();
 
-    assert(!S.getRegion().isTopLevelRegion()
-           && "Top level regions are not supported");
+    assert(!S.getRegion().isTopLevelRegion() &&
+           "Top level regions are not supported");
 
     simplifyRegion(&S, this);
 

Modified: polly/trunk/lib/CodeGen/IslAst.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslAst.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslAst.cpp (original)
+++ polly/trunk/lib/CodeGen/IslAst.cpp Tue May  7 02:30:56 2013
@@ -40,13 +40,13 @@
 using namespace llvm;
 using namespace polly;
 
-static cl::opt<bool>
-UseContext("polly-ast-use-context", cl::desc("Use context"), cl::Hidden,
-           cl::init(false), cl::ZeroOrMore);
-
-static cl::opt<bool>
-DetectParallel("polly-ast-detect-parallel", cl::desc("Detect parallelism"),
-               cl::Hidden, cl::init(false), cl::ZeroOrMore);
+static cl::opt<bool> UseContext("polly-ast-use-context",
+                                cl::desc("Use context"), cl::Hidden,
+                                cl::init(false), cl::ZeroOrMore);
+
+static cl::opt<bool> DetectParallel("polly-ast-detect-parallel",
+                                    cl::desc("Detect parallelism"), cl::Hidden,
+                                    cl::init(false), cl::ZeroOrMore);
 
 namespace polly {
 class IslAst {
@@ -78,9 +78,10 @@ struct AstBuildUserInfo {
 };
 
 // Print a loop annotated with OpenMP or vector pragmas.
-static __isl_give isl_printer *printParallelFor(
-    __isl_keep isl_ast_node *Node, __isl_take isl_printer *Printer,
-    __isl_take isl_ast_print_options *PrintOptions, IslAstUser *Info) {
+static __isl_give isl_printer *
+printParallelFor(__isl_keep isl_ast_node *Node, __isl_take isl_printer *Printer,
+                 __isl_take isl_ast_print_options *PrintOptions,
+                 IslAstUser *Info) {
   if (Info) {
     if (Info->IsInnermostParallel) {
       Printer = isl_printer_start_line(Printer);
@@ -143,8 +144,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;
@@ -201,8 +202,8 @@ static void markOpenmpParallel(__isl_kee
 //
 // - Detection of openmp parallel loops
 //
-static __isl_give isl_id *
-astBuildBeforeFor(__isl_keep isl_ast_build *Build, void *User) {
+static __isl_give isl_id *astBuildBeforeFor(__isl_keep isl_ast_build *Build,
+                                            void *User) {
   struct AstBuildUserInfo *BuildInfo = (struct AstBuildUserInfo *)User;
   struct IslAstUser *NodeInfo = allocateIslAstUser();
   isl_id *Id = isl_id_alloc(isl_ast_build_get_ctx(Build), "", NodeInfo);
@@ -283,9 +284,9 @@ astBuildAfterFor(__isl_take isl_ast_node
   return Node;
 }
 
-static __isl_give isl_ast_node *
-AtEachDomain(__isl_take isl_ast_node *Node, __isl_keep isl_ast_build *Context,
-             void *User) {
+static __isl_give isl_ast_node *AtEachDomain(__isl_take isl_ast_node *Node,
+                                             __isl_keep isl_ast_build *Context,
+                                             void *User) {
   struct IslAstUser *Info = NULL;
   isl_id *Id = isl_ast_node_get_annotation(Node);
 

Modified: polly/trunk/lib/CodeGen/IslCodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslCodeGeneration.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslCodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/IslCodeGeneration.cpp Tue May  7 02:30:56 2013
@@ -576,8 +576,8 @@ private:
   //    of loop iterations.
   //
   // 3. With the existing code, upper bounds have been easier to implement.
-  __isl_give isl_ast_expr *
-  getUpperBound(__isl_keep isl_ast_node *For, CmpInst::Predicate &Predicate);
+  __isl_give isl_ast_expr *getUpperBound(__isl_keep isl_ast_node *For,
+                                         CmpInst::Predicate &Predicate);
 
   unsigned getNumberOfIterations(__isl_keep isl_ast_node *For);
 
@@ -587,20 +587,24 @@ private:
   void createSubstitutions(__isl_take isl_pw_multi_aff *PMA,
                            __isl_take isl_ast_build *Context, ScopStmt *Stmt,
                            ValueMapT &VMap, LoopToScevMapT &LTS);
-  void createSubstitutionsVector(
-      __isl_take isl_pw_multi_aff *PMA, __isl_take isl_ast_build *Context,
-      ScopStmt *Stmt, VectorValueMapT &VMap, std::vector<LoopToScevMapT> &VLTS,
-      std::vector<Value *> &IVS, __isl_take isl_id *IteratorID);
+  void createSubstitutionsVector(__isl_take isl_pw_multi_aff *PMA,
+                                 __isl_take isl_ast_build *Context,
+                                 ScopStmt *Stmt, VectorValueMapT &VMap,
+                                 std::vector<LoopToScevMapT> &VLTS,
+                                 std::vector<Value *> &IVS,
+                                 __isl_take isl_id *IteratorID);
   void createIf(__isl_take isl_ast_node *If);
-  void createUserVector(
-      __isl_take isl_ast_node *User, std::vector<Value *> &IVS,
-      __isl_take isl_id *IteratorID, __isl_take isl_union_map *Schedule);
+  void createUserVector(__isl_take isl_ast_node *User,
+                        std::vector<Value *> &IVS,
+                        __isl_take isl_id *IteratorID,
+                        __isl_take isl_union_map *Schedule);
   void createUser(__isl_take isl_ast_node *User);
   void createBlock(__isl_take isl_ast_node *Block);
 };
 
-__isl_give isl_ast_expr *IslNodeBuilder::getUpperBound(
-    __isl_keep isl_ast_node *For, ICmpInst::Predicate &Predicate) {
+__isl_give isl_ast_expr *
+IslNodeBuilder::getUpperBound(__isl_keep isl_ast_node *For,
+                              ICmpInst::Predicate &Predicate) {
   isl_id *UBID, *IteratorID;
   isl_ast_expr *Cond, *Iterator, *UB, *Arg0;
   isl_ast_op_type Type;
@@ -669,9 +673,10 @@ unsigned IslNodeBuilder::getNumberOfIter
   return NumberOfIterations + 1;
 }
 
-void IslNodeBuilder::createUserVector(
-    __isl_take isl_ast_node *User, std::vector<Value *> &IVS,
-    __isl_take isl_id *IteratorID, __isl_take isl_union_map *Schedule) {
+void IslNodeBuilder::createUserVector(__isl_take isl_ast_node *User,
+                                      std::vector<Value *> &IVS,
+                                      __isl_take isl_id *IteratorID,
+                                      __isl_take isl_union_map *Schedule) {
   isl_id *Annotation = isl_ast_node_get_annotation(User);
   assert(Annotation && "Vector user statement is not annotated");
 
@@ -698,8 +703,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);
@@ -887,9 +892,10 @@ void IslNodeBuilder::createIf(__isl_take
   isl_ast_node_free(If);
 }
 
-void IslNodeBuilder::createSubstitutions(
-    __isl_take isl_pw_multi_aff *PMA, __isl_take isl_ast_build *Context,
-    ScopStmt *Stmt, ValueMapT &VMap, LoopToScevMapT &LTS) {
+void IslNodeBuilder::createSubstitutions(__isl_take isl_pw_multi_aff *PMA,
+                                         __isl_take isl_ast_build *Context,
+                                         ScopStmt *Stmt, ValueMapT &VMap,
+                                         LoopToScevMapT &LTS) {
   for (unsigned i = 0; i < isl_pw_multi_aff_dim(PMA, isl_dim_out); ++i) {
     isl_pw_aff *Aff;
     isl_ast_expr *Expr;
@@ -1026,8 +1032,8 @@ public:
   bool runOnScop(Scop &S) {
     IslAstInfo &AstInfo = getAnalysis<IslAstInfo>();
 
-    assert(!S.getRegion().isTopLevelRegion()
-           && "Top level regions are not supported");
+    assert(!S.getRegion().isTopLevelRegion() &&
+           "Top level regions are not supported");
 
     simplifyRegion(&S, this);
 

Modified: polly/trunk/lib/CodeGen/LoopGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/LoopGenerators.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/LoopGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/LoopGenerators.cpp Tue May  7 02:30:56 2013
@@ -100,8 +100,8 @@ void OMPGenerator::createCallParallelLoo
   Builder.CreateCall(F, Args);
 }
 
-Value *
-OMPGenerator::createCallLoopNext(Value *LowerBoundPtr, Value *UpperBoundPtr) {
+Value *OMPGenerator::createCallLoopNext(Value *LowerBoundPtr,
+                                        Value *UpperBoundPtr) {
   Module *M = getModule();
   const char *Name = "GOMP_loop_runtime_next";
   Function *F = M->getFunction(Name);
@@ -198,8 +198,9 @@ Value *OMPGenerator::loadValuesIntoStruc
   return Struct;
 }
 
-void OMPGenerator::extractValuesFromStruct(
-    SetVector<Value *> OldValues, Value *Struct, ValueToValueMapTy &Map) {
+void OMPGenerator::extractValuesFromStruct(SetVector<Value *> OldValues,
+                                           Value *Struct,
+                                           ValueToValueMapTy &Map) {
   for (unsigned i = 0; i < OldValues.size(); i++) {
     Value *Address = Builder.CreateStructGEP(Struct, i);
     Value *NewValue = Builder.CreateLoad(Address);
@@ -207,9 +208,10 @@ void OMPGenerator::extractValuesFromStru
   }
 }
 
-Value *OMPGenerator::createSubfunction(
-    Value *Stride, Value *StructData, SetVector<Value *> Data,
-    ValueToValueMapTy &Map, Function **SubFunction) {
+Value *OMPGenerator::createSubfunction(Value *Stride, Value *StructData,
+                                       SetVector<Value *> Data,
+                                       ValueToValueMapTy &Map,
+                                       Function **SubFunction) {
   Function *FN = createSubfunctionDefinition();
 
   BasicBlock *PrevBB, *HeaderBB, *ExitBB, *CheckNextBB, *LoadIVBoundsBB,
@@ -280,10 +282,11 @@ Value *OMPGenerator::createSubfunction(
   return IV;
 }
 
-Value *OMPGenerator::createParallelLoop(
-    Value *LowerBound, Value *UpperBound, Value *Stride,
-    SetVector<Value *> &Values, ValueToValueMapTy &Map,
-    BasicBlock::iterator *LoopBody) {
+Value *OMPGenerator::createParallelLoop(Value *LowerBound, Value *UpperBound,
+                                        Value *Stride,
+                                        SetVector<Value *> &Values,
+                                        ValueToValueMapTy &Map,
+                                        BasicBlock::iterator *LoopBody) {
   Value *Struct, *IV, *SubfunctionParam, *NumberOfThreads;
   Function *SubFunction;
 

Modified: polly/trunk/lib/CodeGen/PTXGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PTXGenerator.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PTXGenerator.cpp (original)
+++ polly/trunk/lib/CodeGen/PTXGenerator.cpp Tue May  7 02:30:56 2013
@@ -67,9 +67,10 @@ Function *PTXGenerator::createSubfunctio
   return FN;
 }
 
-void PTXGenerator::createSubfunction(
-    SetVector<Value *> &UsedValues, SetVector<Value *> &OriginalIVS,
-    PTXGenerator::ValueToValueMapTy &VMap, Function **SubFunction) {
+void PTXGenerator::createSubfunction(SetVector<Value *> &UsedValues,
+                                     SetVector<Value *> &OriginalIVS,
+                                     PTXGenerator::ValueToValueMapTy &VMap,
+                                     Function **SubFunction) {
   Function *FN = createSubfunctionDefinition(UsedValues.size());
   Module *M = getModule();
   LLVMContext &Context = FN->getContext();
@@ -201,9 +202,10 @@ void PTXGenerator::createSubfunction(
   *SubFunction = FN;
 }
 
-void PTXGenerator::startGeneration(
-    SetVector<Value *> &UsedValues, SetVector<Value *> &OriginalIVS,
-    ValueToValueMapTy &VMap, BasicBlock::iterator *LoopBody) {
+void PTXGenerator::startGeneration(SetVector<Value *> &UsedValues,
+                                   SetVector<Value *> &OriginalIVS,
+                                   ValueToValueMapTy &VMap,
+                                   BasicBlock::iterator *LoopBody) {
   Function *SubFunction;
   BasicBlock::iterator PrevInsertPoint = Builder.GetInsertPoint();
   createSubfunction(UsedValues, OriginalIVS, VMap, &SubFunction);
@@ -316,8 +318,9 @@ void PTXGenerator::createCallGetPTXKerne
   Builder.CreateCall3(F, Entry, Module, Kernel);
 }
 
-void PTXGenerator::createCallAllocateMemoryForHostAndDevice(
-    Value *HostData, Value *DeviceData, Value *Size) {
+void PTXGenerator::createCallAllocateMemoryForHostAndDevice(Value *HostData,
+                                                            Value *DeviceData,
+                                                            Value *Size) {
   const char *Name = "polly_allocateMemoryForHostAndDevice";
   Module *M = getModule();
   Function *F = M->getFunction(Name);
@@ -336,8 +339,9 @@ void PTXGenerator::createCallAllocateMem
   Builder.CreateCall3(F, HostData, DeviceData, Size);
 }
 
-void PTXGenerator::createCallCopyFromHostToDevice(
-    Value *DeviceData, Value *HostData, Value *Size) {
+void PTXGenerator::createCallCopyFromHostToDevice(Value *DeviceData,
+                                                  Value *HostData,
+                                                  Value *Size) {
   const char *Name = "polly_copyFromHostToDevice";
   Module *M = getModule();
   Function *F = M->getFunction(Name);
@@ -356,8 +360,9 @@ void PTXGenerator::createCallCopyFromHos
   Builder.CreateCall3(F, DeviceData, HostData, Size);
 }
 
-void PTXGenerator::createCallCopyFromDeviceToHost(
-    Value *HostData, Value *DeviceData, Value *Size) {
+void PTXGenerator::createCallCopyFromDeviceToHost(Value *HostData,
+                                                  Value *DeviceData,
+                                                  Value *Size) {
   const char *Name = "polly_copyFromDeviceToHost";
   Module *M = getModule();
   Function *F = M->getFunction(Name);
@@ -376,8 +381,10 @@ void PTXGenerator::createCallCopyFromDev
   Builder.CreateCall3(F, HostData, DeviceData, Size);
 }
 
-void PTXGenerator::createCallSetKernelParameters(
-    Value *Kernel, Value *BlockWidth, Value *BlockHeight, Value *DeviceData) {
+void PTXGenerator::createCallSetKernelParameters(Value *Kernel,
+                                                 Value *BlockWidth,
+                                                 Value *BlockHeight,
+                                                 Value *DeviceData) {
   const char *Name = "polly_setKernelParameters";
   Module *M = getModule();
   Function *F = M->getFunction(Name);
@@ -436,8 +443,9 @@ void PTXGenerator::createCallStartTimerB
   Builder.CreateCall2(F, StartEvent, StopEvent);
 }
 
-void PTXGenerator::createCallStopTimerByCudaEvent(
-    Value *StartEvent, Value *StopEvent, Value *Timer) {
+void PTXGenerator::createCallStopTimerByCudaEvent(Value *StartEvent,
+                                                  Value *StopEvent,
+                                                  Value *Timer) {
   const char *Name = "polly_stopTimerByCudaEvent";
   Module *M = getModule();
   Function *F = M->getFunction(Name);
@@ -456,9 +464,11 @@ void PTXGenerator::createCallStopTimerBy
   Builder.CreateCall3(F, StartEvent, StopEvent, Timer);
 }
 
-void PTXGenerator::createCallCleanupGPGPUResources(
-    Value *HostData, Value *DeviceData, Value *Module, Value *Context,
-    Value *Kernel) {
+void PTXGenerator::createCallCleanupGPGPUResources(Value *HostData,
+                                                   Value *DeviceData,
+                                                   Value *Module,
+                                                   Value *Context,
+                                                   Value *Kernel) {
   const char *Name = "polly_cleanupGPGPUResources";
   llvm::Module *M = getModule();
   Function *F = M->getFunction(Name);

Modified: polly/trunk/lib/Exchange/JSONExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/JSONExporter.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/JSONExporter.cpp (original)
+++ polly/trunk/lib/Exchange/JSONExporter.cpp Tue May  7 02:30:56 2013
@@ -42,15 +42,17 @@ using namespace polly;
 STATISTIC(NewAccessMapFound, "Number of updated access functions");
 
 namespace {
-static cl::opt<std::string> ImportDir(
-    "polly-import-jscop-dir",
-    cl::desc("The directory to import the .jscop files from."), cl::Hidden,
-    cl::value_desc("Directory path"), cl::ValueRequired, cl::init("."));
+static cl::opt<std::string>
+ImportDir("polly-import-jscop-dir",
+          cl::desc("The directory to import the .jscop files from."),
+          cl::Hidden, cl::value_desc("Directory path"), cl::ValueRequired,
+          cl::init("."));
 
-static cl::opt<std::string> ImportPostfix(
-    "polly-import-jscop-postfix",
-    cl::desc("Postfix to append to the import .jsop files."), cl::Hidden,
-    cl::value_desc("File postfix"), cl::ValueRequired, cl::init(""));
+static cl::opt<std::string>
+ImportPostfix("polly-import-jscop-postfix",
+              cl::desc("Postfix to append to the import .jsop files."),
+              cl::Hidden, cl::value_desc("File postfix"), cl::ValueRequired,
+              cl::init(""));
 
 struct JSONExporter : public ScopPass {
   static char ID;

Modified: polly/trunk/lib/Exchange/OpenScopExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/OpenScopExporter.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/OpenScopExporter.cpp (original)
+++ polly/trunk/lib/Exchange/OpenScopExporter.cpp Tue May  7 02:30:56 2013
@@ -571,9 +571,9 @@ void ScopExporter::getAnalysisUsage(Anal
   ScopPass::getAnalysisUsage(AU);
 }
 
-static RegisterPass<ScopExporter>
-A("polly-export", "Polly - Export Scops with OpenScop library"
-                  " (Writes a .scop file for each Scop)");
+static RegisterPass<ScopExporter> A("polly-export",
+                                    "Polly - Export Scops with OpenScop library"
+                                    " (Writes a .scop file for each Scop)");
 
 Pass *polly::createScopExporterPass() { return new ScopExporter(); }
 

Modified: polly/trunk/lib/Exchange/OpenScopImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/OpenScopImporter.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/OpenScopImporter.cpp (original)
+++ polly/trunk/lib/Exchange/OpenScopImporter.cpp Tue May  7 02:30:56 2013
@@ -38,10 +38,11 @@ static cl::opt<std::string>
 ImportDir("polly-import-dir",
           cl::desc("The directory to import the .scop files from."), cl::Hidden,
           cl::value_desc("Directory path"), cl::ValueRequired, cl::init("."));
-static cl::opt<std::string> ImportPostfix(
-    "polly-import-postfix",
-    cl::desc("Postfix to append to the import .scop files."), cl::Hidden,
-    cl::value_desc("File postfix"), cl::ValueRequired, cl::init(""));
+static cl::opt<std::string>
+ImportPostfix("polly-import-postfix",
+              cl::desc("Postfix to append to the import .scop files."),
+              cl::Hidden, cl::value_desc("File postfix"), cl::ValueRequired,
+              cl::init(""));
 
 struct ScopImporter : public ScopPass {
   static char ID;
@@ -237,9 +238,9 @@ void ScopImporter::getAnalysisUsage(Anal
   AU.addRequired<Dependences>();
 }
 
-static RegisterPass<ScopImporter>
-A("polly-import", "Polly - Import Scops with OpenScop library"
-                  " (Reads a .scop file for each Scop)");
+static RegisterPass<ScopImporter> A("polly-import",
+                                    "Polly - Import Scops with OpenScop library"
+                                    " (Reads a .scop file for each Scop)");
 
 Pass *polly::createScopImporterPass() { return new ScopImporter(); }
 

Modified: polly/trunk/lib/Exchange/ScopLib.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/ScopLib.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/ScopLib.cpp (original)
+++ polly/trunk/lib/Exchange/ScopLib.cpp Tue May  7 02:30:56 2013
@@ -492,8 +492,8 @@ ScopLib::~ScopLib() {
 /// @param Space An isl space object, describing how to spilt the dimensions.
 ///
 /// @return An isl constraint representing this integer array.
-isl_constraint *
-constraintFromMatrixRow(isl_int *row, __isl_take isl_space *Space) {
+isl_constraint *constraintFromMatrixRow(isl_int *row,
+                                        __isl_take isl_space *Space) {
   isl_constraint *c;
 
   unsigned NbIn = isl_space_dim(Space, isl_dim_in);
@@ -563,8 +563,8 @@ isl_map *mapFromMatrix(scoplib_matrix_p
 /// @param Space An isl space object, describing how to spilt the dimensions.
 ///
 /// @return An isl constraint representing this integer array.
-isl_constraint *
-constraintFromMatrixRowFull(isl_int *row, __isl_take isl_space *Space) {
+isl_constraint *constraintFromMatrixRowFull(isl_int *row,
+                                            __isl_take isl_space *Space) {
   isl_constraint *c;
 
   unsigned NbOut = isl_space_dim(Space, isl_dim_out);
@@ -621,8 +621,8 @@ isl_map *mapFromMatrix(scoplib_matrix_p
 /// @param PollyStmt The statement to create the scattering for.
 ///
 /// @return An isl_map describing the scattering.
-isl_map *
-scatteringForStmt(scoplib_matrix_p m, ScopStmt *PollyStmt, int scatteringDims) {
+isl_map *scatteringForStmt(scoplib_matrix_p m, ScopStmt *PollyStmt,
+                           int scatteringDims) {
 
   unsigned NbParam = PollyStmt->getNumParams();
   unsigned NbIterators = PollyStmt->getNumIterators();

Modified: polly/trunk/lib/Exchange/ScopLibExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/ScopLibExporter.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/ScopLibExporter.cpp (original)
+++ polly/trunk/lib/Exchange/ScopLibExporter.cpp Tue May  7 02:30:56 2013
@@ -30,10 +30,11 @@ using namespace llvm;
 using namespace polly;
 
 namespace {
-static cl::opt<std::string> ExportDir(
-    "polly-export-scoplib-dir",
-    cl::desc("The directory to export the .scoplib files to."), cl::Hidden,
-    cl::value_desc("Directory path"), cl::ValueRequired, cl::init("."));
+static cl::opt<std::string>
+ExportDir("polly-export-scoplib-dir",
+          cl::desc("The directory to export the .scoplib files to."),
+          cl::Hidden, cl::value_desc("Directory path"), cl::ValueRequired,
+          cl::init("."));
 
 class ScopLibExporter : public ScopPass {
   Scop *S;

Modified: polly/trunk/lib/Exchange/ScopLibImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/ScopLibImporter.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/ScopLibImporter.cpp (original)
+++ polly/trunk/lib/Exchange/ScopLibImporter.cpp Tue May  7 02:30:56 2013
@@ -32,14 +32,16 @@ using namespace llvm;
 using namespace polly;
 
 namespace {
-static cl::opt<std::string> ImportDir(
-    "polly-import-scoplib-dir",
-    cl::desc("The directory to import the .scoplib files from."), cl::Hidden,
-    cl::value_desc("Directory path"), cl::ValueRequired, cl::init("."));
-static cl::opt<std::string> ImportPostfix(
-    "polly-import-scoplib-postfix",
-    cl::desc("Postfix to append to the import .scoplib files."), cl::Hidden,
-    cl::value_desc("File postfix"), cl::ValueRequired, cl::init(""));
+static cl::opt<std::string>
+ImportDir("polly-import-scoplib-dir",
+          cl::desc("The directory to import the .scoplib files from."),
+          cl::Hidden, cl::value_desc("Directory path"), cl::ValueRequired,
+          cl::init("."));
+static cl::opt<std::string>
+ImportPostfix("polly-import-scoplib-postfix",
+              cl::desc("Postfix to append to the import .scoplib files."),
+              cl::Hidden, cl::value_desc("File postfix"), cl::ValueRequired,
+              cl::init(""));
 
 struct ScopLibImporter : public RegionPass {
   static char ID;

Modified: polly/trunk/lib/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/IndVarSimplify.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/IndVarSimplify.cpp (original)
+++ polly/trunk/lib/IndVarSimplify.cpp Tue May  7 02:30:56 2013
@@ -181,8 +181,8 @@ bool PollyIndVarSimplify::isValidRewrite
 /// before the user. SCEVExpander or LICM will hoist loop invariants out of the
 /// loop. For PHI nodes, there may be multiple uses, so compute the nearest
 /// common dominator for the incoming blocks.
-static Instruction *
-getInsertPointForUses(Instruction *User, Value *Def, DominatorTree *DT) {
+static Instruction *getInsertPointForUses(Instruction *User, Value *Def,
+                                          DominatorTree *DT) {
   PHINode *PHI = dyn_cast<PHINode>(User);
   if (!PHI)
     return User;
@@ -492,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));
 
@@ -645,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.
   //
@@ -834,8 +834,8 @@ public:
   PHINode *CreateWideIV(SCEVExpander &Rewriter);
 
 protected:
-  Value *
-  getExtend(Value *NarrowOper, Type *WideType, bool IsSigned, Instruction *Use);
+  Value *getExtend(Value *NarrowOper, Type *WideType, bool IsSigned,
+                   Instruction *Use);
 
   Instruction *CloneIVUser(NarrowIVDefUse DU);
 
@@ -1462,9 +1462,9 @@ static bool AlmostDeadIV(PHINode *Phi, B
 /// FIXME: Accept non-unit stride as long as SCEV can reduce BECount * Stride.
 /// This is difficult in general for SCEV because of potential overflow. But we
 /// could at least handle constant BECounts.
-static PHINode *
-FindLoopCounter(Loop *L, const SCEV *BECount, ScalarEvolution *SE,
-                DominatorTree *DT, const DataLayout *TD) {
+static PHINode *FindLoopCounter(Loop *L, const SCEV *BECount,
+                                ScalarEvolution *SE, DominatorTree *DT,
+                                const DataLayout *TD) {
   uint64_t BCWidth = SE->getTypeSizeInBits(BECount->getType());
 
   Value *Cond =

Modified: polly/trunk/lib/IndependentBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/IndependentBlocks.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/IndependentBlocks.cpp (original)
+++ polly/trunk/lib/IndependentBlocks.cpp Tue May  7 02:30:56 2013
@@ -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))
@@ -295,8 +295,9 @@ bool IndependentBlocks::isEscapeUse(cons
   return !R->contains(cast<Instruction>(Use));
 }
 
-bool IndependentBlocks::isEscapeOperand(
-    const Value *Operand, const BasicBlock *CurBB, const Region *R) const {
+bool IndependentBlocks::isEscapeOperand(const Value *Operand,
+                                        const BasicBlock *CurBB,
+                                        const Region *R) const {
   const Instruction *OpInst = dyn_cast<Instruction>(Operand);
 
   // Non-instruction operand will never escape.
@@ -363,8 +364,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 +419,8 @@ IndependentBlocks::translateScalarToArra
   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 +435,8 @@ IndependentBlocks::translateScalarToArra
   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/Pocc.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Pocc.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Pocc.cpp (original)
+++ polly/trunk/lib/Pocc.cpp Tue May  7 02:30:56 2013
@@ -42,9 +42,9 @@
 using namespace llvm;
 using namespace polly;
 
-static cl::opt<std::string>
-PlutoFuse("pluto-fuse", cl::desc(""), cl::Hidden,
-          cl::value_desc("Set fuse mode of Pluto"), cl::init("maxfuse"));
+static cl::opt<std::string> PlutoFuse("pluto-fuse", cl::desc(""), cl::Hidden,
+                                      cl::value_desc("Set fuse mode of Pluto"),
+                                      cl::init("maxfuse"));
 
 namespace {
 

Modified: polly/trunk/lib/RegisterPasses.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/RegisterPasses.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/RegisterPasses.cpp (original)
+++ polly/trunk/lib/RegisterPasses.cpp Tue May  7 02:30:56 2013
@@ -115,9 +115,9 @@ ExportJScop("polly-export",
             cl::desc("Export the polyhedral description of the detected Scops"),
             cl::Hidden, cl::init(false), cl::ZeroOrMore);
 
-static cl::opt<bool>
-DeadCodeElim("polly-run-dce", cl::desc("Run the dead code elimination"),
-             cl::Hidden, cl::init(false), cl::ZeroOrMore);
+static cl::opt<bool> DeadCodeElim("polly-run-dce",
+                                  cl::desc("Run the dead code elimination"),
+                                  cl::Hidden, cl::init(false), cl::ZeroOrMore);
 
 static cl::opt<bool>
 PollyViewer("polly-show", cl::desc("Enable the Polly DOT viewer in -O3"),
@@ -128,9 +128,10 @@ static cl::opt<bool> PollyOnlyViewer(
     cl::desc("Enable the Polly DOT viewer in -O3 (no BB content)"), cl::Hidden,
     cl::value_desc("Run the Polly DOT viewer at -O3 (no BB content"),
     cl::init(false));
-static cl::opt<bool> PollyPrinter(
-    "polly-dot", cl::desc("Enable the Polly DOT printer in -O3"), cl::Hidden,
-    cl::value_desc("Run the Polly DOT printer at -O3"), cl::init(false));
+static cl::opt<bool>
+PollyPrinter("polly-dot", cl::desc("Enable the Polly DOT printer in -O3"),
+             cl::Hidden, cl::value_desc("Run the Polly DOT printer at -O3"),
+             cl::init(false));
 static cl::opt<bool> PollyOnlyPrinter(
     "polly-dot-only",
     cl::desc("Enable the Polly DOT printer in -O3 (no BB content)"), cl::Hidden,
@@ -298,8 +299,9 @@ static void registerPollyPasses(llvm::Pa
     PM.add(llvm::createCFGPrinterPass());
 }
 
-static void registerPollyEarlyAsPossiblePasses(
-    const llvm::PassManagerBuilder &Builder, llvm::PassManagerBase &PM) {
+static void
+registerPollyEarlyAsPossiblePasses(const llvm::PassManagerBuilder &Builder,
+                                   llvm::PassManagerBase &PM) {
 
   if (Builder.OptLevel == 0)
     return;

Modified: polly/trunk/lib/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/ScheduleOptimizer.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/ScheduleOptimizer.cpp Tue May  7 02:30:56 2013
@@ -40,9 +40,10 @@ using namespace llvm;
 using namespace polly;
 
 namespace polly { bool DisablePollyTiling; }
-static cl::opt<bool, true> DisableTiling(
-    "polly-no-tiling", cl::desc("Disable tiling in the scheduler"), cl::Hidden,
-    cl::location(polly::DisablePollyTiling), cl::init(false));
+static cl::opt<bool, true>
+DisableTiling("polly-no-tiling", cl::desc("Disable tiling in the scheduler"),
+              cl::Hidden, cl::location(polly::DisablePollyTiling),
+              cl::init(false));
 
 static cl::opt<std::string>
 OptimizeDeps("polly-opt-optimize-only",
@@ -64,13 +65,15 @@ MaxCoefficient("polly-opt-max-coefficien
                cl::desc("The maximal coefficient allowed (-1 is unlimited)"),
                cl::Hidden, cl::init(20));
 
-static cl::opt<std::string> FusionStrategy(
-    "polly-opt-fusion", cl::desc("The fusion strategy to choose (min/max)"),
-    cl::Hidden, cl::init("min"));
-
-static cl::opt<std::string> MaximizeBandDepth(
-    "polly-opt-maximize-bands", cl::desc("Maximize the band depth (yes/no)"),
-    cl::Hidden, cl::init("yes"));
+static cl::opt<std::string>
+FusionStrategy("polly-opt-fusion",
+               cl::desc("The fusion strategy to choose (min/max)"), cl::Hidden,
+               cl::init("min"));
+
+static cl::opt<std::string>
+MaximizeBandDepth("polly-opt-maximize-bands",
+                  cl::desc("Maximize the band depth (yes/no)"), cl::Hidden,
+                  cl::init("yes"));
 
 namespace {
 
@@ -211,8 +214,10 @@ void IslScheduleOptimizer::extendScatter
   }
 }
 
-isl_basic_map *IslScheduleOptimizer::getTileMap(
-    isl_ctx *ctx, int scheduleDimensions, isl_space *SpaceModel, int tileSize) {
+isl_basic_map *IslScheduleOptimizer::getTileMap(isl_ctx *ctx,
+                                                int scheduleDimensions,
+                                                isl_space *SpaceModel,
+                                                int tileSize) {
   // We construct
   //
   // tileMap := [p0] -> {[s0, s1] -> [t0, t1, p0, p1, a0, a1]:
@@ -271,8 +276,8 @@ isl_basic_map *IslScheduleOptimizer::get
   return tileMap;
 }
 
-isl_union_map *
-IslScheduleOptimizer::getScheduleForBand(isl_band *Band, int *Dimensions) {
+isl_union_map *IslScheduleOptimizer::getScheduleForBand(isl_band *Band,
+                                                        int *Dimensions) {
   isl_union_map *PartialSchedule;
   isl_ctx *ctx;
   isl_space *Space;
@@ -300,8 +305,9 @@ IslScheduleOptimizer::getScheduleForBand
   return isl_union_map_apply_range(PartialSchedule, TileUMap);
 }
 
-isl_map *IslScheduleOptimizer::getPrevectorMap(
-    isl_ctx *ctx, int DimToVectorize, int ScheduleDimensions, int VectorWidth) {
+isl_map *IslScheduleOptimizer::getPrevectorMap(isl_ctx *ctx, int DimToVectorize,
+                                               int ScheduleDimensions,
+                                               int VectorWidth) {
   isl_space *Space;
   isl_local_space *LocalSpace, *LocalSpaceRange;
   isl_set *Modulo;

Modified: polly/trunk/lib/Support/GICHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/GICHelper.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Support/GICHelper.cpp (original)
+++ polly/trunk/lib/Support/GICHelper.cpp Tue May  7 02:30:56 2013
@@ -63,9 +63,9 @@ APInt polly::APInt_from_MPZ(const mpz_t
 }
 
 template <typename ISLTy, typename ISL_CTX_GETTER, typename ISL_PRINTER>
-static inline std::string
-stringFromIslObjInternal(__isl_keep ISLTy *isl_obj,
-                         ISL_CTX_GETTER ctx_getter_fn, ISL_PRINTER printer_fn) {
+static inline std::string stringFromIslObjInternal(__isl_keep ISLTy *isl_obj,
+                                                   ISL_CTX_GETTER ctx_getter_fn,
+                                                   ISL_PRINTER printer_fn) {
   isl_ctx *ctx = ctx_getter_fn(isl_obj);
   isl_printer *p = isl_printer_to_str(ctx);
   printer_fn(p, isl_obj);

Modified: polly/trunk/lib/Support/SCEVValidator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/SCEVValidator.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Support/SCEVValidator.cpp (original)
+++ polly/trunk/lib/Support/SCEVValidator.cpp Tue May  7 02:30:56 2013
@@ -211,7 +211,7 @@ public:
         continue;
 
       if (Op.isPARAM() && Return.isPARAM()) {
-        HasMultipleParams  = true;
+        HasMultipleParams = true;
         continue;
       }
 
@@ -467,9 +467,10 @@ bool isAffineExpr(const Region *R, const
   return Result.isValid();
 }
 
-std::vector<const SCEV *>
-getParamsInAffineExpr(const Region *R, const SCEV *Expr, ScalarEvolution &SE,
-                      const Value *BaseAddress) {
+std::vector<const SCEV *> getParamsInAffineExpr(const Region *R,
+                                                const SCEV *Expr,
+                                                ScalarEvolution &SE,
+                                                const Value *BaseAddress) {
   if (isa<SCEVCouldNotCompute>(Expr))
     return std::vector<const SCEV *>();
 

Modified: polly/trunk/lib/Support/ScopHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/ScopHelper.cpp?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/lib/Support/ScopHelper.cpp (original)
+++ polly/trunk/lib/Support/ScopHelper.cpp Tue May  7 02:30:56 2013
@@ -87,13 +87,13 @@ BasicBlock *polly::createSingleExitEdge(
   return SplitBlockPredecessors(BB, Preds, ".region", P);
 }
 
-void polly::simplifyRegion(Scop *S, Pass *P){
+void polly::simplifyRegion(Scop *S, Pass *P) {
   Region *R = &S->getRegion();
 
   // Create single entry edge if the region has multiple entry edges.
-  if (!R->getEnteringBlock()){
+  if (!R->getEnteringBlock()) {
     BasicBlock *OldEntry = R->getEntry();
-    BasicBlock *NewEntry = SplitBlock (OldEntry, OldEntry->begin(), P);
+    BasicBlock *NewEntry = SplitBlock(OldEntry, OldEntry->begin(), P);
 
     for (Scop::iterator SI = S->begin(), SE = S->end(); SI != SE; ++SI)
       if ((*SI)->getBasicBlock() == OldEntry) {

Modified: polly/trunk/tools/GPURuntime/GPUJIT.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/tools/GPURuntime/GPUJIT.h?rev=181294&r1=181293&r2=181294&view=diff
==============================================================================
--- polly/trunk/tools/GPURuntime/GPUJIT.h (original)
+++ polly/trunk/tools/GPURuntime/GPUJIT.h Tue May  7 02:30:56 2013
@@ -92,13 +92,15 @@ void polly_copyFromHostToDevice(PollyGPU
                                 int MemSize);
 void polly_copyFromDeviceToHost(void *HostData, PollyGPUDevicePtr *DevData,
                                 int MemSize);
-void polly_allocateMemoryForHostAndDevice(
-    void **HostData, PollyGPUDevicePtr **DevData, int MemSize);
+void polly_allocateMemoryForHostAndDevice(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_cleanupGPGPUResources(
-    void *HostData, PollyGPUDevicePtr *DevData, PollyGPUModule *Module,
-    PollyGPUContext *Context, PollyGPUFunction *Kernel);
+void polly_launchKernel(PollyGPUFunction *Kernel, int GridWidth,
+                        int GridHeight);
+void polly_cleanupGPGPUResources(void *HostData, PollyGPUDevicePtr *DevData,
+                                 PollyGPUModule *Module,
+                                 PollyGPUContext *Context,
+                                 PollyGPUFunction *Kernel);
 #endif /* GPUJIT_H_ */





More information about the llvm-commits mailing list