[polly] r293756 - Update to recent formatting changes

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 02:12:09 PST 2017


Author: grosser
Date: Wed Feb  1 04:12:09 2017
New Revision: 293756

URL: http://llvm.org/viewvc/llvm-project?rev=293756&view=rev
Log:
Update to recent formatting changes

Modified:
    polly/trunk/lib/Analysis/ScopInfo.cpp
    polly/trunk/lib/CodeGen/IslNodeBuilder.cpp
    polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
    polly/trunk/lib/Support/ISLTools.cpp
    polly/trunk/lib/Support/SCEVValidator.cpp
    polly/trunk/lib/Support/ScopHelper.cpp
    polly/trunk/lib/Transform/ScheduleOptimizer.cpp
    polly/trunk/unittests/Isl/IslTest.cpp

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=293756&r1=293755&r2=293756&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Wed Feb  1 04:12:09 2017
@@ -2183,9 +2183,8 @@ static bool calculateMinMaxAccess(Scop::
   isl_union_set *Locations = isl_union_map_range(Accesses);
   Locations = isl_union_set_coalesce(Locations);
   Locations = isl_union_set_detect_equalities(Locations);
-  bool Valid = (0 ==
-                isl_union_set_foreach_set(Locations, buildMinMaxAccess,
-                                          &MinMaxAccesses));
+  bool Valid = (0 == isl_union_set_foreach_set(Locations, buildMinMaxAccess,
+                                               &MinMaxAccesses));
   isl_union_set_free(Locations);
   return Valid;
 }

Modified: polly/trunk/lib/CodeGen/IslNodeBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslNodeBuilder.cpp?rev=293756&r1=293755&r2=293756&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslNodeBuilder.cpp (original)
+++ polly/trunk/lib/CodeGen/IslNodeBuilder.cpp Wed Feb  1 04:12:09 2017
@@ -458,9 +458,8 @@ void IslNodeBuilder::createForSequential
   CmpInst::Predicate Predicate;
   bool Parallel;
 
-  Parallel =
-      KnownParallel ||
-      (IslAstInfo::isParallel(For) && !IslAstInfo::isReductionParallel(For));
+  Parallel = KnownParallel || (IslAstInfo::isParallel(For) &&
+                               !IslAstInfo::isReductionParallel(For));
 
   Body = isl_ast_node_for_get_body(For);
 
