add isl_pw_*_get_dim_name
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 26 Sep 2011 11:48:54 +0000 (13:48 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 2 Oct 2011 09:03:35 +0000 (11:03 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
doc/user.pod
include/isl/aff.h
isl_pw_templ.c

index f88cc61..4d3b10c 100644 (file)
@@ -2609,6 +2609,9 @@ The expression can be inspected using
                __isl_keep isl_aff *aff);
        const char *isl_aff_get_dim_name(__isl_keep isl_aff *aff,
                enum isl_dim_type type, unsigned pos);
+       const char *isl_pw_aff_get_dim_name(
+               __isl_keep isl_pw_aff *pa,
+               enum isl_dim_type type, unsigned pos);
        int isl_aff_get_constant(__isl_keep isl_aff *aff,
                isl_int *v);
        int isl_aff_get_coefficient(__isl_keep isl_aff *aff,
index c427643..509b408 100644 (file)
@@ -105,6 +105,8 @@ __isl_give isl_pw_aff *isl_pw_aff_empty(__isl_take isl_space *dim);
 __isl_give isl_pw_aff *isl_pw_aff_alloc(__isl_take isl_set *set,
        __isl_take isl_aff *aff);
 
+const char *isl_pw_aff_get_dim_name(__isl_keep isl_pw_aff *pa,
+       enum isl_dim_type type, unsigned pos);
 __isl_give isl_pw_aff *isl_pw_aff_set_dim_id(__isl_take isl_pw_aff *pma,
        enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
 
index ff901df..489a4ac 100644 (file)
@@ -173,6 +173,12 @@ void *FN(PW,free)(__isl_take PW *pw)
        return NULL;
 }
 
+const char *FN(PW,get_dim_name)(__isl_keep PW *pw, enum isl_dim_type type,
+       unsigned pos)
+{
+       return pw ? isl_space_get_dim_name(pw->dim, type, pos) : NULL;
+}
+
 const char *FN(PW,get_tuple_name)(__isl_keep PW *pw, enum isl_dim_type type)
 {
        return pw ? isl_space_get_tuple_name(pw->dim, type) : NULL;