From a6e3f25fa29c06a61caf0d7d6016ef5f365cdfb1 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 26 Sep 2011 13:30:39 +0200 Subject: [PATCH] add isl_pw_*_has_tuple_id Signed-off-by: Sven Verdoolaege --- isl_pw_templ.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/isl_pw_templ.c b/isl_pw_templ.c index 1292e76..ff901df 100644 --- a/isl_pw_templ.c +++ b/isl_pw_templ.c @@ -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; -- 2.7.4