From 3c3789718e948138085850d33edab6546b9c6ac2 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 7 Oct 2013 16:03:16 +0200 Subject: [PATCH] add isl_pw_multi_aff_range_map Signed-off-by: Sven Verdoolaege --- doc/user.pod | 2 ++ include/isl/aff.h | 2 ++ isl_aff.c | 9 +++++++++ 3 files changed, 13 insertions(+) diff --git a/doc/user.pod b/doc/user.pod index 96ae76f2..716302d9 100644 --- a/doc/user.pod +++ b/doc/user.pod @@ -2663,6 +2663,8 @@ then create a piecewise expression over a universe domain. __isl_take isl_space *space); __isl_give isl_pw_multi_aff *isl_pw_multi_aff_identity( __isl_take isl_space *space); + __isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_map( + __isl_take isl_space *space); __isl_give isl_pw_multi_aff * isl_pw_multi_aff_project_out_map( __isl_take isl_space *space, diff --git a/include/isl/aff.h b/include/isl/aff.h index 858060e7..fb880a41 100644 --- a/include/isl/aff.h +++ b/include/isl/aff.h @@ -368,6 +368,8 @@ ISL_DECLARE_MULTI_NEG(pw_aff) __isl_give isl_pw_multi_aff *isl_pw_multi_aff_zero(__isl_take isl_space *space); __isl_give isl_pw_multi_aff *isl_pw_multi_aff_identity( __isl_take isl_space *space); +__isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_map( + __isl_take isl_space *space); __isl_give isl_pw_multi_aff *isl_pw_multi_aff_project_out_map( __isl_take isl_space *space, enum isl_dim_type type, unsigned first, unsigned n); diff --git a/isl_aff.c b/isl_aff.c index 66e453bc..c56d9922 100644 --- a/isl_aff.c +++ b/isl_aff.c @@ -3713,6 +3713,15 @@ error: return NULL; } +/* Given a map space, return an isl_pw_multi_aff that maps a wrapped copy + * of the space to its range. + */ +__isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_map( + __isl_take isl_space *space) +{ + return isl_pw_multi_aff_from_multi_aff(isl_multi_aff_range_map(space)); +} + /* Given the space of a set and a range of set dimensions, * construct an isl_multi_aff that projects out those dimensions. */ -- 2.11.4.GIT