diff options
Diffstat (limited to 'polly/lib/CodeGen/IslNodeBuilder.cpp')
| -rw-r--r-- | polly/lib/CodeGen/IslNodeBuilder.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/polly/lib/CodeGen/IslNodeBuilder.cpp b/polly/lib/CodeGen/IslNodeBuilder.cpp index 381195d48ee..cd4f8d6605a 100644 --- a/polly/lib/CodeGen/IslNodeBuilder.cpp +++ b/polly/lib/CodeGen/IslNodeBuilder.cpp @@ -849,7 +849,7 @@ __isl_give isl_id_to_ast_expr * IslNodeBuilder::createNewAccesses(ScopStmt *Stmt, __isl_keep isl_ast_node *Node) { isl_id_to_ast_expr *NewAccesses = - isl_id_to_ast_expr_alloc(Stmt->getParent()->getIslCtx(), 0); + isl_id_to_ast_expr_alloc(Stmt->getParent()->getIslCtx().get(), 0); auto *Build = IslAstInfo::getBuild(Node); assert(Build && "Could not obtain isl_ast_build from user node"); @@ -1072,7 +1072,7 @@ bool IslNodeBuilder::materializeValue(isl_id *Id) { auto MemInst = MemAccInst::dyn_cast(Inst); auto Address = MemInst ? MemInst.getPointerOperand() : nullptr; if (Address && SE.getUnknown(UndefValue::get(Address->getType())) == - SE.getPointerBase(SE.getSCEV(Address))) { + SE.getPointerBase(SE.getSCEV(Address))) { } else if (S.getStmtFor(Inst)) { IsDead = false; } else { @@ -1353,7 +1353,7 @@ bool IslNodeBuilder::preloadInvariantEquivClass( return false; // The execution context of the IAClass. - isl_set *&ExecutionCtx = IAClass.ExecutionContext; + isl::set &ExecutionCtx = IAClass.ExecutionContext; // If the base pointer of this class is dependent on another one we have to // make sure it was preloaded already. @@ -1364,8 +1364,8 @@ bool IslNodeBuilder::preloadInvariantEquivClass( // After we preloaded the BaseIAClass we adjusted the BaseExecutionCtx and // we need to refine the ExecutionCtx. - isl_set *BaseExecutionCtx = isl_set_copy(BaseIAClass->ExecutionContext); - ExecutionCtx = isl_set_intersect(ExecutionCtx, BaseExecutionCtx); + isl::set BaseExecutionCtx = BaseIAClass->ExecutionContext; + ExecutionCtx = ExecutionCtx.intersect(BaseExecutionCtx); } // If the size of a dimension is dependent on another class, make sure it is @@ -1381,8 +1381,8 @@ bool IslNodeBuilder::preloadInvariantEquivClass( // After we preloaded the BaseIAClass we adjusted the BaseExecutionCtx // and we need to refine the ExecutionCtx. - isl_set *BaseExecutionCtx = isl_set_copy(BaseIAClass->ExecutionContext); - ExecutionCtx = isl_set_intersect(ExecutionCtx, BaseExecutionCtx); + isl::set BaseExecutionCtx = BaseIAClass->ExecutionContext; + ExecutionCtx = ExecutionCtx.intersect(BaseExecutionCtx); } } } @@ -1390,7 +1390,7 @@ bool IslNodeBuilder::preloadInvariantEquivClass( Instruction *AccInst = MA->getAccessInstruction(); Type *AccInstTy = AccInst->getType(); - Value *PreloadVal = preloadInvariantLoad(*MA, isl_set_copy(ExecutionCtx)); + Value *PreloadVal = preloadInvariantLoad(*MA, ExecutionCtx.copy()); if (!PreloadVal) return false; |

