From f59a092d3eead6280a7488b32462594bcbd7ef0d Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 31 Oct 2013 11:18:11 +0100 Subject: [PATCH] add isl_basic_map_list Signed-off-by: Sven Verdoolaege --- Makefile.am | 1 + doc/user.pod | 3 ++- include/isl/map.h | 2 ++ include/isl/map_type.h | 1 + isl_map_list.c | 11 +++++++++++ isl_map_private.h | 1 - 6 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 isl_map_list.c diff --git a/Makefile.am b/Makefile.am index f975d6a2..4fec15bb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -107,6 +107,7 @@ libisl_la_SOURCES = \ isl_lp.c \ isl_lp_private.h \ isl_map.c \ + isl_map_list.c \ isl_map_simplify.c \ isl_map_subtract.c \ isl_map_private.h \ diff --git a/doc/user.pod b/doc/user.pod index bae17c0c..7bad975a 100644 --- a/doc/user.pod +++ b/doc/user.pod @@ -6256,7 +6256,8 @@ where C is zero. Lists are defined over several element types, including C, C, C, C, C, -C, C, C and C. +C, C, C, +C and C. Here we take lists of Cs as an example. Lists can be created, copied, modified and freed using the following functions. diff --git a/include/isl/map.h b/include/isl/map.h index b617729e..4a40e001 100644 --- a/include/isl/map.h +++ b/include/isl/map.h @@ -690,6 +690,8 @@ __isl_give isl_map *isl_map_from_multi_aff(__isl_take isl_multi_aff *maff); __isl_give isl_pw_aff *isl_map_dim_max(__isl_take isl_map *map, int pos); +ISL_DECLARE_LIST_FN(basic_map) + #if defined(__cplusplus) } #endif diff --git a/include/isl/map_type.h b/include/isl/map_type.h index 148dc0d3..d3070b2b 100644 --- a/include/isl/map_type.h +++ b/include/isl/map_type.h @@ -10,6 +10,7 @@ extern "C" { struct __isl_subclass(isl_map) isl_basic_map; typedef struct isl_basic_map isl_basic_map; +ISL_DECLARE_LIST_TYPE(basic_map) struct __isl_subclass(isl_union_map) isl_map; typedef struct isl_map isl_map; diff --git a/isl_map_list.c b/isl_map_list.c new file mode 100644 index 00000000..aa769961 --- /dev/null +++ b/isl_map_list.c @@ -0,0 +1,11 @@ +#include + +#undef EL +#define EL isl_basic_map + +#include + +#undef BASE +#define BASE basic_map + +#include diff --git a/isl_map_private.h b/isl_map_private.h index 7f1cd589..fd933631 100644 --- a/isl_map_private.h +++ b/isl_map_private.h @@ -15,7 +15,6 @@ #define isl_basic_set_list isl_basic_map_list #define isl_set_list isl_map_list #include -ISL_DECLARE_LIST(basic_map) ISL_DECLARE_LIST(map) #include #include -- 2.11.4.GIT