@@ -933,9 +932,8 @@ bool IslNodeBuilder::materializeValue(is
           // there is a statement or the domain is not empty Inst is not dead.
           auto MemInst = MemAccInst::dyn_cast(Inst);
           auto Address = MemInst ? MemInst.getPointerOperand() : nullptr;
-          if (Address &&
-              SE.getUnknown(UndefValue::get(Address->getType())) ==
-                  SE.getPointerBase(SE.getSCEV(Address))) {
+          if (Address && SE.getUnknown(UndefValue::get(Address->getType())) ==
+                             SE.getPointerBase(SE.getSCEV(Address))) {
           } else if (S.getStmtFor(Inst)) {
             IsDead = false;
           } else {

Modified: polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp?rev=293756&r1=293755&r2=293756&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp Wed Feb  1 04:12:09 2017
@@ -603,9 +603,8 @@ void GPUNodeBuilder::createCallLaunchKer
     F = Function::Create(Ty, Linkage, Name, M);
   }
 
-  Builder.CreateCall(F,
-                     {GPUKernel, GridDimX, GridDimY, BlockDimX, BlockDimY,
-                      BlockDimZ, Parameters});
+  Builder.CreateCall(F, {GPUKernel, GridDimX, GridDimY, BlockDimX, BlockDimY,
+                         BlockDimZ, Parameters});
 }
 
 void GPUNodeBuilder::createCallFreeKernel(Value *GPUKernel) {
@@ -836,9 +835,8 @@ void GPUNodeBuilder::createDataTransfer(
 
   if (Offset) {
     Size = Builder.CreateSub(
-        Size,
-        Builder.CreateMul(Offset,
-                          Builder.getInt64(ScopArray->getElemSizeInBytes())));
+        Size, Builder.CreateMul(
+                  Offset, Builder.getInt64(ScopArray->getElemSizeInBytes())));
   }
 
   if (Direction == HOST_TO_DEVICE)

Modified: polly/trunk/lib/Support/ISLTools.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/ISLTools.cpp?rev=293756&r1=293755&r2=293756&view=diff
==============================================================================
--- polly/trunk/lib/Support/ISLTools.cpp (original)
+++ polly/trunk/lib/Support/ISLTools.cpp Wed Feb  1 04:12:09 2017
@@ -142,10 +142,9 @@ IslPtr<isl_map> polly::singleton(IslPtr<
     return give(isl_map_empty(ExpectedSpace.take()));
 
   auto Result = give(isl_map_from_union_map(UMap.take()));
-  assert(
-      !Result ||
-      isl_space_has_equal_tuples(give(isl_map_get_space(Result.keep())).keep(),
-                                 ExpectedSpace.keep()) == isl_bool_true);
+  assert(!Result || isl_space_has_equal_tuples(
+                        give(isl_map_get_space(Result.keep())).keep(),
+                        ExpectedSpace.keep()) == isl_bool_true);
   return Result;
 }
 
@@ -158,10 +157,9 @@ IslPtr<isl_set> polly::singleton(IslPtr<
     return give(isl_set_empty(ExpectedSpace.copy()));
 
   auto Result = give(isl_set_from_union_set(USet.take()));
-  assert(
-      !Result ||
-      isl_space_has_equal_tuples(give(isl_set_get_space(Result.keep())).keep(),
-                                 ExpectedSpace.keep()) == isl_bool_true);
+  assert(!Result || isl_space_has_equal_tuples(
+                        give(isl_set_get_space(Result.keep())).keep(),
+                        ExpectedSpace.keep()) == isl_bool_true);
   return Result;
 }
 

Modified: polly/trunk/lib/Support/SCEVValidator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/SCEVValidator.cpp?rev=293756&r1=293755&r2=293756&view=diff
==============================================================================
--- polly/trunk/lib/Support/SCEVValidator.cpp (original)
+++ polly/trunk/lib/Support/SCEVValidator.cpp Wed Feb  1 04:12:09 2017
@@ -487,9 +487,8 @@ public:
 
     Values.insert(Unknown->getValue());
     Instruction *Inst = dyn_cast<Instruction>(Unknown->getValue());
-    if (!Inst ||
-        (Inst->getOpcode() != Instruction::SRem &&
-         Inst->getOpcode() != Instruction::SDiv))
+    if (!Inst || (Inst->getOpcode() != Instruction::SRem &&
+                  Inst->getOpcode() != Instruction::SDiv))
       return false;
 
     auto *Dividend = SE.getSCEV(Inst->getOperand(1));

Modified: polly/trunk/lib/Support/ScopHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/ScopHelper.cpp?rev=293756&r1=293755&r2=293756&view=diff
==============================================================================
--- polly/trunk/lib/Support/ScopHelper.cpp (original)
+++ polly/trunk/lib/Support/ScopHelper.cpp Wed Feb  1 04:12:09 2017
@@ -296,9 +296,8 @@ private:
     else
       IP = RTCBB->getParent()->getEntryBlock().getTerminator();
 
-    if (!Inst ||
-        (Inst->getOpcode() != Instruction::SRem &&
-         Inst->getOpcode() != Instruction::SDiv))
+    if (!Inst || (Inst->getOpcode() != Instruction::SRem &&
+                  Inst->getOpcode() != Instruction::SDiv))
       return visitGenericInst(E, Inst, IP);
 
     const SCEV *LHSScev = SE.getSCEV(Inst->getOperand(0));

Modified: polly/trunk/lib/Transform/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ScheduleOptimizer.cpp?rev=293756&r1=293755&r2=293756&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/Transform/ScheduleOptimizer.cpp Wed Feb  1 04:12:09 2017
@@ -1083,9 +1083,8 @@ bool ScheduleTreeOptimizer::isProfitable
     return true;
   auto *NewScheduleMap = isl_schedule_get_map(NewSchedule);
   isl_union_map *OldSchedule = S.getSchedule();
-  assert(OldSchedule &&
-         "Only IslScheduleOptimizer can insert extension nodes "
-         "that make Scop::getSchedule() return nullptr.");
+  assert(OldSchedule && "Only IslScheduleOptimizer can insert extension nodes "
+                        "that make Scop::getSchedule() return nullptr.");
   bool changed = !isl_union_map_is_equal(OldSchedule, NewScheduleMap);
   isl_union_map_free(OldSchedule);
   isl_union_map_free(NewScheduleMap);

Modified: polly/trunk/unittests/Isl/IslTest.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/unittests/Isl/IslTest.cpp?rev=293756&r1=293755&r2=293756&view=diff
==============================================================================
--- polly/trunk/unittests/Isl/IslTest.cpp (original)
+++ polly/trunk/unittests/Isl/IslTest.cpp Wed Feb  1 04:12:09 2017
@@ -362,9 +362,8 @@ TEST(Isl, Foreach) {
     EXPECT_EQ(isl_stat_error,
               foreachEltWithBreak(
                   TestMap, [&](IslPtr<isl_basic_map> BMap) -> isl_stat {
-                    EXPECT_EQ(
-                        isl_bool_true,
-                        isl_basic_map_is_equal(BMap.keep(), TestBMap.keep()));
+                    EXPECT_EQ(isl_bool_true, isl_basic_map_is_equal(
+                                                 BMap.keep(), TestBMap.keep()));
                     NumBMaps++;
                     return isl_stat_error;
                   }));




More information about the llvm-commits mailing list