From 483fdd4b7fce4b1cc61729f1c8c28b1f2f4bb484 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 18 Mar 2014 18:05:38 +0000 Subject: [PATCH] Print function and region name in scop description llvm-svn: 204165 --- polly/lib/Analysis/Dependences.cpp | 2 +- polly/lib/Analysis/ScopInfo.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/polly/lib/Analysis/Dependences.cpp b/polly/lib/Analysis/Dependences.cpp index 462273b71b23..59c77049285c 100644 --- a/polly/lib/Analysis/Dependences.cpp +++ b/polly/lib/Analysis/Dependences.cpp @@ -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); diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index e0f85736b10f..a9aca8a66efe 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -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)); }