[polly] r184655 - Integrate latest clang-format changes

Tobias Grosser grosser at fim.uni-passau.de
Sat Jun 22 18:29:30 PDT 2013


Author: grosser
Date: Sat Jun 22 20:29:29 2013
New Revision: 184655

URL: http://llvm.org/viewvc/llvm-project?rev=184655&view=rev
Log:
Integrate latest clang-format changes

Modified:
    polly/trunk/include/polly/CodeGen/BlockGenerators.h
    polly/trunk/include/polly/CodeGen/Cloog.h
    polly/trunk/include/polly/CodeGen/CodeGeneration.h
    polly/trunk/include/polly/CodeGen/IslAst.h
    polly/trunk/include/polly/CodeGen/Utils.h
    polly/trunk/include/polly/LinkAllPasses.h
    polly/trunk/include/polly/RegisterPasses.h
    polly/trunk/include/polly/ScheduleOptimizer.h
    polly/trunk/include/polly/ScopDetection.h
    polly/trunk/include/polly/ScopInfo.h
    polly/trunk/include/polly/ScopLib.h
    polly/trunk/include/polly/Support/GICHelper.h
    polly/trunk/include/polly/Support/SCEVValidator.h
    polly/trunk/include/polly/TempScopInfo.h
    polly/trunk/lib/Analysis/ScopDetection.cpp
    polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
    polly/trunk/lib/Analysis/TempScopInfo.cpp
    polly/trunk/lib/CodeGen/BlockGenerators.cpp
    polly/trunk/lib/CodeGen/Cloog.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/Exchange/JSONExporter.cpp
    polly/trunk/lib/Exchange/OpenScopExporter.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/ScheduleOptimizer.cpp
    polly/trunk/lib/Support/GICHelper.cpp
    polly/trunk/lib/Support/SCEVValidator.cpp

Modified: polly/trunk/include/polly/CodeGen/BlockGenerators.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/BlockGenerators.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/BlockGenerators.h (original)
+++ polly/trunk/include/polly/CodeGen/BlockGenerators.h Sat Jun 22 20:29:29 2013
@@ -305,6 +305,5 @@ private:
 
   void copyBB();
 };
-
 }
 #endif

Modified: polly/trunk/include/polly/CodeGen/Cloog.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/Cloog.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/Cloog.h (original)
+++ polly/trunk/include/polly/CodeGen/Cloog.h Sat Jun 22 20:29:29 2013
@@ -34,7 +34,9 @@
 #include "cloog/cloog.h"
 
 struct clast_name;
-namespace llvm { class raw_ostream; }
+namespace llvm {
+class raw_ostream;
+}
 
 namespace polly {
 class Scop;

Modified: polly/trunk/include/polly/CodeGen/CodeGeneration.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/CodeGeneration.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/CodeGeneration.h (original)
+++ polly/trunk/include/polly/CodeGen/CodeGeneration.h Sat Jun 22 20:29:29 2013
@@ -66,7 +66,6 @@ static inline int getNumberOfIterations(
 
   return NumberIterations;
 }
-
 }
 
 #endif // POLLY_CODEGENERATION_H

Modified: polly/trunk/include/polly/CodeGen/IslAst.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/IslAst.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/IslAst.h (original)
+++ polly/trunk/include/polly/CodeGen/IslAst.h Sat Jun 22 20:29:29 2013
@@ -28,7 +28,9 @@
 #include "isl/ast.h"
 
 struct clast_name;
-namespace llvm { class raw_ostream; }
+namespace llvm {
+class raw_ostream;
+}
 
 struct isl_ast_node;
 struct isl_ast_build;

Modified: polly/trunk/include/polly/CodeGen/Utils.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/Utils.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/Utils.h (original)
+++ polly/trunk/include/polly/CodeGen/Utils.h Sat Jun 22 20:29:29 2013
@@ -57,6 +57,5 @@ class Scop;
 /// @param PassInfo A reference to the pass calling this function.
 /// @return BasicBlock The 'StartBlock' to which new code can be added.
 llvm::BasicBlock *executeScopConditionally(Scop &S, llvm::Pass *PassInfo);
-
 }
 #endif

