isl_schedule: don't let users get access to internal isl_band_lists
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 3 Jul 2011 17:56:48 +0000 (19:56 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 5 Jul 2011 17:55:55 +0000 (19:55 +0200)
commit0c59aae9f850bc3cea66e3fb6e70ad15d4b120ef
tree28f6c7a9398119a8065c559d88c4fc164da16bb8
parent7a0a11ba25ac6c0a9d31fc795b8e8b00d612f5dc
isl_schedule: don't let users get access to internal isl_band_lists

We have been careful to keep the isl_schedule alive whenever the user
is holding on to an isl_band, but if the user only has a reference
to an isl_band_list inside the schedule, then the schedule can still
disappear.  We therefore hand out duplicates of internal lists.
These duplicates contain copies of the isl_bands and these outside
references keep the schedule alive.

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