Print function and region name in scop description

llvm-svn: 204165
This commit is contained in:
Tobias Grosser 2014-03-18 18:05:38 +00:00
parent fcdc45ff2d
commit 483fdd4b7f
2 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,7 @@ void Dependences::collectInfo(Scop &S, isl_union_map **Read,
void Dependences::calculateDependences(Scop &S) {
isl_union_map *Read, *Write, *MayWrite, *Schedule;
DEBUG(dbgs() << "Scop: " << S << "\n");
DEBUG(dbgs() << "Scop: \n" << S << "\n");
collectInfo(S, &Read, &Write, &MayWrite, &Schedule);

View File

@ -943,6 +943,9 @@ void Scop::printStatements(raw_ostream &OS) const {
}
void Scop::print(raw_ostream &OS) const {
OS.indent(4) << "Function: "
<< getRegion().getEntry()->getParent()->getName() << "\n";
OS.indent(4) << "Region: " << getNameStr() << "\n";
printContext(OS.indent(4));
printStatements(OS.indent(4));
}