summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/PPCGCodeGeneration.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2017-08-10 08:00:56 +0000
committerTobias Grosser <tobias@grosser.es>2017-08-10 08:00:56 +0000
commitcff9696e11649ee346d6b3f68b57cd68cedb3c11 (patch)
tree38feeba7e0baa6fdbdf72534f711d655532fd7a8 /polly/lib/CodeGen/PPCGCodeGeneration.cpp
parent22ba97a0a6be75d2d5d497152da3782bd9270ba2 (diff)
downloadbcm5719-llvm-cff9696e11649ee346d6b3f68b57cd68cedb3c11.tar.gz
bcm5719-llvm-cff9696e11649ee346d6b3f68b57cd68cedb3c11.zip
[GPGPU] Make the ast_build available to block generator
This is necessary for partial writes (as used by delicm) to work. llvm-svn: 310553
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/PPCGCodeGeneration.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
index 0de2115bf0b..fc1a5ca7d8e 100644
--- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp
+++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
@@ -288,6 +288,8 @@ static __isl_give isl_id_to_ast_expr *pollyBuildAstExprForStmt(
isl::ctx Ctx = Build.get_ctx();
isl::id_to_ast_expr RefToExpr = isl::id_to_ast_expr::alloc(Ctx, 0);
+ Stmt->setAstBuild(Build);
+
for (MemoryAccess *Acc : *Stmt) {
isl::map AddrFunc = Acc->getAddressFunction();
AddrFunc = AddrFunc.intersect_domain(Stmt->getDomain());
OpenPOWER on IntegriCloud