Adjust to clang-format changes
authorTobias Grosser <tobias@grosser.es>
Tue, 20 Mar 2018 17:16:32 +0000 (17:16 +0000)
committerTobias Grosser <tobias@grosser.es>
Tue, 20 Mar 2018 17:16:32 +0000 (17:16 +0000)
llvm-svn: 328005

32 files changed:
polly/include/polly/CodeGen/CodeGeneration.h
polly/include/polly/CodeGen/IslAst.h
polly/include/polly/CodeGen/IslNodeBuilder.h
polly/include/polly/CodeGen/Utils.h
polly/include/polly/DependenceInfo.h
polly/include/polly/ForwardOpTree.h
polly/include/polly/PolyhedralInfo.h
polly/include/polly/PruneUnprofitable.h
polly/include/polly/ScheduleOptimizer.h
polly/include/polly/ScopBuilder.h
polly/include/polly/ScopDetection.h
polly/include/polly/ScopDetectionDiagnostic.h
polly/include/polly/ScopInfo.h
polly/include/polly/ScopPass.h
polly/include/polly/Support/GICHelper.h
polly/include/polly/Support/ISLOperators.h
polly/include/polly/Support/ISLTools.h
polly/include/polly/Support/VirtualInstruction.h
polly/lib/Analysis/PruneUnprofitable.cpp
polly/lib/Analysis/ScopDetection.cpp
polly/lib/Analysis/ScopDetectionDiagnostic.cpp
polly/lib/Analysis/ScopGraphPrinter.cpp
polly/lib/Analysis/ScopInfo.cpp
polly/lib/CodeGen/CodeGeneration.cpp
polly/lib/CodeGen/IslAst.cpp
polly/lib/CodeGen/ManagedMemoryRewrite.cpp
polly/lib/Transform/ForwardOpTree.cpp
polly/lib/Transform/MaximalStaticExpansion.cpp
polly/lib/Transform/ScheduleOptimizer.cpp
polly/lib/Transform/ScopInliner.cpp
polly/unittests/Flatten/FlattenTest.cpp
polly/unittests/Isl/IslTest.cpp

index 1dc224e..bd1b826 100644 (file)
@@ -18,7 +18,6 @@
 namespace llvm {
 
 class BasicBlock;
-
 } // namespace llvm
 
 namespace polly {
@@ -44,7 +43,6 @@ struct CodeGenerationPass : public PassInfoMixin<CodeGenerationPass> {
 };
 
 extern bool PerfMonitoring;
-
 } // namespace polly
 
 #endif // POLLY_CODEGENERATION_H
index c1d3305..48ae3ff 100644 (file)
@@ -36,7 +36,6 @@ class PassRegistry;
 class raw_ostream;
 
 void initializeIslAstInfoWrapperPassPass(PassRegistry &);
-
 } // namespace llvm
 
 struct isl_ast_build;
@@ -230,7 +229,6 @@ struct IslAstPrinterPass : public PassInfoMixin<IslAstPrinterPass> {
 
   raw_ostream &OS;
 };
-
 } // namespace polly
 
 #endif // POLLY_ISLAST_H
index cae93ee..6c6a483 100644 (file)
@@ -46,7 +46,6 @@ class ScalarEvolution;
 class SCEV;
 class Type;
 class Value;
-
 } // namespace llvm
 
 namespace polly {
@@ -55,7 +54,6 @@ struct InvariantEquivClassTy;
 class MemoryAccess;
 class Scop;
 class ScopStmt;
-
 } // namespace polly
 
 struct isl_ast_node;
index 9bce03d..0452c44 100644 (file)
@@ -69,6 +69,5 @@ using BBPair = std::pair<llvm::BasicBlock *, llvm::BasicBlock *>;
 std::pair<BBPair, llvm::BranchInst *>
 executeScopConditionally(Scop &S, llvm::Value *RTC, llvm::DominatorTree &DT,
                          llvm::RegionInfo &RI, llvm::LoopInfo &LI);
-
 } // namespace polly
 #endif
index 89c3205..38e4c95 100644 (file)
@@ -310,7 +310,6 @@ private:
   /// Scop to Dependence map for the current function.
   ScopToDepsMapTy ScopToDepsMap;
 };
-
 } // namespace polly
 
 namespace llvm {
index b0c16ca..3e23be8 100644 (file)
@@ -19,7 +19,6 @@ namespace llvm {
 class PassRegistry;
 
 void initializeForwardOpTreePass(PassRegistry &);
-
 } // namespace llvm
 
 namespace polly {
@@ -27,7 +26,6 @@ namespace polly {
 class ScopPass;
 
 ScopPass *createForwardOpTreePass();
-
 } // namespace polly
 
 #endif // POLLY_FORWARDOPTREE_H
index 54d5de9..40c6ea6 100644 (file)
@@ -91,7 +91,6 @@ private:
   ScopInfo *SI;
   DependenceInfoWrapperPass *DI;
 };
-
 } // end namespace polly
 
 namespace llvm {
index e75220f..6101b7e 100644 (file)
@@ -20,13 +20,11 @@ class Pass;
 class PassRegistry;
 
 void initializePruneUnprofitablePass(PassRegistry &);
-
 } // namespace llvm
 
 namespace polly {
 
 llvm::Pass *createPruneUnprofitablePass();
-
 } // namespace polly
 
 #endif // POLLY_PRUNEUNPROFITABLE_H
