add isl_tab_get_ctx
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 22 Mar 2013 12:00:34 +0000 (13:00 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 24 Mar 2013 13:00:47 +0000 (14:00 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_tab.c

index 35ff7fc..b7513df 100644 (file)
--- a/isl_tab.c
+++ b/isl_tab.c
@@ -89,6 +89,11 @@ error:
        return NULL;
 }
 
+isl_ctx *isl_tab_get_ctx(struct isl_tab *tab)
+{
+       return tab ? isl_mat_get_ctx(tab->mat) : NULL;
+}
+
 int isl_tab_extend_cons(struct isl_tab *tab, unsigned n_new)
 {
        unsigned off;