add isl_pw_qpolynomial_fold_dim
[platform/upstream/isl.git] / isl_pw_templ.c
index 7ba5bfa..b65dfcb 100644 (file)
@@ -472,3 +472,8 @@ error:
        FN(PW,free)(pw);
        return NULL;
 }
+
+unsigned FN(PW,dim)(__isl_keep PW *pw, enum isl_dim_type type)
+{
+       return pw ? isl_dim_size(pw->dim, type) : 0;
+}