From 2aec339d28c821595576b12333461ea693780cf6 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sat, 14 May 2011 19:02:29 +0000 Subject: [PATCH] Cloog: Export clast_root llvm-svn: 131357 --- polly/include/polly/Cloog.h | 2 +- polly/lib/Cloog.cpp | 8 ++++---- polly/lib/CodeGeneration.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/polly/include/polly/Cloog.h b/polly/include/polly/Cloog.h index b200fd51d540..b84bd56fe479 100644 --- a/polly/include/polly/Cloog.h +++ b/polly/include/polly/Cloog.h @@ -53,7 +53,7 @@ namespace polly { void pprint(llvm::raw_ostream &OS); /// Create the CLooG AST from this program. - const struct clast_stmt *getClast(); + const struct clast_root *getClast(); bool runOnScop(Scop &S); void printScop(llvm::raw_ostream &OS) const; diff --git a/polly/lib/Cloog.cpp b/polly/lib/Cloog.cpp index b020adc0cfc3..aa1ac9f5c58e 100644 --- a/polly/lib/Cloog.cpp +++ b/polly/lib/Cloog.cpp @@ -57,7 +57,7 @@ public: void pprint(llvm::raw_ostream &OS); /// Create the Cloog AST from this program. - struct clast_stmt *getClast(); + struct clast_root *getClast(); }; Cloog::Cloog(Scop *Scop) : S(Scop) { @@ -137,8 +137,8 @@ void Cloog::pprint(raw_ostream &OS) { } /// Create the Cloog AST from this program. -struct clast_stmt *Cloog::getClast() { - return ClastRoot; +struct clast_root *Cloog::getClast() { + return (clast_root*)ClastRoot; } void Cloog::buildCloogOptions() { @@ -261,7 +261,7 @@ void CloogInfo::pprint(llvm::raw_ostream &OS) { } /// Create the Cloog AST from this program. -const struct clast_stmt *CloogInfo::getClast() { +const struct clast_root *CloogInfo::getClast() { return C->getClast(); } diff --git a/polly/lib/CodeGeneration.cpp b/polly/lib/CodeGeneration.cpp index 7ca272634233..b83fabbcfe93 100644 --- a/polly/lib/CodeGeneration.cpp +++ b/polly/lib/CodeGeneration.cpp @@ -1462,7 +1462,7 @@ class CodeGeneration : public ScopPass { addOpenMPDefinitions(builder); ClastStmtCodeGen CodeGen(S, *SE, DT, SD, DP, TD, builder); - CodeGen.codegen((const clast_root *) C->getClast()); + CodeGen.codegen(C->getClast()); parallelLoops.insert(parallelLoops.begin(), CodeGen.getParallelLoops().begin(),