From 7e71961c1d56e894e8beaf751964cfa1c390e635 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 25 Feb 2011 15:05:14 +0100 Subject: [PATCH] rename isl_dim_map to isl_dim_map_from_set Signed-off-by: Sven Verdoolaege --- doc/user.pod | 2 ++ include/isl/dim.h | 2 +- isl_dim.c | 2 +- isl_map.c | 14 +++++++------- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/doc/user.pod b/doc/user.pod index 56fd306..6cabbb3 100644 --- a/doc/user.pod +++ b/doc/user.pod @@ -528,6 +528,8 @@ specifications using the following functions. enum isl_dim_type type, unsigned n); __isl_give isl_dim *isl_dim_drop(__isl_take isl_dim *dim, enum isl_dim_type type, unsigned first, unsigned n); + __isl_give isl_dim *isl_dim_map_from_set( + __isl_take isl_dim *dim); Note that if dimensions are added or removed from a space, then the name and the internal structure are lost. diff --git a/include/isl/dim.h b/include/isl/dim.h index e4cfd85..dbbc025 100644 --- a/include/isl/dim.h +++ b/include/isl/dim.h @@ -63,7 +63,7 @@ __isl_give isl_dim *isl_dim_join(__isl_take isl_dim *left, struct isl_dim *isl_dim_product(struct isl_dim *left, struct isl_dim *right); __isl_give isl_dim *isl_dim_range_product(__isl_take isl_dim *left, __isl_take isl_dim *right); -struct isl_dim *isl_dim_map(struct isl_dim *dim); +__isl_give isl_dim *isl_dim_map_from_set(__isl_take isl_dim *dim); __isl_give isl_dim *isl_dim_reverse(__isl_take isl_dim *dim); __isl_give isl_dim *isl_dim_drop(__isl_take isl_dim *dim, enum isl_dim_type type, unsigned first, unsigned num); diff --git a/isl_dim.c b/isl_dim.c index df4c1f8..a9ae54e 100644 --- a/isl_dim.c +++ b/isl_dim.c @@ -763,7 +763,7 @@ error: return NULL; } -struct isl_dim *isl_dim_map(struct isl_dim *dim) +__isl_give isl_dim *isl_dim_map_from_set(__isl_take isl_dim *dim) { struct isl_name **names = NULL; diff --git a/isl_map.c b/isl_map.c index 2110270..41a34ba 100644 --- a/isl_map.c +++ b/isl_map.c @@ -3335,12 +3335,12 @@ __isl_give isl_map *isl_map_lex_le_first(__isl_take isl_dim *dim, unsigned n) __isl_give isl_map *isl_map_lex_lt(__isl_take isl_dim *set_dim) { - return map_lex_lte(isl_dim_map(set_dim), 0); + return map_lex_lte(isl_dim_map_from_set(set_dim), 0); } __isl_give isl_map *isl_map_lex_le(__isl_take isl_dim *set_dim) { - return map_lex_lte(isl_dim_map(set_dim), 1); + return map_lex_lte(isl_dim_map_from_set(set_dim), 1); } static __isl_give isl_map *map_lex_gte_first(__isl_take isl_dim *dims, @@ -3389,12 +3389,12 @@ __isl_give isl_map *isl_map_lex_ge_first(__isl_take isl_dim *dim, unsigned n) __isl_give isl_map *isl_map_lex_gt(__isl_take isl_dim *set_dim) { - return map_lex_gte(isl_dim_map(set_dim), 0); + return map_lex_gte(isl_dim_map_from_set(set_dim), 0); } __isl_give isl_map *isl_map_lex_ge(__isl_take isl_dim *set_dim) { - return map_lex_gte(isl_dim_map(set_dim), 1); + return map_lex_gte(isl_dim_map_from_set(set_dim), 1); } __isl_give isl_map *isl_set_lex_le_set(__isl_take isl_set *set1, @@ -5641,7 +5641,7 @@ error: struct isl_basic_map *isl_basic_map_identity(struct isl_dim *set_dim) { - struct isl_dim *dim = isl_dim_map(set_dim); + struct isl_dim *dim = isl_dim_map_from_set(set_dim); if (!dim) return NULL; return basic_map_identity(dim); @@ -5664,7 +5664,7 @@ static struct isl_map *map_identity(struct isl_dim *dim) struct isl_map *isl_map_identity(struct isl_dim *set_dim) { - struct isl_dim *dim = isl_dim_map(set_dim); + struct isl_dim *dim = isl_dim_map_from_set(set_dim); if (!dim) return NULL; return map_identity(dim); @@ -7468,7 +7468,7 @@ __isl_give isl_map *isl_set_lifting(__isl_take isl_set *set) } n_div = set->p[0]->n_div; - dim = isl_dim_map(dim); + dim = isl_dim_map_from_set(dim); n_param = isl_dim_size(dim, isl_dim_param); n_set = isl_dim_size(dim, isl_dim_in); dim = isl_dim_extend(dim, n_param, n_set, n_set + n_div); -- 2.7.4