[polly] r310216 - [ScopInfo] Move ScopStmt::setAstBuild/getAstBuild to isl++
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 6 10:53:05 PDT 2017
Author: grosser
Date: Sun Aug 6 10:53:04 2017
New Revision: 310216
URL: http://llvm.org/viewvc/llvm-project?rev=310216&view=rev
Log:
[ScopInfo] Move ScopStmt::setAstBuild/getAstBuild to isl++
Modified:
polly/trunk/include/polly/ScopInfo.h
polly/trunk/lib/CodeGen/BlockGenerators.cpp
polly/trunk/lib/CodeGen/IslNodeBuilder.cpp
Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=310216&r1=310215&r2=310216&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Sun Aug 6 10:53:04 2017
@@ -1272,7 +1272,7 @@ private:
///}
/// The isl AST build for the new generated AST.
- isl_ast_build *Build;
+ isl::ast_build Build;
SmallVector<Loop *, 4> NestLoops;
@@ -1590,10 +1590,10 @@ public:
const char *getBaseName() const;
/// Set the isl AST build.
- void setAstBuild(__isl_keep isl_ast_build *B) { Build = B; }
+ void setAstBuild(isl::ast_build B) { Build = B; }
/// Get the isl AST build.
- __isl_keep isl_ast_build *getAstBuild() const { return Build; }
+ isl::ast_build getAstBuild() const { return Build; }
/// Restrict the domain of the statement.
///
Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=310216&r1=310215&r2=310216&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Sun Aug 6 10:53:04 2017
@@ -574,7 +574,7 @@ void BlockGenerator::generateScalarLoads
Value *BlockGenerator::buildContainsCondition(ScopStmt &Stmt,
const isl::set &Subdomain) {
- isl::ast_build AstBuild = give(isl_ast_build_copy(Stmt.getAstBuild()));
+ isl::ast_build AstBuild = Stmt.getAstBuild();
isl::set Domain = Stmt.getDomain();
isl::union_map USchedule = AstBuild.get_schedule();
Modified: polly/trunk/lib/CodeGen/IslNodeBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslNodeBuilder.cpp?rev=310216&r1=310215&r2=310216&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslNodeBuilder.cpp (original)
+++ polly/trunk/lib/CodeGen/IslNodeBuilder.cpp Sun Aug 6 10:53:04 2017
@@ -786,7 +786,7 @@ IslNodeBuilder::createNewAccesses(ScopSt
auto *Build = IslAstInfo::getBuild(Node);
assert(Build && "Could not obtain isl_ast_build from user node");
- Stmt->setAstBuild(Build);
+ Stmt->setAstBuild(isl::manage(isl_ast_build_copy(Build)));
for (auto *MA : *Stmt) {
if (!MA->hasNewAccessRelation()) {
More information about the llvm-commits
mailing list