include stride constraint in saved domains
commitbafe9e0dcafa786f534b50c50a8d5765ea9a7133
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 20 May 2011 16:51:16 +0000 (20 18:51 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 25 May 2011 08:54:40 +0000 (25 10:54 +0200)
tree61a5868444a6520a76d0d9567e8c7b04461424f5
parent7f6868b2f20382cad4e6a11891f9be5eefe7e7f1
include stride constraint in saved domains

When both the strides and the save_domains options are used,
the generated clast takes the strides into account, but the
associated domains would not contain any stride information.

Include the stride constraint so that the saved domain
matches the loop structure.
We need to do this in two places, one for the domains
on the clast_fors and one for those of clast_user_stmts.
For the former, we simply add the stride constraint right
before we save the domain.  For the latter, we add the stride
constraint to the context when recursing in the main code
generation algorithm.  If the current level is the last level
for which to generate code (according to the stop option),
then this context domain will end up as the domain of the
user statements and will therefore include the stride constraint.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
include/cloog/domain.h
source/isl/domain.c
source/loop.c