From 644f3a67fdc23cef695e6af16ca6f8a91d2d0a99 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 18 Feb 2009 13:02:41 +0100 Subject: [PATCH] add isl_dim_range --- include/isl_dim.h | 1 + isl_dim.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/include/isl_dim.h b/include/isl_dim.h index 2543a84..288927a 100644 --- a/include/isl_dim.h +++ b/include/isl_dim.h @@ -57,6 +57,7 @@ struct isl_dim *isl_dim_drop_inputs(struct isl_dim *dim, struct isl_dim *isl_dim_drop_outputs(struct isl_dim *dim, unsigned first, unsigned n); struct isl_dim *isl_dim_domain(struct isl_dim *dim); +struct isl_dim *isl_dim_range(struct isl_dim *dim); struct isl_dim *isl_dim_underlying(struct isl_dim *dim, unsigned n_div); int isl_dim_equal(struct isl_dim *dim1, struct isl_dim *dim2); diff --git a/isl_dim.c b/isl_dim.c index a5381dd..73783ca 100644 --- a/isl_dim.c +++ b/isl_dim.c @@ -520,6 +520,13 @@ struct isl_dim *isl_dim_domain(struct isl_dim *dim) return isl_dim_reverse(dim); } +struct isl_dim *isl_dim_range(struct isl_dim *dim) +{ + if (!dim) + return NULL; + return isl_dim_drop_inputs(dim, 0, dim->n_in); +} + struct isl_dim *isl_dim_underlying(struct isl_dim *dim, unsigned n_div) { int i; -- 2.7.4