gpu_array_ref_group: replace last_shared by depth
commitf6467da11a2738fcc282b9aec4cf6c38dcc3f8f9
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 26 Sep 2014 06:24:29 +0000 (26 08:24 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 7 Apr 2015 07:58:24 +0000 (7 09:58 +0200)
tree88aa5ac7d363f091df0583055c0eb1bb8a9ac3c2
parentb17857e7b7008ed8e327381cc5ed68281c8e11d5
gpu_array_ref_group: replace last_shared by depth

While last_shared was the index of the last dimension that affects
the tile, depth is the number of dimensions that affect the tile.
That is, the depth is one greater.
The depth is easier to work with, especially when we switch
to schedule trees as it reflects the depth where the copying
should be performed.

Note that it may be tempting to define the depth of a tile
rather than the depth of a group, but the only place where
the shared tile is used when a private tile is defined as well
for the same group is group_common_shared_memory_tile and
in that case we need the depth of the effective tile
(i.e., the private tile).

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