Modified: polly/trunk/include/polly/LinkAllPasses.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/LinkAllPasses.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/LinkAllPasses.h (original)
+++ polly/trunk/include/polly/LinkAllPasses.h Sat Jun 22 20:29:29 2013
@@ -76,7 +76,7 @@ struct PollyForcePassLinking {
     // delete it all as dead code, even with whole program optimization,
     // yet is effectively a NO-OP. As the compiler isn't smart enough
     // to know that getenv() never returns -1, this will do the job.
-    if (std::getenv("bar") != (char *)- 1)
+    if (std::getenv("bar") != (char *)-1)
       return;
 
 #ifdef CLOOG_FOUND
@@ -114,7 +114,6 @@ struct PollyForcePassLinking {
     createScopLibExporterPass();
     createScopLibImporterPass();
 #endif
-
   }
 } PollyForcePassLinking; // Force link by creating a global definition.
 }

Modified: polly/trunk/include/polly/RegisterPasses.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/RegisterPasses.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/RegisterPasses.h (original)
+++ polly/trunk/include/polly/RegisterPasses.h Sat Jun 22 20:29:29 2013
@@ -13,5 +13,7 @@
 
 #ifndef POLLY_REGISTER_PASSES_H
 #define POLLY_REGISTER_PASSES_H
-namespace llvm { class PassManagerBase; }
+namespace llvm {
+class PassManagerBase;
+}
 #endif

Modified: polly/trunk/include/polly/ScheduleOptimizer.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScheduleOptimizer.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/ScheduleOptimizer.h (original)
+++ polly/trunk/include/polly/ScheduleOptimizer.h Sat Jun 22 20:29:29 2013
@@ -12,6 +12,8 @@
 #ifndef POLLY_SCHEDULE_OPTIMIZER_H
 #define POLLY_SCHEDULE_OPTIMIZER_H
 
-namespace polly { extern bool DisablePollyTiling; }
+namespace polly {
+extern bool DisablePollyTiling;
+}
 
 #endif

Modified: polly/trunk/include/polly/ScopDetection.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopDetection.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopDetection.h (original)
+++ polly/trunk/include/polly/ScopDetection.h Sat Jun 22 20:29:29 2013
@@ -271,7 +271,7 @@ public:
   //@}
 };
 
-} //end namespace polly
+} // end namespace polly
 
 namespace llvm {
 class PassRegistry;

Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Sat Jun 22 20:29:29 2013
@@ -647,7 +647,7 @@ public:
   //@}
 };
 
-} //end namespace polly
+} // end namespace polly
 
 namespace llvm {
 class PassRegistry;

Modified: polly/trunk/include/polly/ScopLib.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopLib.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopLib.h (original)
+++ polly/trunk/include/polly/ScopLib.h Sat Jun 22 20:29:29 2013
@@ -22,7 +22,9 @@
 
 #include <map>
 
-namespace llvm { class Value; }
+namespace llvm {
+class Value;
+}
 
 struct isl_constraint;
 struct isl_basic_map;
@@ -63,7 +65,6 @@ public:
   ~ScopLib();
   void print(FILE *F);
   bool updateScattering();
-
 };
 }
 

Modified: polly/trunk/include/polly/Support/GICHelper.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/GICHelper.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/GICHelper.h (original)
+++ polly/trunk/include/polly/Support/GICHelper.h Sat Jun 22 20:29:29 2013
@@ -43,9 +43,8 @@ void MPZ_from_APInt(mpz_t v, const llvm:
 /// @param mpz    The mpz_t you want to convert.
 llvm::APInt APInt_from_MPZ(const mpz_t mpz);
 
-
-__isl_give isl_val *isl_valFromAPInt(isl_ctx *Ctx, const llvm::APInt Int, bool
-                                     IsSigned);
+__isl_give isl_val *isl_valFromAPInt(isl_ctx *Ctx, const llvm::APInt Int,
+                                     bool IsSigned);
 llvm::APInt APIntFromVal(__isl_take isl_val *Val);
 
 /// @brief Get c++ string from Isl objects.
@@ -61,6 +60,6 @@ std::string stringFromIslObj(/*__isl_kee
 std::string stringFromIslObj(/*__isl_keep*/ isl_pw_aff *pwaff);
 
 //@}
-} //end namespace polly
+} // end namespace polly
 
 #endif

Modified: polly/trunk/include/polly/Support/SCEVValidator.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/SCEVValidator.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/SCEVValidator.h (original)
+++ polly/trunk/include/polly/Support/SCEVValidator.h Sat Jun 22 20:29:29 2013
@@ -35,7 +35,6 @@ std::vector<const llvm::SCEV *>
 getParamsInAffineExpr(const llvm::Region *R, const llvm::SCEV *Expression,
                       llvm::ScalarEvolution &SE,
                       const llvm::Value *BaseAddress = 0);
-
 }
 
 #endif

