Expose, document and test isl_map_get_basic_map_list
commit26374bbf83218c813954f7300f0057723d3b509c
authorTobias Grosser <tobias@grosser.es>
Mon, 28 May 2018 09:08:30 +0000 (28 11:08 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Tue, 29 May 2018 21:26:34 +0000 (29 23:26 +0200)
tree28e056902000b49d5c753fe9ae6496d062ff87de
parent87f3118c455cf22ac65e1b1c60e463e81e934064
Expose, document and test isl_map_get_basic_map_list

This matches isl_set_get_basic_set_list, which was exposed in d25e556
(add isl_set_get_basic_set_list, Wed Apr 29 13:41:45 2015 +0200) with
the following motivation:

"It is sometimes more convenient to manipulate a list of basic sets
rather than to iterate over them individually."

For isl maps the same motivation exists. Even though often higher-level
operations reduce the need to inspect the specific basic maps, there are
certain uses (e.g., inspecting how "complex" a map is or writing a custom
printer for a map) which require the inspection and sometimes sorting of
basic maps. Especially sorting is more easily expressed on a list of
basic maps. Hence, functionality to obtain a basic map list from a map
is exposed.

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
doc/user.pod
include/isl/map.h
isl_map_private.h
isl_test.c