gpu_local_array_info: keep track of the total number of indices
commitd493affbed2b74fb964d76bd05e0962a58776491
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 17 Apr 2014 11:22:45 +0000 (17 13:22 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 22 Jun 2014 15:37:16 +0000 (22 17:37 +0200)
treeb68d9c1ca6a629e05f08cd1ca3b3383621db624f
parent07f6d6cb6fc314bd28ddde58f8d3086f8c635f7c
gpu_local_array_info: keep track of the total number of indices

When passing rows or bigger slices of an array to a function,
the number of indices in an index expression may be smaller than
the total number of indices of an array (i.e., its dimension).
In the next commit we will adjust the linearization to take
this possibility into account, but in order to detect the situation,
we need to keep track of the total number of indices.

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