From 1d61e5932dd4eda33f01c855d7c4c23b42030b51 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 4 Aug 2010 15:52:06 +0200 Subject: [PATCH] add isl_set_insert Signed-off-by: Sven Verdoolaege --- include/isl_set.h | 2 ++ isl_map.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/include/isl_set.h b/include/isl_set.h index f0f853c..6245f94 100644 --- a/include/isl_set.h +++ b/include/isl_set.h @@ -247,6 +247,8 @@ struct isl_set *isl_set_fix_dim_si(struct isl_set *set, unsigned dim, int value); struct isl_set *isl_set_lower_bound_dim(struct isl_set *set, unsigned dim, isl_int value); +__isl_give isl_set *isl_set_insert(__isl_take isl_set *set, + enum isl_dim_type type, unsigned pos, unsigned n); __isl_give isl_basic_set *isl_basic_set_add(__isl_take isl_basic_set *bset, enum isl_dim_type type, unsigned n); __isl_give isl_set *isl_set_add(__isl_take isl_set *set, diff --git a/isl_map.c b/isl_map.c index b3ba8b6..1b0033f 100644 --- a/isl_map.c +++ b/isl_map.c @@ -2214,6 +2214,12 @@ error: return NULL; } +__isl_give isl_set *isl_set_insert(__isl_take isl_set *set, + enum isl_dim_type type, unsigned pos, unsigned n) +{ + return (isl_set *)isl_map_insert((isl_map *)set, type, pos, n); +} + __isl_give isl_map *isl_map_add(__isl_take isl_map *map, enum isl_dim_type type, unsigned n) { -- 2.7.4