add isl_union_map_is_single_valued
[platform/upstream/isl.git] / isl_vec.c
index 38a55a7..9225b48 100644 (file)
--- a/isl_vec.c
+++ b/isl_vec.c
@@ -7,9 +7,15 @@
  * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
  */
 
+#include <isl_ctx_private.h>
 #include <isl/seq.h>
 #include <isl/vec.h>
 
+isl_ctx *isl_vec_get_ctx(__isl_keep isl_vec *vec)
+{
+       return vec ? vec->ctx : NULL;
+}
+
 struct isl_vec *isl_vec_alloc(struct isl_ctx *ctx, unsigned size)
 {
        struct isl_vec *vec;