gpu.c: create_copy_leaf: store index and local_index as isl_ast_exprs
commit49b2cd1e785c71fe9f77ab9f091d5df56e8e89f0
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 17 Oct 2012 09:26:25 +0000 (17 11:26 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 6 Nov 2012 17:33:38 +0000 (6 18:33 +0100)
tree41ea724dd7bab6192fc7491e88509a6d3b0f9903
parent45aa529ec12f8883033958b74efa8703ee16f19d
gpu.c: create_copy_leaf: store index and local_index as isl_ast_exprs

In particular, call isl_ast_build_call_from_pw_multi_aff to construct
a "call" isl_ast_expr that represents an access to an array element.
Since isl_ast_build_call_from_pw_multi_aff has access to the isl_ast_build,
it can potentially perform better simplifications on the expression.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
cuda.c
gpu.c
gpu.h