clang-format latest changes

llvm-svn: 185440
This commit is contained in:
Tobias Grosser 2013-07-02 16:13:07 +00:00
parent 456198d6a1
commit 14a3999354
3 changed files with 10 additions and 9 deletions

View File

@ -186,6 +186,6 @@ private:
/// @param SubFunction A pointer to the device code function. /// @param SubFunction A pointer to the device code function.
void eraseUnusedFunctions(Function *SubFunction); void eraseUnusedFunctions(Function *SubFunction);
}; };
} // end namespace polly } // end namespace polly
#endif /* GPU_CODEGEN */ #endif /* GPU_CODEGEN */
#endif /* POLLY_CODEGEN_PTXGENERATOR_H */ #endif /* POLLY_CODEGEN_PTXGENERATOR_H */

View File

@ -79,26 +79,27 @@ void TempScop::print(raw_ostream &OS, ScalarEvolution *SE, LoopInfo *LI) const {
printDetail(OS, SE, LI, &R, 0); printDetail(OS, SE, LI, &R, 0);
} }
void TempScop::printDetail(raw_ostream &OS, ScalarEvolution *SE, void TempScop::printDetail(raw_ostream &OS, ScalarEvolution *SE, LoopInfo *LI,
LoopInfo *LI, const Region *CurR, const Region *CurR, unsigned ind) const {
unsigned ind) const {
// FIXME: Print other details rather than memory accesses. // FIXME: Print other details rather than memory accesses.
typedef Region::const_block_iterator bb_iterator; 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; BasicBlock *CurBlock = *I;
AccFuncMapType::const_iterator AccSetIt = AccFuncMap.find(CurBlock); AccFuncMapType::const_iterator AccSetIt = AccFuncMap.find(CurBlock);
// Ignore trivial blocks that do not contain any memory access. // 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'; OS.indent(ind) << "BB: " << CurBlock->getName() << '\n';
typedef AccFuncSetType::const_iterator access_iterator; typedef AccFuncSetType::const_iterator access_iterator;
const AccFuncSetType &AccFuncs = AccSetIt->second; const AccFuncSetType &AccFuncs = AccSetIt->second;
for (access_iterator AI = AccFuncs.begin(), AE = AccFuncs.end(); for (access_iterator AI = AccFuncs.begin(), AE = AccFuncs.end(); AI != AE;
AI != AE; ++AI) ++AI)
AI->first.print(OS.indent(ind + 2)); AI->first.print(OS.indent(ind + 2));
} }
} }

View File

@ -76,7 +76,7 @@ bool Pocc::runTransform(Scop &S) {
// Create the scop file. // Create the scop file.
SmallString<128> TempDir; SmallString<128> TempDir;
SmallString<128> ScopFile; SmallString<128> ScopFile;
llvm::sys::path::system_temp_directory(/*erasedOnReboot=*/ true, TempDir); llvm::sys::path::system_temp_directory(/*erasedOnReboot=*/true, TempDir);
ScopFile = TempDir; ScopFile = TempDir;
llvm::sys::path::append(ScopFile, "polly.scop"); llvm::sys::path::append(ScopFile, "polly.scop");