gpu: read tile sizes before ppcg_kernel objects are created
commit6c03fe612a8d3a2c4cc52e5babb2d8ece091e914
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 19 Aug 2014 15:19:46 +0000 (19 17:19 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 30 Mar 2015 11:40:27 +0000 (30 13:40 +0200)
treeeb801fd7e8d6f17265f69048e9cb9114b58165df
parentce2292423c6c414adca3bdb6e0f939b36ff1a7f1
gpu: read tile sizes before ppcg_kernel objects are created

We want to perform the tiling that creates two bands with parallel dimensions
from a single band before the kernel creation such that in the future
we could also allow different ways of specifying two such bands.
This means that we need to read the tile sizes before the kernel objects
are created.

Since we currently still need those tile sizes during the AST generation,
we also save them in the ppcg_kernel object.  In order to get a handle
on the ppcg_kernel object, we temporarily store it in gen->kernel.
This will be removed as soon as we no longer need to store extra
information in the ppcg_kernel object inside mark_outer_tilable.

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