From 45ce70f65ebf411a7544004e23e16e2c1350e822 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 21 Nov 2014 11:11:04 +0100 Subject: [PATCH] add isl_map_list Signed-off-by: Sven Verdoolaege --- doc/user.pod | 2 +- include/isl/map.h | 1 + include/isl/map_type.h | 1 + isl_map_list.c | 10 ++++++++++ isl_map_private.h | 1 - 5 files changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/user.pod b/doc/user.pod index 7bad975a..c771ab88 100644 --- a/doc/user.pod +++ b/doc/user.pod @@ -6256,7 +6256,7 @@ where C is zero. Lists are defined over several element types, including C, C, C, C, C, -C, C, C, +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 4a40e001..57fe8a9f 100644 --- a/include/isl/map.h +++ b/include/isl/map.h @@ -691,6 +691,7 @@ __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) +ISL_DECLARE_LIST_FN(map) #if defined(__cplusplus) } diff --git a/include/isl/map_type.h b/include/isl/map_type.h index d3070b2b..7c30056f 100644 --- a/include/isl/map_type.h +++ b/include/isl/map_type.h @@ -13,6 +13,7 @@ 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; +ISL_DECLARE_LIST_TYPE(map) #ifndef isl_basic_set struct __isl_subclass(isl_set) isl_basic_set; diff --git a/isl_map_list.c b/isl_map_list.c index aa769961..0b41afc8 100644 --- a/isl_map_list.c +++ b/isl_map_list.c @@ -9,3 +9,13 @@ #define BASE basic_map #include + +#undef EL +#define EL isl_map + +#include + +#undef BASE +#define BASE map + +#include diff --git a/isl_map_private.h b/isl_map_private.h index fd933631..9550391f 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(map) #include #include #include -- 2.11.4.GIT