Cloog: Export clast_root

llvm-svn: 131357
This commit is contained in:
Tobias Grosser 2011-05-14 19:02:29 +00:00
parent e91c53d2a9
commit 2aec339d28
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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();
}

View File

@ -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(),