isl_multi_*: store pieces in a union
commit5f12035fbd9730d9b0a7d94beb94ca23fc8bc4a2
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Mon, 16 Oct 2017 13:08:00 +0000 (16 15:08 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sun, 4 Mar 2018 14:36:00 +0000 (4 15:36 +0100)
tree99af3b1cf0b0bfc2a92282e9174d8b9838248f0e
parent6fdd97973049e96f8e2fc7a566053d77cc7daf19
isl_multi_*: store pieces in a union

In particular, only consider the field representing the pieces
to be valid when the number of base expressions is greater than zero.
Since the field is only used to access a base expression,
it is never used when the number of base expression is zero.
Making this condition more explicit allows the field
to overlap with the domain of a zero-dimensional expression,
which will be introduced in an upcoming commit.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
14 files changed:
isl_aff.c
isl_local_space.c
isl_map.c
isl_multi_apply_templ.c
isl_multi_cmp.c
isl_multi_coalesce.c
isl_multi_dims.c
isl_multi_floor.c
isl_multi_hash.c
isl_multi_templ.c
isl_multi_templ.h
isl_output.c
isl_tab_pip.c
isl_val.c