[polly] r204165 - Print function and region name in scop description

Tobias Grosser tobias at grosser.es
Tue Mar 18 11:05:39 PDT 2014


Author: grosser
Date: Tue Mar 18 13:05:38 2014
New Revision: 204165

URL: http://llvm.org/viewvc/llvm-project?rev=204165&view=rev
Log:
Print function and region name in scop description

Modified:
    polly/trunk/lib/Analysis/Dependences.cpp
    polly/trunk/lib/Analysis/ScopInfo.cpp

Modified: polly/trunk/lib/Analysis/Dependences.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/Dependences.cpp?rev=204165&r1=204164&r2=204165&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/Dependences.cpp (original)
+++ polly/trunk/lib/Analysis/Dependences.cpp Tue Mar 18 13:05:38 2014
@@ -98,7 +98,7 @@ void Dependences::collectInfo(Scop &S, i
 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);
 

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=204165&r1=204164&r2=204165&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue Mar 18 13:05:38 2014
@@ -943,6 +943,9 @@ void Scop::printStatements(raw_ostream &
 }
 
 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));
 }





More information about the llvm-commits mailing list