isl_union_map.c: cond_un_op: unify callbacks
commit087cad639507c21375996cb152d20d6fe9ccba94
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 15 Feb 2017 15:22:33 +0000 (15 16:22 +0100)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Wed, 17 May 2017 08:15:52 +0000 (17 10:15 +0200)
tree4f7d9990656d4877e65328547b057641f7794135
parent77835d14ef5acb78e44f05bd13956596a45dd078
isl_union_map.c: cond_un_op: unify callbacks

The callers of cond_un_op have callbacks of one of two types,
either they simply apply a map-function to the entry and collect
the result or they additionally first check whether the map-function
can be applied.
Replace these callbacks by a single callback that performs
these operations based on input set by the caller of cond_un_op,
in particular, the function that should be called on each map and
the function that is used to filter the maps (if any).

This removes some code duplication and, with some further modifications,
will allow inplace and un_op to be implemented in terms of cond_un_op.

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