From 14a3999354fd9b97fcfa5ccfa3904e010bec7366 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 2 Jul 2013 16:13:07 +0000 Subject: [PATCH] clang-format latest changes llvm-svn: 185440 --- polly/include/polly/CodeGen/PTXGenerator.h | 2 +- polly/lib/Analysis/TempScopInfo.cpp | 15 ++++++++------- polly/lib/Pocc.cpp | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/polly/include/polly/CodeGen/PTXGenerator.h b/polly/include/polly/CodeGen/PTXGenerator.h index 556549d7f9c2..767a4686aa57 100644 --- a/polly/include/polly/CodeGen/PTXGenerator.h +++ b/polly/include/polly/CodeGen/PTXGenerator.h @@ -186,6 +186,6 @@ private: /// @param SubFunction A pointer to the device code function. void eraseUnusedFunctions(Function *SubFunction); }; -} // end namespace polly +} // end namespace polly #endif /* GPU_CODEGEN */ #endif /* POLLY_CODEGEN_PTXGENERATOR_H */ diff --git a/polly/lib/Analysis/TempScopInfo.cpp b/polly/lib/Analysis/TempScopInfo.cpp index 6eab175444ad..4a9733ff826e 100644 --- a/polly/lib/Analysis/TempScopInfo.cpp +++ b/polly/lib/Analysis/TempScopInfo.cpp @@ -79,26 +79,27 @@ void TempScop::print(raw_ostream &OS, ScalarEvolution *SE, LoopInfo *LI) const { printDetail(OS, SE, LI, &R, 0); } -void TempScop::printDetail(raw_ostream &OS, ScalarEvolution *SE, - LoopInfo *LI, const Region *CurR, - unsigned ind) const { +void TempScop::printDetail(raw_ostream &OS, ScalarEvolution *SE, LoopInfo *LI, + const Region *CurR, unsigned ind) const { // FIXME: Print other details rather than memory accesses. typedef Region::const_block_iterator bb_iterator; - for (bb_iterator I = CurR->block_begin(), E = CurR->block_end(); I != E; ++I){ + for (bb_iterator I = CurR->block_begin(), E = CurR->block_end(); I != E; + ++I) { BasicBlock *CurBlock = *I; AccFuncMapType::const_iterator AccSetIt = AccFuncMap.find(CurBlock); // Ignore trivial blocks that do not contain any memory access. - if (AccSetIt == AccFuncMap.end()) continue; + if (AccSetIt == AccFuncMap.end()) + continue; OS.indent(ind) << "BB: " << CurBlock->getName() << '\n'; typedef AccFuncSetType::const_iterator access_iterator; const AccFuncSetType &AccFuncs = AccSetIt->second; - for (access_iterator AI = AccFuncs.begin(), AE = AccFuncs.end(); - AI != AE; ++AI) + for (access_iterator AI = AccFuncs.begin(), AE = AccFuncs.end(); AI != AE; + ++AI) AI->first.print(OS.indent(ind + 2)); } } diff --git a/polly/lib/Pocc.cpp b/polly/lib/Pocc.cpp index 30bf1a7dc537..5d084dbc6e75 100644 --- a/polly/lib/Pocc.cpp +++ b/polly/lib/Pocc.cpp @@ -76,7 +76,7 @@ bool Pocc::runTransform(Scop &S) { // Create the scop file. SmallString<128> TempDir; SmallString<128> ScopFile; - llvm::sys::path::system_temp_directory(/*erasedOnReboot=*/ true, TempDir); + llvm::sys::path::system_temp_directory(/*erasedOnReboot=*/true, TempDir); ScopFile = TempDir; llvm::sys::path::append(ScopFile, "polly.scop");