add isl_pw_*_get_tuple_name
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 25 Aug 2011 10:09:18 +0000 (12:09 +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>
isl_pw_templ.c

index c1200b9..474b31a 100644 (file)
@@ -173,6 +173,11 @@ void *FN(PW,free)(__isl_take PW *pw)
        return 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;
+}
+
 int FN(PW,IS_ZERO)(__isl_keep PW *pw)
 {
        if (!pw)