add isl_union_map_every_map
commit5d2ce80e77ba512a96039c4f221a448bfee57805
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Mon, 7 Aug 2017 09:48:05 +0000 (7 11:48 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Wed, 27 Sep 2017 07:23:33 +0000 (27 09:23 +0200)
tree902abbe2dd23e5205355a818b567cfffaced9aa6
parent211056f12e93d22e1bf6b13e0d40d0d95896e4ef
add isl_union_map_every_map

This function checks whether the callback function returns true
on each map in the union map and stops checking as soon as
one of the calls returns false.

In principle, the same effect can be obtained by using
isl_union_map_foreach_map, keeping track of the results
separately and returning isl_stat_error as soon as processing
can stop.  Even though this mechanism is commonly used
inside isl, it does constitute a slight abuse of the exception
handling and should not be exposed to the user.
The new isl_union_map_every_map exposes the desired functionality
in a more obvious way.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
doc/user.pod
include/isl/union_map.h
isl_union_map.c