summaryrefslogtreecommitdiffstats
path: root/polly/lib/External
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-07-15 07:05:54 +0000
committerTobias Grosser <tobias@grosser.es>2016-07-15 07:05:54 +0000
commit60f63b49f26f1c9908a4828b7e7ac4441b17efaa (patch)
tree8940d5ffe05cfcf295583bdafc12305ae7bc1995 /polly/lib/External
parenteeb8a95ac57a77d702c81de1455ad39672e6037f (diff)
downloadbcm5719-llvm-60f63b49f26f1c9908a4828b7e7ac4441b17efaa.tar.gz
bcm5719-llvm-60f63b49f26f1c9908a4828b7e7ac4441b17efaa.zip
GPGPU: Model array access information
This allows us to derive host-device and device-host data-transfers. llvm-svn: 275535
Diffstat (limited to 'polly/lib/External')
-rw-r--r--polly/lib/External/ppcg/gpu.c2
-rw-r--r--polly/lib/External/ppcg/gpu.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/polly/lib/External/ppcg/gpu.c b/polly/lib/External/ppcg/gpu.c
index 218b918ddfe..e76e1494193 100644
--- a/polly/lib/External/ppcg/gpu.c
+++ b/polly/lib/External/ppcg/gpu.c
@@ -5309,7 +5309,7 @@ int generate_gpu(isl_ctx *ctx, const char *input, FILE *out,
* arrays that are not local to "prog" and remove those elements that
* are definitely killed or definitely written by "prog".
*/
-static __isl_give isl_union_set *compute_may_persist(struct gpu_prog *prog)
+__isl_give isl_union_set *compute_may_persist(struct gpu_prog *prog)
{
int i;
isl_union_set *may_persist, *killed;
diff --git a/polly/lib/External/ppcg/gpu.h b/polly/lib/External/ppcg/gpu.h
index 7d617de3fab..78bccdf8b54 100644
--- a/polly/lib/External/ppcg/gpu.h
+++ b/polly/lib/External/ppcg/gpu.h
@@ -369,4 +369,6 @@ __isl_give isl_schedule *map_to_device(struct gpu_gen *gen,
__isl_take isl_schedule *schedule);
__isl_give isl_ast_node *generate_code(struct gpu_gen *gen,
__isl_take isl_schedule *schedule);
+
+__isl_give isl_union_set *compute_may_persist(struct gpu_prog *prog);
#endif
OpenPOWER on IntegriCloud