Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
return ls;
}
+__isl_give isl_local_space *isl_local_space_reset_dim(
+ __isl_take isl_local_space *ls, __isl_take isl_dim *dim)
+{
+ ls = isl_local_space_cow(ls);
+ if (!ls || !dim)
+ goto error;
+
+ isl_dim_free(ls->dim);
+ ls->dim = dim;
+
+ return ls;
+error:
+ isl_local_space_free(ls);
+ isl_dim_free(dim);
+ return NULL;
+}
+
__isl_give isl_local_space *isl_local_space_add_div(
__isl_take isl_local_space *ls, __isl_take isl_vec *div)
{
int isl_local_space_is_named_or_nested(__isl_keep isl_local_space *ls,
enum isl_dim_type type);
+__isl_give isl_local_space *isl_local_space_reset_dim(
+ __isl_take isl_local_space *ls, __isl_take isl_dim *dim);
+
#endif