add isl_pw_qpolynomial_fold_get_ctx
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 17 Mar 2010 11:48:15 +0000 (12:48 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 18 Mar 2010 22:16:34 +0000 (23:16 +0100)
include/isl_polynomial.h
isl_pw_templ.c

index 2403a77..719d56f 100644 (file)
@@ -153,6 +153,8 @@ void isl_qpolynomial_fold_print(__isl_keep isl_qpolynomial_fold *fold, FILE *out
 struct isl_pw_qpolynomial_fold;
 typedef struct isl_pw_qpolynomial_fold isl_pw_qpolynomial_fold;
 
+isl_ctx *isl_pw_qpolynomial_fold_get_ctx(__isl_keep isl_pw_qpolynomial_fold *pwf);
+
 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_from_pw_qpolynomial(
        enum isl_fold type, __isl_take isl_pw_qpolynomial *pwqp);
 
index 7157dd9..9333ef6 100644 (file)
@@ -361,3 +361,8 @@ error:
        isl_set_free(context);
        return NULL;
 }
+
+isl_ctx *FN(PW,get_ctx)(__isl_keep PW *pw)
+{
+       return pw ? pw->dim->ctx : NULL;
+}