Modified: polly/trunk/include/polly/TempScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/TempScopInfo.h?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/include/polly/TempScopInfo.h (original)
+++ polly/trunk/include/polly/TempScopInfo.h Sat Jun 22 20:29:29 2013
@@ -22,7 +22,9 @@
 #include "llvm/Analysis/RegionPass.h"
 #include "llvm/IR/Instructions.h"
 
-namespace llvm { class DataLayout; }
+namespace llvm {
+class DataLayout;
+}
 
 using namespace llvm;
 

Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Sat Jun 22 20:29:29 2013
@@ -115,7 +115,7 @@ STATISTIC(ValidRegion, "Number of region
     LastFailure = Buf;                                                         \
     DEBUG(dbgs() << MESSAGE);                                                  \
     DEBUG(dbgs() << "\n");                                                     \
-    assert(!Context.Verifying && #NAME);                                       \
+    assert(!Context.Verifying &&#NAME);                                        \
     if (!Context.Verifying)                                                    \
       ++Bad##NAME##ForScop;                                                    \
     return false;                                                              \
@@ -212,9 +212,9 @@ bool ScopDetection::isValidCFG(BasicBloc
 
     if (!isAffineExpr(&Context.CurRegion, LHS, *SE) ||
         !isAffineExpr(&Context.CurRegion, RHS, *SE))
-      INVALID(AffFunc, "Non affine branch in BB '" << BB.getName()
-                                                   << "' with LHS: " << *LHS
-                                                   << " and RHS: " << *RHS);
+      INVALID(AffFunc,
+              "Non affine branch in BB '" << BB.getName() << "' with LHS: "
+                                          << *LHS << " and RHS: " << *RHS);
   }
 
   // Allow loop exit conditions.
@@ -267,8 +267,8 @@ bool ScopDetection::isValidMemoryAccess(
 
   AccessFunction = SE->getMinusSCEV(AccessFunction, BasePointer);
 
-  if (!AllowNonAffine && !isAffineExpr(&Context.CurRegion, AccessFunction, *SE,
-                                       BaseValue))
+  if (!AllowNonAffine &&
+      !isAffineExpr(&Context.CurRegion, AccessFunction, *SE, BaseValue))
     INVALID(AffFunc, "Non affine access function: " << *AccessFunction);
 
   // FIXME: Alias Analysis thinks IntToPtrInst aliases with alloca instructions
@@ -279,17 +279,17 @@ bool ScopDetection::isValidMemoryAccess(
   if (!IgnoreAliasing) {
     // Check if the base pointer of the memory access does alias with
     // any other pointer. This cannot be handled at the moment.
-    AliasSet &AS =
-        Context.AST.getAliasSetForPointer(BaseValue, AliasAnalysis::UnknownSize,
-                                          Inst.getMetadata(LLVMContext::MD_tbaa));
-
-    // INVALID triggers an assertion in verifying mode, if it detects that a SCoP
-    // was detected by SCoP detection and that this SCoP was invalidated by a pass
-    // that stated it would preserve the SCoPs.
-    // We disable this check as the independent blocks pass may create memory
-    // references which seem to alias, if -basicaa is not available. They actually
-    // do not, but as we can not proof this without -basicaa we would fail. We
-    // disable this check to not cause irrelevant verification failures.
+    AliasSet &AS = Context.AST
+        .getAliasSetForPointer(BaseValue, AliasAnalysis::UnknownSize,
+                               Inst.getMetadata(LLVMContext::MD_tbaa));
+
+    // INVALID triggers an assertion in verifying mode, if it detects that a
+    // SCoP was detected by SCoP detection and that this SCoP was invalidated by
+    // a pass that stated it would preserve the SCoPs. We disable this check as
+    // the independent blocks pass may create memory references which seem to
+    // alias, if -basicaa is not available. They actually do not, but as we can
+    // not proof this without -basicaa we would fail. We disable this check to
+    // not cause irrelevant verification failures.
     if (!AS.isMustAlias()) {
       std::string Message;
       raw_string_ostream OS(Message);
@@ -304,7 +304,8 @@ bool ScopDetection::isValidMemoryAccess(
       std::sort(Pointers.begin(), Pointers.end());
 
       for (std::vector<Value *>::iterator PI = Pointers.begin(),
-          PE = Pointers.end(); ;) {
+                                          PE = Pointers.end();
+           ;) {
         Value *V = *PI;
 
         if (V->getName().size() == 0)
@@ -402,9 +403,8 @@ bool ScopDetection::isValidLoop(Loop *L,
   // Is the loop count affine?
   const SCEV *LoopCount = SE->getBackedgeTakenCount(L);
   if (!isAffineExpr(&Context.CurRegion, LoopCount, *SE))
-    INVALID(LoopBound,
-            "Non affine loop bound '"
-                << *LoopCount << "' in loop: " << L->getHeader()->getName());
+    INVALID(LoopBound, "Non affine loop bound '" << *LoopCount << "' in loop: "
+                                                 << L->getHeader()->getName());
 
   return true;
 }

Modified: polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopGraphPrinter.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopGraphPrinter.cpp (original)
+++ polly/trunk/lib/Analysis/ScopGraphPrinter.cpp Sat Jun 22 20:29:29 2013
@@ -162,7 +162,7 @@ struct DOTGraphTraits<ScopDetection *> :
   }
 };
 
-} //end namespace llvm
+} // end namespace llvm
 
 struct ScopViewer : public DOTGraphTraitsViewer<ScopDetection, false> {
   static char ID;

Modified: polly/trunk/lib/Analysis/TempScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/TempScopInfo.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/TempScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/TempScopInfo.cpp Sat Jun 22 20:29:29 2013
@@ -138,8 +138,7 @@ IRAccess TempScopInfo::buildIRAccess(Ins
     Type = IRAccess::WRITE;
   }
 
-  const SCEV *AccessFunction =
-      SE->getSCEVAtScope(getPointerOperand(*Inst), L);
+  const SCEV *AccessFunction = SE->getSCEVAtScope(getPointerOperand(*Inst), L);
   const SCEVUnknown *BasePointer =
       dyn_cast<SCEVUnknown>(SE->getPointerBase(AccessFunction));
 
@@ -148,7 +147,8 @@ IRAccess TempScopInfo::buildIRAccess(Ins
 
   bool IsAffine = isAffineExpr(R, AccessFunction, *SE, BasePointer->getValue());
 
-  return IRAccess(Type, BasePointer->getValue(), AccessFunction, Size, IsAffine);
+  return IRAccess(Type, BasePointer->getValue(), AccessFunction, Size,
+                  IsAffine);
 }
 
 void TempScopInfo::buildAccessFunctions(Region &R, BasicBlock &BB) {
@@ -160,7 +160,8 @@ void TempScopInfo::buildAccessFunctions(
     if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
       Functions.push_back(std::make_pair(buildIRAccess(Inst, L, &R), Inst));
 
-    if (!isa<StoreInst>(Inst))  buildScalarDependences(Inst, &R);
+    if (!isa<StoreInst>(Inst))
+      buildScalarDependences(Inst, &R);
   }
 
   if (Functions.empty())
@@ -233,8 +234,8 @@ void TempScopInfo::buildAffineCondition(
   case ICmpInst::ICMP_ULE:
     // TODO: At the moment we need to see everything as signed. This is an
     //       correctness issue that needs to be solved.
-    //AffLHS->setUnsigned();
-    //AffRHS->setUnsigned();
+    // AffLHS->setUnsigned();
+    // AffRHS->setUnsigned();
     break;
   default:
     break;

Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Sat Jun 22 20:29:29 2013
@@ -199,7 +199,7 @@ Value *BlockGenerator::getNewValue(const
     }
 
   if (const Instruction *Inst = dyn_cast<Instruction>(Old)) {
-    (void) Inst;
+    (void)Inst;
     assert(!Statement.getParent()->getRegion().contains(Inst->getParent()) &&
            "unexpected scalar dependence in region");
   }

Modified: polly/trunk/lib/CodeGen/Cloog.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/Cloog.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/Cloog.cpp (original)
+++ polly/trunk/lib/CodeGen/Cloog.cpp Sat Jun 22 20:29:29 2013
@@ -94,7 +94,7 @@ public:
   }
   ~FileToString() {
     close(FD[0]);
-    //close(FD[1]);
+    // close(FD[1]);
   }
 
   FILE *getInputFile() { return input; }
@@ -119,7 +119,6 @@ public:
 
     return output;
   }
-
 };
 
 /// Write .cloog input file.
@@ -251,7 +250,6 @@ struct CloogExporter : public ScopPass {
   virtual bool runOnScop(Scop &S);
   void getAnalysisUsage(AnalysisUsage &AU) const;
 };
-
 }
 std::string CloogExporter::getFileName(Region *R) const {
   std::string FunctionName = R->getEntry()->getParent()->getName();
@@ -330,7 +328,7 @@ bool CloogInfo::runOnScop(Scop &S) {
   C = new Cloog(&S);
 
   Function *F = S.getRegion().getEntry()->getParent();
-  (void) F;
+  (void)F;
 
   DEBUG(dbgs() << ":: " << F->getName());
   DEBUG(dbgs() << " : " << S.getRegion().getNameStr() << "\n");

Modified: polly/trunk/lib/CodeGen/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodeGeneration.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/CodeGeneration.cpp Sat Jun 22 20:29:29 2013
@@ -169,7 +169,8 @@ Value *ClastExpCodeGen::codegen(const cl
 
 Value *ClastExpCodeGen::codegen(const clast_reduction *r, Type *Ty) {
   assert((r->type == clast_red_min || r->type == clast_red_max ||
-          r->type == clast_red_sum) && "Clast reduction type not supported");
+          r->type == clast_red_sum) &&
+         "Clast reduction type not supported");
   Value *old = codegen(r->elts[0], Ty);
 
   for (int i = 1; i < r->n; ++i) {

Modified: polly/trunk/lib/CodeGen/IslAst.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslAst.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslAst.cpp (original)
+++ polly/trunk/lib/CodeGen/IslAst.cpp Sat Jun 22 20:29:29 2013
@@ -328,7 +328,7 @@ IslAst::IslAst(Scop *Scop, Dependences &
   isl_union_map *Schedule = getSchedule();
 
   Function *F = Scop->getRegion().getEntry()->getParent();
-  (void) F;
+  (void)F;
 
   DEBUG(dbgs() << ":: isl ast :: " << F->getName()
                << " :: " << Scop->getRegion().getNameStr() << "\n");

Modified: polly/trunk/lib/CodeGen/IslCodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslCodeGeneration.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslCodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/IslCodeGeneration.cpp Sat Jun 22 20:29:29 2013
@@ -125,7 +125,7 @@ void RuntimeDebugBuilder::createStrPrint
 
 void RuntimeDebugBuilder::createIntPrinter(Value *V) {
   IntegerType *Ty = dyn_cast<IntegerType>(V->getType());
-  (void) Ty;
+  (void)Ty;
   assert(Ty && Ty->getBitWidth() == 64 &&
          "Cannot insert printer for this type.");
 

Modified: polly/trunk/lib/CodePreparation.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodePreparation.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/CodePreparation.cpp (original)
+++ polly/trunk/lib/CodePreparation.cpp Sat Jun 22 20:29:29 2013
@@ -77,7 +77,6 @@ public:
   virtual bool runOnFunction(Function &F);
   virtual void print(raw_ostream &OS, const Module *) const;
   //@}
-
 };
 }
 

Modified: polly/trunk/lib/Exchange/JSONExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/JSONExporter.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/JSONExporter.cpp (original)
+++ polly/trunk/lib/Exchange/JSONExporter.cpp Sat Jun 22 20:29:29 2013
@@ -76,7 +76,6 @@ struct JSONImporter : public ScopPass {
   void printScop(raw_ostream &OS) const;
   void getAnalysisUsage(AnalysisUsage &AU) const;
 };
-
 }
 
 char JSONExporter::ID = 0;
@@ -219,7 +218,6 @@ bool JSONImporter::runOnScop(Scop &scop)
   for (unsigned i = 0; i < isl_set_dim(OldContext, isl_dim_param); i++) {
     isl_id *id = isl_set_get_dim_id(OldContext, isl_dim_param, i);
     NewContext = isl_set_set_dim_id(NewContext, isl_dim_param, i, id);
-
   }
 
   isl_set_free(OldContext);
@@ -276,7 +274,6 @@ bool JSONImporter::runOnScop(Scop &scop)
         isl_map_free(currentAccessMap);
         isl_map_free(newAccessMap);
         return false;
-
       }
 
       // We need to copy the isl_ids for the parameter dimensions to the new

Modified: polly/trunk/lib/Exchange/OpenScopExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/OpenScopExporter.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/OpenScopExporter.cpp (original)
+++ polly/trunk/lib/Exchange/OpenScopExporter.cpp Sat Jun 22 20:29:29 2013
@@ -50,7 +50,6 @@ struct ScopExporter : public ScopPass {
   void printScop(raw_ostream &OS) const;
   void getAnalysisUsage(AnalysisUsage &AU) const;
 };
-
 }
 
 char ScopExporter::ID = 0;
@@ -81,7 +80,6 @@ public:
   OpenScop(Scop *S);
   ~OpenScop();
   void print(FILE *F);
-
 };
 
 OpenScop::OpenScop(Scop *S) : PollyScop(S) {
@@ -222,7 +220,7 @@ void OpenScop::print(FILE *F) { openscop
 /// @param user The matrix
 /// @param c The constraint
 int OpenScop::domainToMatrix_constraint(isl_constraint *c, void *user) {
-  openscop_matrix_p m = (openscop_matrix_p) user;
+  openscop_matrix_p m = (openscop_matrix_p)user;
 
   int nb_params = isl_constraint_dim(c, isl_space_param);
   int nb_vars = isl_constraint_dim(c, isl_space_set);
@@ -271,7 +269,7 @@ int OpenScop::domainToMatrix_constraint(
 /// for matrix lists is currently not available in OpenScop. So union of
 /// polyhedron are not yet supported
 int OpenScop::domainToMatrix_basic_set(isl_basic_set *bset, void *user) {
-  openscop_matrix_p m = (openscop_matrix_p) user;
+  openscop_matrix_p m = (openscop_matrix_p)user;
   assert(!m->NbRows && "Union of polyhedron not yet supported");
 
   isl_basic_set_foreach_constraint(bset, &domainToMatrix_constraint, user);
@@ -308,7 +306,7 @@ openscop_matrix_p OpenScop::domainToMatr
 /// @param user The matrix
 /// @param c The constraint
 int OpenScop::scatteringToMatrix_constraint(isl_constraint *c, void *user) {
-  openscop_matrix_p m = (openscop_matrix_p) user;
+  openscop_matrix_p m = (openscop_matrix_p)user;
 
   int nb_params = isl_constraint_dim(c, isl_space_param);
   int nb_in = isl_constraint_dim(c, isl_space_in);
@@ -365,7 +363,7 @@ int OpenScop::scatteringToMatrix_constra
 /// for matrix lists is currently not available in OpenScop. So union of
 /// polyhedron are not yet supported
 int OpenScop::scatteringToMatrix_basic_map(isl_basic_map *bmap, void *user) {
-  openscop_matrix_p m = (openscop_matrix_p) user;
+  openscop_matrix_p m = (openscop_matrix_p)user;
   assert(!m->NbRows && "Union of polyhedron not yet supported");
 
   isl_basic_map_foreach_constraint(bmap, &scatteringToMatrix_constraint, user);
@@ -403,7 +401,7 @@ openscop_matrix_p OpenScop::scatteringTo
 /// @param user The matrix
 /// @param c The constraint
 int OpenScop::accessToMatrix_constraint(isl_constraint *c, void *user) {
-  openscop_matrix_p m = (openscop_matrix_p) user;
+  openscop_matrix_p m = (openscop_matrix_p)user;
 
   int nb_params = isl_constraint_dim(c, isl_space_param);
   int nb_in = isl_constraint_dim(c, isl_space_in);

Modified: polly/trunk/lib/Exchange/ScopLib.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/ScopLib.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/ScopLib.cpp (original)
+++ polly/trunk/lib/Exchange/ScopLib.cpp Sat Jun 22 20:29:29 2013
@@ -170,7 +170,7 @@ void ScopLib::print(FILE *F) { scoplib_s
 /// @param user The matrix
 /// @param c The constraint
 int ScopLib::domainToMatrix_constraint(isl_constraint *c, void *user) {
-  scoplib_matrix_p m = (scoplib_matrix_p) user;
+  scoplib_matrix_p m = (scoplib_matrix_p)user;
 
   int nb_params = isl_constraint_dim(c, isl_dim_param);
   int nb_vars = isl_constraint_dim(c, isl_dim_set);
@@ -223,7 +223,7 @@ int ScopLib::domainToMatrix_constraint(i
 /// for matrix lists is currently not available in ScopLib. So union of
 /// polyhedron are not yet supported
 int ScopLib::domainToMatrix_basic_set(isl_basic_set *bset, void *user) {
-  scoplib_matrix_p m = (scoplib_matrix_p) user;
+  scoplib_matrix_p m = (scoplib_matrix_p)user;
   assert(!m->NbRows && "Union of polyhedron not yet supported");
 
   isl_basic_set_foreach_constraint(bset, &domainToMatrix_constraint, user);
@@ -258,7 +258,7 @@ scoplib_matrix_p ScopLib::domainToMatrix
 /// @param user The matrix
 /// @param c The constraint
 int ScopLib::scatteringToMatrix_constraint(isl_constraint *c, void *user) {
-  scoplib_matrix_p m = (scoplib_matrix_p) user;
+  scoplib_matrix_p m = (scoplib_matrix_p)user;
 
   int nb_params = isl_constraint_dim(c, isl_dim_param);
   int nb_in = isl_constraint_dim(c, isl_dim_in);
@@ -313,7 +313,7 @@ int ScopLib::scatteringToMatrix_constrai
 /// for matrix lists is currently not available in ScopLib. So union of
 /// polyhedron are not yet supported
 int ScopLib::scatteringToMatrix_basic_map(isl_basic_map *bmap, void *user) {
-  scoplib_matrix_p m = (scoplib_matrix_p) user;
+  scoplib_matrix_p m = (scoplib_matrix_p)user;
   assert(!m->NbRows && "Union of polyhedron not yet supported");
 
   isl_basic_map_foreach_constraint(bmap, &scatteringToMatrix_constraint, user);
@@ -353,7 +353,7 @@ scoplib_matrix_p ScopLib::scatteringToMa
 /// @param user The matrix
 /// @param c The constraint
 int ScopLib::accessToMatrix_constraint(isl_constraint *c, void *user) {
-  scoplib_matrix_p m = (scoplib_matrix_p) user;
+  scoplib_matrix_p m = (scoplib_matrix_p)user;
 
   int nb_params = isl_constraint_dim(c, isl_dim_param);
   int nb_in = isl_constraint_dim(c, isl_dim_in);

Modified: polly/trunk/lib/Exchange/ScopLibExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/ScopLibExporter.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/ScopLibExporter.cpp (original)
+++ polly/trunk/lib/Exchange/ScopLibExporter.cpp Sat Jun 22 20:29:29 2013
@@ -48,7 +48,6 @@ public:
   virtual bool runOnScop(Scop &scop);
   void getAnalysisUsage(AnalysisUsage &AU) const;
 };
-
 }
 
 char ScopLibExporter::ID = 0;

Modified: polly/trunk/lib/Exchange/ScopLibImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/ScopLibImporter.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/ScopLibImporter.cpp (original)
+++ polly/trunk/lib/Exchange/ScopLibImporter.cpp Sat Jun 22 20:29:29 2013
@@ -107,7 +107,6 @@ void ScopLibImporter::getAnalysisUsage(A
   AU.addRequired<ScopInfo>();
   AU.addRequired<Dependences>();
 }
-
 }
 
 static RegisterPass<ScopLibImporter>

Modified: polly/trunk/lib/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/IndVarSimplify.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/IndVarSimplify.cpp (original)
+++ polly/trunk/lib/IndVarSimplify.cpp Sat Jun 22 20:29:29 2013
@@ -218,7 +218,9 @@ static bool ConvertToSInt(const APFloat
   // See if we can convert this to an int64_t
   uint64_t UIntVal;
   if (APF.convertToInteger(&UIntVal, 64, true, APFloat::rmTowardZero,
-                           &isExact) != APFloat::opOK || !isExact)
+                           &isExact) !=
+          APFloat::opOK ||
+      !isExact)
     return false;
   IntVal = UIntVal;
   return true;
@@ -1557,8 +1559,8 @@ static Value *genLoopLimit(PHINode *IndV
     // We could handle pointer IVs other than i8*, but we need to compensate for
     // gep index scaling. See canExpandBackedgeTakenCount comments.
     assert(SE->getSizeOfExpr(cast<PointerType>(GEPBase->getType())
-                                 ->getElementType())
-               ->isOne() && "unit stride pointer IV must be i8*");
+                                 ->getElementType())->isOne() &&
+           "unit stride pointer IV must be i8*");
 
     IRBuilder<> Builder(L->getLoopPreheader()->getTerminator());
     return Builder.CreateGEP(GEPBase, GEPOffset, "lftr.limit");
@@ -1656,7 +1658,8 @@ Value *PollyIndVarSimplify::LinearFuncti
 
   Value *ExitCnt = genLoopLimit(IndVar, IVCount, L, Rewriter, SE);
   assert(ExitCnt->getType()->isPointerTy() ==
-             IndVar->getType()->isPointerTy() && "genLoopLimit missed a cast");
+             IndVar->getType()->isPointerTy() &&
+         "genLoopLimit missed a cast");
 
   // Insert a new icmp_ne or icmp_eq instruction before the branch.
   BranchInst *BI = cast<BranchInst>(L->getExitingBlock()->getTerminator());
@@ -1850,7 +1853,7 @@ bool PollyIndVarSimplify::runOnLoop(Loop
   //        but just a canonical induction variable. In the near future, we
   //        should remove the need of canonical induction variables all
   //        together.
-  //if (EnableIVRewrite)
+  // if (EnableIVRewrite)
   //  Changed |= simplifyIVUsers(IU, SE, &LPM, DeadInsts);
 
   // Eliminate redundant IV cycles.

Modified: polly/trunk/lib/IndependentBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/IndependentBlocks.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/IndependentBlocks.cpp (original)
+++ polly/trunk/lib/IndependentBlocks.cpp Sat Jun 22 20:29:29 2013
@@ -403,7 +403,7 @@ bool IndependentBlocks::translateScalarT
     StorePos = Inst;
     StorePos++;
   }
-  (void) new StoreInst(Inst, Slot, StorePos);
+  (void)new StoreInst(Inst, Slot, StorePos);
 
   if (!LoadOutside.empty()) {
     LoadInst *ExitLoad = new LoadInst(Slot, Inst->getName() + ".loadoutside",

Modified: polly/trunk/lib/Pocc.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Pocc.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Pocc.cpp (original)
+++ polly/trunk/lib/Pocc.cpp Sat Jun 22 20:29:29 2013
@@ -67,7 +67,6 @@ public:
 private:
   bool runTransform(Scop &S);
 };
-
 }
 
 char Pocc::ID = 0;

Modified: polly/trunk/lib/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/ScheduleOptimizer.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/ScheduleOptimizer.cpp Sat Jun 22 20:29:29 2013
@@ -37,7 +37,9 @@
 using namespace llvm;
 using namespace polly;
 
-namespace polly { bool DisablePollyTiling; }
+namespace polly {
+bool DisablePollyTiling;
+}
 static cl::opt<bool, true>
 DisableTiling("polly-no-tiling", cl::desc("Disable tiling in the scheduler"),
               cl::location(polly::DisablePollyTiling), cl::init(false),
@@ -185,7 +187,6 @@ private:
     return true;
   }
 };
-
 }
 
 char IslScheduleOptimizer::ID = 0;

Modified: polly/trunk/lib/Support/GICHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/GICHelper.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Support/GICHelper.cpp (original)
+++ polly/trunk/lib/Support/GICHelper.cpp Sat Jun 22 20:29:29 2013
@@ -70,7 +70,7 @@ APInt polly::APInt_from_MPZ(const mpz_t
   p = (uint64_t *)mpz_export(p, &sz, -1, sizeof(uint64_t), 0, 0, mpz);
 
   if (p) {
-    APInt A((unsigned) mpz_sizeinbase(mpz, 2), (unsigned) sz, p);
+    APInt A((unsigned)mpz_sizeinbase(mpz, 2), (unsigned)sz, p);
     A = A.zext(A.getBitWidth() + 1);
     free(p);
 
@@ -90,7 +90,7 @@ APInt polly::APIntFromVal(__isl_take isl
 
   NumChunks = isl_val_n_abs_num_chunks(Val, sizeof(uint64_t));
 
-  Data = (uint64_t*) malloc(NumChunks * sizeof(uint64_t));
+  Data = (uint64_t *)malloc(NumChunks * sizeof(uint64_t));
   isl_val_get_abs_num_chunks(Val, sizeof(uint64_t), Data);
   APInt A(8 * sizeof(uint64_t) * NumChunks, NumChunks, Data);
 

Modified: polly/trunk/lib/Support/SCEVValidator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/SCEVValidator.cpp?rev=184655&r1=184654&r2=184655&view=diff
==============================================================================
--- polly/trunk/lib/Support/SCEVValidator.cpp (original)
+++ polly/trunk/lib/Support/SCEVValidator.cpp Sat Jun 22 20:29:29 2013
@@ -120,8 +120,8 @@ raw_ostream &operator<<(raw_ostream &OS,
 }
 
 /// Check if a SCEV is valid in a SCoP.
-struct SCEVValidator :
-    public SCEVVisitor<SCEVValidator, class ValidatorResult> {
+struct SCEVValidator
+    : public SCEVVisitor<SCEVValidator, class ValidatorResult> {
 private:
   const Region *R;
   ScalarEvolution &SE;
@@ -349,8 +349,8 @@ public:
 
 /// @brief Check whether a SCEV refers to an SSA name defined inside a region.
 ///
-struct SCEVInRegionDependences :
-    public SCEVVisitor<SCEVInRegionDependences, bool> {
+struct SCEVInRegionDependences
+    : public SCEVVisitor<SCEVInRegionDependences, bool> {
 public:
 
   /// Returns true when the SCEV has SSA names defined in region R.





More information about the llvm-commits mailing list