From c4b3c2ebaa5c88b6a67e7cecd4ddf63a48233959 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 21 Nov 2014 19:40:42 +0100 Subject: [PATCH] add isl_union_map_list Signed-off-by: Sven Verdoolaege --- doc/user.pod | 2 +- include/isl/union_map.h | 2 ++ include/isl/union_map_type.h | 1 + isl_map_list.c | 10 ++++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/user.pod b/doc/user.pod index c771ab88..38ad379a 100644 --- a/doc/user.pod +++ b/doc/user.pod @@ -6257,7 +6257,7 @@ where C is zero. Lists are defined over several element types, including C, C, C, C, C, C, C, C, C, -C and 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/union_map.h b/include/isl/union_map.h index 6163efd4..019c7748 100644 --- a/include/isl/union_map.h +++ b/include/isl/union_map.h @@ -244,6 +244,8 @@ __isl_give isl_union_map *isl_union_map_align_params( __isl_give isl_union_set *isl_union_set_align_params( __isl_take isl_union_set *uset, __isl_take isl_space *model); +ISL_DECLARE_LIST_FN(union_map) + #if defined(__cplusplus) } #endif diff --git a/include/isl/union_map_type.h b/include/isl/union_map_type.h index e93f2cc7..1aebd69a 100644 --- a/include/isl/union_map_type.h +++ b/include/isl/union_map_type.h @@ -9,6 +9,7 @@ extern "C" { struct __isl_export isl_union_map; typedef struct isl_union_map isl_union_map; +ISL_DECLARE_LIST_TYPE(union_map) #ifndef isl_union_set struct __isl_export isl_union_set; typedef struct isl_union_set isl_union_set; diff --git a/isl_map_list.c b/isl_map_list.c index 0b41afc8..6e818c59 100644 --- a/isl_map_list.c +++ b/isl_map_list.c @@ -19,3 +19,13 @@ #define BASE map #include + +#undef EL +#define EL isl_union_map + +#include + +#undef BASE +#define BASE union_map + +#include -- 2.11.4.GIT