index 079acf1..ef44f34 100644 (file)
@@ -16,7 +16,6 @@
 namespace llvm {
 
 class TargetTransformInfo;
-
 } // namespace llvm
 
 struct isl_schedule_node;
@@ -70,7 +69,6 @@ struct MatMulInfoTy {
 };
 
 extern bool DisablePollyTiling;
-
 } // namespace polly
 
 class ScheduleTreeOptimizer {
index e1e351c..247e238 100644 (file)
@@ -44,7 +44,6 @@ class Value;
 
 void initializeScopInfoRegionPassPass(PassRegistry &);
 void initializeScopInfoWrapperPassPass(PassRegistry &);
-
 } // end namespace llvm
 
 namespace polly {
@@ -404,7 +403,6 @@ public:
   ///         for the region
   std::unique_ptr<Scop> getScop() { return std::move(scop); }
 };
-
 } // end namespace polly
 
 #endif // POLLY_SCOPBUILDER_H
index 7e61c06..31d54d8 100644 (file)
@@ -90,7 +90,6 @@ class SwitchInst;
 class Value;
 
 void initializeScopDetectionWrapperPassPass(PassRegistry &);
-
 } // namespace llvm
 
 namespace polly {
@@ -670,7 +669,6 @@ struct ScopDetectionWrapperPass : public FunctionPass {
   ScopDetection &getSD() { return *Result; }
   const ScopDetection &getSD() const { return *Result; }
 };
-
 } // namespace polly
 
 #endif // POLLY_SCOPDETECTION_H
index d5fa238..12f79d1 100644 (file)
@@ -42,7 +42,6 @@ class raw_ostream;
 class Region;
 class SCEV;
 class Value;
-
 } // namespace llvm
 
 namespace polly {
@@ -830,7 +829,6 @@ public:
   std::string getEndUserMessage() const override;
   //@}
 };
-
 } // namespace polly
 
 #endif // POLLY_SCOPDETECTIONDIAGNOSTIC_H
index 8f66d05..0fb0876 100644 (file)
@@ -75,7 +75,6 @@ class Value;
 
 void initializeScopInfoRegionPassPass(PassRegistry &);
 void initializeScopInfoWrapperPassPass(PassRegistry &);
-
 } // end namespace llvm
 
 struct isl_map;
@@ -3203,7 +3202,6 @@ public:
 
   void getAnalysisUsage(AnalysisUsage &AU) const override;
 };
-
 } // end namespace polly
 
 #endif // POLLY_SCOPINFO_H
index 5182a1b..4a6bac7 100644 (file)
@@ -268,7 +268,6 @@ FunctionToScopPassAdaptor<ScopPassT>
 createFunctionToScopPassAdaptor(ScopPassT Pass) {
   return FunctionToScopPassAdaptor<ScopPassT>(std::move(Pass));
 }
-
 } // namespace polly
 
 #endif
index 3c0fe40..5d85320 100644 (file)
@@ -430,7 +430,6 @@ public:
     return isl_ctx_last_error(IslCtx) == isl_error_quota;
   }
 };
-
 } // end namespace polly
 
 #endif
index 98ea42c..b6618df 100644 (file)
@@ -115,5 +115,4 @@ inline isl::pw_aff operator%(isl::pw_aff A, int i) {
   isl::ctx ctx = A.get_ctx();
   return A % isl::val(ctx, i);
 }
-
 } // namespace polly
index 0dfb530..25da2a4 100644 (file)
@@ -522,7 +522,6 @@ void dumpExpanded(__isl_keep isl_map *Map);
 void dumpExpanded(__isl_keep isl_union_set *USet);
 void dumpExpanded(__isl_keep isl_union_map *UMap);
 /// @}
-
 } // namespace polly
 
 #endif /* POLLY_ISLTOOLS_H */
index 81d954e..9794d35 100644 (file)
@@ -307,7 +307,6 @@ void markReachable(Scop *S, LoopInfo *LI,
                    DenseSet<VirtualInstruction> &UsedInsts,
                    DenseSet<MemoryAccess *> &UsedAccs,
                    ScopStmt *OnlyLocal = nullptr);
-
 } // namespace polly
 
 namespace llvm {
index 9dcaa73..262cadd 100644 (file)
@@ -92,7 +92,6 @@ public:
     return false;
   }
 };
-
 } // namespace
 
 char PruneUnprofitable::ID;
