diff options
| author | Tobias Grosser <tobias@grosser.es> | 2017-07-24 16:22:32 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2017-07-24 16:22:32 +0000 |
| commit | 1f6ba7e238b72fca0bd2af046cd383081eaf783e (patch) | |
| tree | ecec8f1f13ef572a6a62a194c988ea8f03e9f2f7 | |
| parent | 206e9e3b3b9c6f6f960ea89c81fe9bf54e6c5b46 (diff) | |
| download | bcm5719-llvm-1f6ba7e238b72fca0bd2af046cd383081eaf783e.tar.gz bcm5719-llvm-1f6ba7e238b72fca0bd2af046cd383081eaf783e.zip | |
Move MemoryAccess::MemoryAccess to isl++
llvm-svn: 308893
| -rw-r--r-- | polly/include/polly/ScopInfo.h | 2 | ||||
| -rw-r--r-- | polly/lib/Analysis/ScopInfo.cpp | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 4d681771ddc..03d5ff81e19 100644 --- a/polly/include/polly/ScopInfo.h +++ b/polly/include/polly/ScopInfo.h @@ -747,7 +747,7 @@ public: /// @param Stmt The parent statement. /// @param AccType Whether read or write access. /// @param AccRel The access relation that describes the memory access. - MemoryAccess(ScopStmt *Stmt, AccessType AccType, __isl_take isl_map *AccRel); + MemoryAccess(ScopStmt *Stmt, AccessType AccType, isl::map AccRel); ~MemoryAccess(); diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index cd1a0b46112..fcf1edcf58f 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -1010,12 +1010,11 @@ MemoryAccess::MemoryAccess(ScopStmt *Stmt, Instruction *AccessInst, Id = isl::id::alloc(Stmt->getParent()->getIslCtx(), IdName.c_str(), this); } -MemoryAccess::MemoryAccess(ScopStmt *Stmt, AccessType AccType, - __isl_take isl_map *AccRel) +MemoryAccess::MemoryAccess(ScopStmt *Stmt, AccessType AccType, isl::map AccRel) : Kind(MemoryKind::Array), AccType(AccType), RedType(RT_NONE), Statement(Stmt), InvalidDomain(nullptr), AccessInstruction(nullptr), - IsAffine(true), AccessRelation(nullptr), - NewAccessRelation(isl::manage(AccRel)), FAD(nullptr) { + IsAffine(true), AccessRelation(nullptr), NewAccessRelation(AccRel), + FAD(nullptr) { isl::id ArrayInfoId = NewAccessRelation.get_tuple_id(isl::dim::out); auto *SAI = ScopArrayInfo::getFromId(ArrayInfoId); Sizes.push_back(nullptr); @@ -1746,12 +1745,13 @@ ScopStmt::ScopStmt(Scop &parent, __isl_take isl_map *SourceRel, auto *Id = isl_id_alloc(getIslCtx(), getBaseName(), this); Domain = isl_set_set_tuple_id(Domain, isl_id_copy(Id)); TargetRel = isl_map_set_tuple_id(TargetRel, isl_dim_in, Id); - auto *Access = - new MemoryAccess(this, MemoryAccess::AccessType::MUST_WRITE, TargetRel); + auto *Access = new MemoryAccess(this, MemoryAccess::AccessType::MUST_WRITE, + isl::manage(TargetRel)); parent.addAccessFunction(Access); addAccess(Access); SourceRel = isl_map_set_tuple_id(SourceRel, isl_dim_in, isl_id_copy(Id)); - Access = new MemoryAccess(this, MemoryAccess::AccessType::READ, SourceRel); + Access = new MemoryAccess(this, MemoryAccess::AccessType::READ, + isl::manage(SourceRel)); parent.addAccessFunction(Access); addAccess(Access); } |

