From 93f05e4ab0e3e15a154a4f7ada92cd88bcf080c4 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 25 Jul 2011 08:55:53 +0200 Subject: [PATCH] add isl_pw_aff_list Signed-off-by: Sven Verdoolaege --- doc/user.pod | 2 +- include/isl/list.h | 1 + isl_list.c | 5 +++++ isl_list_private.h | 5 +++++ isl_list_templ.h | 1 + 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/user.pod b/doc/user.pod index 80c0059..3ad2b0a 100644 --- a/doc/user.pod +++ b/doc/user.pod @@ -2256,7 +2256,7 @@ In case of union relations, the optimum is computed per space. =head2 Lists Lists are defined over several element types, including -C, C and C. +C, C, C and C. Here we take lists of Cs as an example. Lists can be created, copied and freed using the following functions. diff --git a/include/isl/list.h b/include/isl/list.h index 3fa6b11..e0dbfed 100644 --- a/include/isl/list.h +++ b/include/isl/list.h @@ -47,6 +47,7 @@ void isl_##EL##_list_dump(__isl_keep isl_##EL##_list *list); ISL_DECLARE_LIST(basic_set) ISL_DECLARE_LIST(set) ISL_DECLARE_LIST(aff) +ISL_DECLARE_LIST(pw_aff) ISL_DECLARE_LIST(band) #if defined(__cplusplus) diff --git a/isl_list.c b/isl_list.c index ec1dd29..27baab1 100644 --- a/isl_list.c +++ b/isl_list.c @@ -28,6 +28,11 @@ #include #undef BASE +#define BASE pw_aff + +#include + +#undef BASE #define BASE band #include diff --git a/isl_list_private.h b/isl_list_private.h index 15c0547..da57f41 100644 --- a/isl_list_private.h +++ b/isl_list_private.h @@ -19,6 +19,11 @@ #include #undef EL +#define EL isl_pw_aff + +#include + +#undef EL #define EL isl_band #include diff --git a/isl_list_templ.h b/isl_list_templ.h index a959980..9c60f5a 100644 --- a/isl_list_templ.h +++ b/isl_list_templ.h @@ -20,4 +20,5 @@ __isl_give isl_##EL##_list *isl_##EL##_list_dup( \ ISL_DECLARE_LIST_PRIVATE(basic_set) ISL_DECLARE_LIST_PRIVATE(set) ISL_DECLARE_LIST_PRIVATE(aff) +ISL_DECLARE_LIST_PRIVATE(pw_aff) ISL_DECLARE_LIST_PRIVATE(band) -- 2.7.4