add isl_local_space_is_named_or_nested
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 28 Jun 2011 18:21:47 +0000 (20:21 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 30 Jun 2011 11:12:05 +0000 (13:12 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_local_space.c
isl_local_space_private.h

index e279f72..e6a8cb8 100644 (file)
@@ -463,3 +463,11 @@ error:
        isl_local_space_free(ls);
        return NULL;
 }
+
+int isl_local_space_is_named_or_nested(__isl_keep isl_local_space *ls,
+       enum isl_dim_type type)
+{
+       if (!ls)
+               return -1;
+       return isl_dim_is_named_or_nested(ls->dim, type);
+}
index 95503b1..76d74b5 100644 (file)
@@ -32,4 +32,7 @@ int isl_local_space_divs_known(__isl_keep isl_local_space *ls);
 __isl_give isl_local_space *isl_local_space_substitute_equalities(
        __isl_take isl_local_space *ls, __isl_take isl_basic_set *eq);
 
+int isl_local_space_is_named_or_nested(__isl_keep isl_local_space *ls,
+       enum isl_dim_type type);
+
 #endif