diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2012-01-12 15:24:01 +0100 |
---|---|---|
committer | Sven Verdoolaege <skimo@kotnet.org> | 2012-01-13 11:39:29 +0100 |
commit | 0e17dc9d549000ba128b7f7556c36a6d5ffd48d1 (patch) | |
tree | 40d46e6e9fd33c1d913eef393eff1829cdb12d3e /isl_multi_templ.c | |
parent | 4f39df057d3610f5231d3e9a1660c418c56c1e4d (diff) | |
download | isl-0e17dc9d549000ba128b7f7556c36a6d5ffd48d1.tar.gz isl-0e17dc9d549000ba128b7f7556c36a6d5ffd48d1.tar.bz2 isl-0e17dc9d549000ba128b7f7556c36a6d5ffd48d1.zip |
add isl_multi_aff_set_tuple_id
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Diffstat (limited to 'isl_multi_templ.c')
-rw-r--r-- | isl_multi_templ.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/isl_multi_templ.c b/isl_multi_templ.c index a60b7d45..31699fe8 100644 --- a/isl_multi_templ.c +++ b/isl_multi_templ.c @@ -201,6 +201,31 @@ __isl_give MULTI(BASE) *FN(MULTI(BASE),reset_domain_space)( return FN(MULTI(BASE),reset_space_and_domain)(multi, space, domain); } +__isl_give MULTI(BASE) *FN(MULTI(BASE),reset_space)( + __isl_take MULTI(BASE) *multi, __isl_take isl_space *space) +{ + isl_space *domain; + + domain = isl_space_domain(isl_space_copy(space)); + return FN(MULTI(BASE),reset_space_and_domain)(multi, space, domain); +} + +__isl_give MULTI(BASE) *FN(MULTI(BASE),set_tuple_id)( + __isl_keep MULTI(BASE) *multi, enum isl_dim_type type, + __isl_take isl_id *id) +{ + isl_space *space; + + multi = FN(MULTI(BASE),cow)(multi); + if (!multi) + return isl_id_free(id); + + space = FN(MULTI(BASE),get_space)(multi); + space = isl_space_set_tuple_id(space, type, id); + + return FN(MULTI(BASE),reset_space)(multi, space); +} + __isl_give MULTI(BASE) *FN(MULTI(BASE),realign_domain)( __isl_take MULTI(BASE) *multi, __isl_take isl_reordering *exp) { |