add isl_pw_*_has_tuple_id
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 26 Sep 2011 11:30:39 +0000 (13:30 +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 1292e76..ff901df 100644 (file)
@@ -178,6 +178,11 @@ 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,has_tuple_id)(__isl_keep PW *pw, enum isl_dim_type type)
+{
+       return pw ? isl_space_has_tuple_id(pw->dim, type) : -1;
+}
+
 __isl_give isl_id *FN(PW,get_tuple_id)(__isl_keep PW *pw, enum isl_dim_type type)
 {
        return pw ? isl_space_get_tuple_id(pw->dim, type) : NULL;