From: Sven Verdoolaege Date: Sun, 25 Jul 2010 18:17:41 +0000 (+0200) Subject: add isl_map_get_ctx X-Git-Tag: isl-0.04~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd0b0e008d1d2343a32d2a8c8559719dd3581dac;p=platform%2Fupstream%2Fisl.git add isl_map_get_ctx Signed-off-by: Sven Verdoolaege --- diff --git a/include/isl_map.h b/include/isl_map.h index e2fc38f..d4b2053 100644 --- a/include/isl_map.h +++ b/include/isl_map.h @@ -122,6 +122,7 @@ unsigned isl_map_n_out(const struct isl_map *map); unsigned isl_map_n_param(const struct isl_map *map); unsigned isl_map_dim(const struct isl_map *map, enum isl_dim_type type); +isl_ctx *isl_map_get_ctx(__isl_keep isl_map *map); __isl_give isl_dim *isl_basic_map_get_dim(__isl_keep isl_basic_map *bmap); __isl_give isl_dim *isl_map_get_dim(__isl_keep isl_map *map); diff --git a/isl_map.c b/isl_map.c index 6a21a87..da25eb1 100644 --- a/isl_map.c +++ b/isl_map.c @@ -247,6 +247,11 @@ int isl_basic_map_compatible_range(struct isl_basic_map *bmap, bmap->dim->nparam == bset->dim->nparam; } +isl_ctx *isl_map_get_ctx(__isl_keep isl_map *map) +{ + return map ? map->ctx : NULL; +} + struct isl_dim *isl_basic_map_get_dim(struct isl_basic_map *bmap) { if (!bmap)