[llvm-commits] [polly] r131357 - in /polly/trunk: include/polly/Cloog.h lib/Cloog.cpp lib/CodeGeneration.cpp

Tobias Grosser grosser at fim.uni-passau.de
Sat May 14 12:02:29 PDT 2011


Author: grosser
Date: Sat May 14 14:02:29 2011
New Revision: 131357

URL: http://llvm.org/viewvc/llvm-project?rev=131357&view=rev
Log:
Cloog: Export clast_root

Modified:
    polly/trunk/include/polly/Cloog.h
    polly/trunk/lib/Cloog.cpp
    polly/trunk/lib/CodeGeneration.cpp

Modified: polly/trunk/include/polly/Cloog.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Cloog.h?rev=131357&r1=131356&r2=131357&view=diff
==============================================================================
--- polly/trunk/include/polly/Cloog.h (original)
+++ polly/trunk/include/polly/Cloog.h Sat May 14 14:02:29 2011
@@ -53,7 +53,7 @@
     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;

Modified: polly/trunk/lib/Cloog.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Cloog.cpp?rev=131357&r1=131356&r2=131357&view=diff
==============================================================================
--- polly/trunk/lib/Cloog.cpp (original)
+++ polly/trunk/lib/Cloog.cpp Sat May 14 14:02:29 2011
@@ -57,7 +57,7 @@
   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 @@
 }
 
 /// 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 @@
 }
 
 /// Create the Cloog AST from this program.
-const struct clast_stmt *CloogInfo::getClast() {
+const struct clast_root *CloogInfo::getClast() {
   return C->getClast();
 }
 

Modified: polly/trunk/lib/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGeneration.cpp?rev=131357&r1=131356&r2=131357&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Sat May 14 14:02:29 2011
@@ -1462,7 +1462,7 @@
       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(),





More information about the llvm-commits mailing list