X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=isl_local_space.c;h=96703f9bf3f66887c05c484d1cc3fe6d016337f2;hb=303faf2984bf54cdedca8d984cf9c848b556415e;hp=4a14cf55a2cac4984c129b72c6100633f8aebe76;hpb=1ab8d3f419afaf35947fd06416f6744b12b225e5;p=platform%2Fupstream%2Fisl.git diff --git a/isl_local_space.c b/isl_local_space.c index 4a14cf5..96703f9 100644 --- a/isl_local_space.c +++ b/isl_local_space.c @@ -2,7 +2,7 @@ * Copyright 2011 INRIA Saclay * Copyright 2012 Ecole Normale Superieure * - * Use of this software is governed by the GNU LGPLv2.1 license + * Use of this software is governed by the MIT license * * Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France, * Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod, @@ -192,6 +192,18 @@ const char *isl_local_space_get_dim_name(__isl_keep isl_local_space *ls, return ls ? isl_space_get_dim_name(ls->dim, type, pos) : NULL; } +int isl_local_space_has_dim_id(__isl_keep isl_local_space *ls, + enum isl_dim_type type, unsigned pos) +{ + return ls ? isl_space_has_dim_id(ls->dim, type, pos) : -1; +} + +__isl_give isl_id *isl_local_space_get_dim_id(__isl_keep isl_local_space *ls, + enum isl_dim_type type, unsigned pos) +{ + return ls ? isl_space_get_dim_id(ls->dim, type, pos) : NULL; +} + __isl_give isl_aff *isl_local_space_get_div(__isl_keep isl_local_space *ls, int pos) {