index b61ebcb..362580f 100644 (file)
@@ -304,7 +304,6 @@ public:
     return DI->getKind() == PluginDiagnosticKind;
   }
 };
-
 } // namespace
 
 int DiagnosticScopFound::PluginDiagnosticKind =
@@ -854,7 +853,6 @@ public:
 private:
   std::vector<const SCEV *> *Terms;
 };
-
 } // namespace
 
 SmallVector<const SCEV *, 4>
index 5a8b42d..ac1e751 100644 (file)
@@ -96,7 +96,6 @@ template <typename T> std::string operator+(Twine LHS, const T &RHS) {
 
   return LHS.concat(Buf).str();
 }
-
 } // namespace polly
 
 namespace llvm {
@@ -106,7 +105,6 @@ static bool operator<(const DebugLoc &LHS, const DebugLoc &RHS) {
   return LHS.getLine() < RHS.getLine() ||
          (LHS.getLine() == RHS.getLine() && LHS.getCol() < RHS.getCol());
 }
-
 } // namespace llvm
 
 namespace polly {
@@ -780,5 +778,4 @@ const DebugLoc &ReportUnprofitable::getDebugLoc() const {
 bool ReportUnprofitable::classof(const RejectReason *RR) {
   return RR->getKind() == RejectReasonKind::Unprofitable;
 }
-
 } // namespace polly
index fd4e65f..3908694 100644 (file)
@@ -197,7 +197,6 @@ struct DOTGraphTraits<ScopDetectionWrapperPass *>
                        O, 4);
   }
 };
-
 } // end namespace llvm
 
 struct ScopViewer
index e68551b..f5127ef 100644 (file)
@@ -1926,7 +1926,6 @@ public:
 
   bool isDone() { return FoundInside; }
 };
-
 } // end anonymous namespace
 
 const SCEV *Scop::getRepresentingInvariantLoadSCEV(const SCEV *E) const {
index 41a3b2f..d7e6c43 100644 (file)
@@ -94,7 +94,6 @@ void markBlockUnreachable(BasicBlock &Block, PollyIRBuilder &Builder) {
   Builder.CreateUnreachable();
   OrigTerminator->eraseFromParent();
 }
-
 } // namespace polly
 
 static void verifyGeneratedFunction(Scop &S, Function &F, IslAstInfo &AI) {
@@ -369,7 +368,6 @@ public:
     //        region tree.
   }
 };
-
 } // namespace
 
 PreservedAnalyses CodeGenerationPass::run(Scop &S, ScopAnalysisManager &SAM,
index 442411b..23767cf 100644 (file)
@@ -122,7 +122,6 @@ struct AstBuildUserInfo {
   /// The last iterator id created for the current SCoP.
   isl_id *LastForNodeId = nullptr;
 };
-
 } // namespace polly
 
 /// Free an IslAstUserPayload object pointed to by @p Ptr.
index 2ebe9e0..a824014 100644 (file)
@@ -413,7 +413,6 @@ public:
     return true;
   }
 };
-
 } // namespace
 char ManagedMemoryRewritePass::ID = 42;
 
index dbdf8fc..0cb8a30 100644 (file)
@@ -1007,7 +1007,6 @@ public:
 }; // class ForwardOpTree
 
 char ForwardOpTree::ID;
-
 } // namespace
 
 ScopPass *polly::createForwardOpTreePass() { return new ForwardOpTree(); }
index 2a14721..f8856f5 100644 (file)
@@ -112,7 +112,6 @@ private:
   void expandPhi(Scop &S, const ScopArrayInfo *SAI,
                  const isl::union_map &Dependences);
 };
-
 } // namespace
 
 #ifndef NDEBUG
index 7929a3d..0b302b9 100644 (file)
@@ -1411,7 +1411,6 @@ public:
 private:
   isl_schedule *LastSchedule = nullptr;
 };
-
 } // namespace
 
 char IslScheduleOptimizer::ID = 0;
index 064e8d3..a78c3e0 100644 (file)
@@ -102,7 +102,6 @@ public:
     CallGraphSCCPass::getAnalysisUsage(AU);
   }
 };
-
 } // namespace
 char ScopInliner::ID;
 
index 0880629..e8e960d 100644 (file)
@@ -66,5 +66,4 @@ TEST(Flatten, FlattenLoop) {
       "{ A[i] -> [i, 0] : 0 <= i < 10; B[i] -> [i, 1] : 0 <= i < 10 }",
       "{ A[i] -> [2i] : 0 <= i < 10; B[i] -> [2i + 1] : 0 <= i < 10 }"));
 }
-
 } // anonymous namespace
index acafe35..4f44f0f 100644 (file)
@@ -1071,5 +1071,4 @@ TEST(DeLICM, apply) {
                 UMAP("{ DomainRangeA[] -> NewDomainRangeA[];"
                      "DomainRangeB[] -> NewDomainRangeB[] }")));
 }
-
 } // anonymous namespace