add isl_aff_get_dim
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 18 May 2011 11:07:52 +0000 (13:07 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 18 May 2011 11:08:45 +0000 (13:08 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
doc/user.pod
include/isl/aff.h
isl_aff.c

index f8cc802..8bb830d 100644 (file)
@@ -480,6 +480,10 @@ specification of the original object.
        __isl_give isl_dim *isl_union_pw_qpolynomial_fold_get_dim(
                __isl_keep isl_union_pw_qpolynomial_fold *upwf);
 
+       #include <isl/aff.h>
+       __isl_give isl_dim *isl_aff_get_dim(
+               __isl_keep isl_aff *aff);
+
 The names of the individual dimensions may be set or read off
 using the following functions.
 
index 398b96e..1769857 100644 (file)
@@ -21,6 +21,7 @@ isl_ctx *isl_aff_get_ctx(__isl_keep isl_aff *aff);
 
 int isl_aff_dim(__isl_keep isl_aff *aff, enum isl_dim_type type);
 
+__isl_give isl_dim *isl_aff_get_dim(__isl_keep isl_aff *aff);
 __isl_give isl_local_space *isl_aff_get_local_space(__isl_keep isl_aff *aff);
 
 const char *isl_aff_get_dim_name(__isl_keep isl_aff *aff,
index 26937b5..cc2dc77 100644 (file)
--- a/isl_aff.c
+++ b/isl_aff.c
@@ -119,6 +119,11 @@ int isl_aff_dim(__isl_keep isl_aff *aff, enum isl_dim_type type)
        return aff ? isl_local_space_dim(aff->ls, type) : 0;
 }
 
+__isl_give isl_dim *isl_aff_get_dim(__isl_keep isl_aff *aff)
+{
+       return aff ? isl_local_space_get_dim(aff->ls) : NULL;
+}
+
 __isl_give isl_local_space *isl_aff_get_local_space(__isl_keep isl_aff *aff)
 {
        return aff ? isl_local_space_copy(aff->ls) : NULL;