From cf1a26838c13ea170fd09c40a97736b82369d901 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sun, 23 Oct 2011 10:57:44 +0000 Subject: [PATCH] Add CloogInfo debug output. llvm-svn: 142745 --- polly/lib/Cloog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/polly/lib/Cloog.cpp b/polly/lib/Cloog.cpp index 1c5d7e2f79bb..8575495b3e55 100644 --- a/polly/lib/Cloog.cpp +++ b/polly/lib/Cloog.cpp @@ -26,8 +26,10 @@ #include "polly/LinkAllPasses.h" #include "polly/ScopInfo.h" +#define DEBUG_TYPE "polly-cloog" #include "llvm/Assembly/Writer.h" #include "llvm/Module.h" +#include "llvm/Support/Debug.h" #include "cloog/isl/domain.h" #include "cloog/isl/cloog.h" @@ -280,6 +282,12 @@ bool CloogInfo::runOnScop(Scop &S) { C = new Cloog(&S); + Function *F = S.getRegion().getEntry()->getParent(); + + DEBUG(dbgs() << ":: " << F->getNameStr()); + DEBUG(dbgs() << " : " << S.getRegion().getNameStr() << "\n");; + DEBUG(C->pprint(dbgs())); + return false; }