From 868723d1e9793cd70bd8aa128b3d08e7e3779f0d Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 9 Aug 2010 14:08:30 +0200 Subject: [PATCH] add isl_set_get_ctx Signed-off-by: Sven Verdoolaege --- include/isl_set.h | 1 + isl_map.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/isl_set.h b/include/isl_set.h index 1ce899c..33a12ab 100644 --- a/include/isl_set.h +++ b/include/isl_set.h @@ -85,6 +85,7 @@ unsigned isl_set_n_dim(const struct isl_set *set); unsigned isl_set_n_param(const struct isl_set *set); unsigned isl_set_dim(const struct isl_set *set, enum isl_dim_type type); +isl_ctx *isl_set_get_ctx(__isl_keep isl_set *set); __isl_give isl_dim *isl_basic_set_get_dim(__isl_keep isl_basic_set *bset); __isl_give isl_dim *isl_set_get_dim(__isl_keep isl_set *set); diff --git a/isl_map.c b/isl_map.c index b9fed2d..1524b12 100644 --- a/isl_map.c +++ b/isl_map.c @@ -267,6 +267,11 @@ isl_ctx *isl_map_get_ctx(__isl_keep isl_map *map) return map ? map->ctx : NULL; } +isl_ctx *isl_set_get_ctx(__isl_keep isl_set *set) +{ + return set ? set->ctx : NULL; +} + struct isl_dim *isl_basic_map_get_dim(struct isl_basic_map *bmap) { if (!bmap) -- 2.7.4