Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
__isl_give isl_dim *isl_aff_get_dim(
__isl_keep isl_aff *aff);
__isl_give isl_dim *isl_aff_get_dim(
__isl_keep isl_aff *aff);
+ #include <isl/point.h>
+ __isl_give isl_dim *isl_point_get_dim(
+ __isl_keep isl_point *pnt);
+
The names of the individual dimensions may be set or read off
using the following functions.
The names of the individual dimensions may be set or read off
using the following functions.
typedef struct isl_point isl_point;
isl_ctx *isl_point_get_ctx(__isl_keep isl_point *pnt);
typedef struct isl_point isl_point;
isl_ctx *isl_point_get_ctx(__isl_keep isl_point *pnt);
+__isl_give isl_dim *isl_point_get_dim(__isl_keep isl_point *pnt);
__isl_give isl_point *isl_point_zero(__isl_take isl_dim *dim);
__isl_give isl_point *isl_point_copy(__isl_keep isl_point *pnt);
__isl_give isl_point *isl_point_zero(__isl_take isl_dim *dim);
__isl_give isl_point *isl_point_copy(__isl_keep isl_point *pnt);
return pnt ? isl_dim_get_ctx(pnt->dim) : NULL;
}
return pnt ? isl_dim_get_ctx(pnt->dim) : NULL;
}
+__isl_give isl_dim *isl_point_get_dim(__isl_keep isl_point *pnt)
+{
+ return pnt ? isl_dim_copy(pnt->dim) : NULL;
+}
+
__isl_give isl_point *isl_point_alloc(__isl_take isl_dim *dim,
__isl_take isl_vec *vec)
{
__isl_give isl_point *isl_point_alloc(__isl_take isl_dim *dim,
__isl_take isl_vec *vec)
{