gpu.c: extract_array_info: reuse ppcg_size_from_extent
commit2aa418df531011e8b01b0ec21ac9940d3e9b2ff8
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 11 Feb 2016 10:28:52 +0000 (11 11:28 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 15 Feb 2016 09:36:29 +0000 (15 10:36 +0100)
tree067c19bef202c24671b6a12b8ad4d2ab04401f37
parent78470051e560dd04d3eb4f7ee88572b39a111935
gpu.c: extract_array_info: reuse ppcg_size_from_extent

Some minor adjustments are required to be able to reuse
ppcg_size_from_extent from extract_array_info.
In particular, extract_array_info performs an extra test
to verify that there is a bound on the extent.  Move that
test into ppcg_size_from_extent.
Also, store the result of ppcg_size_from_extent directly
into gpu_array_info as an isl_multi_pw_aff.
While it would be possible to extract the isl_pw_aff objects
from the isl_multi_pw_aff inside extract_array_info,
the isl_multi_pw_aff is more convenient to work with.

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