forked from OSchip/llvm-project
parent
456198d6a1
commit
14a3999354
|
@ -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 */
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue