forked from OSchip/llvm-project
Print function and region name in scop description
llvm-svn: 204165
This commit is contained in:
parent
fcdc45ff2d
commit
483fdd4b7f
|
@ -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);
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue