[PATCH 1/2] export isl_{set,map}_gist_params

1 view
Skip to first unread message

skim...@kotnet.org

unread,
Aug 18, 2021, 4:02:42 PMAug 18
to isl-dev...@googlegroups.com
From: Sven Verdoolaege <sv...@cerebras.net>

These complement the already exported isl_union_{set,map}_gist_params and
ensure that the corresponding methods in isl::set and isl::map
return an isl::set or isl::map instead of an isl::union_set or
isl::union_map through the methods inherited from
isl::union_set and isl::union_map.

Signed-off-by: Sven Verdoolaege <sv...@cerebras.net>
---
include/isl/map.h | 1 +
include/isl/set.h | 1 +
2 files changed, 2 insertions(+)

diff --git a/include/isl/map.h b/include/isl/map.h
index 55feb9b3b5..79a4c816c6 100644
--- a/include/isl/map.h
+++ b/include/isl/map.h
@@ -676,6 +676,7 @@ __isl_give isl_map *isl_map_gist_domain(__isl_take isl_map *map,
__isl_take isl_set *context);
__isl_give isl_map *isl_map_gist_range(__isl_take isl_map *map,
__isl_take isl_set *context);
+__isl_export
__isl_give isl_map *isl_map_gist_params(__isl_take isl_map *map,
__isl_take isl_set *context);
__isl_give isl_map *isl_map_gist_basic_map(__isl_take isl_map *map,
diff --git a/include/isl/set.h b/include/isl/set.h
index 61908186b1..e2c79f823b 100644
--- a/include/isl/set.h
+++ b/include/isl/set.h
@@ -488,6 +488,7 @@ __isl_give isl_set *isl_set_gist_basic_set(__isl_take isl_set *set,
__isl_export
__isl_give isl_set *isl_set_gist(__isl_take isl_set *set,
__isl_take isl_set *context);
+__isl_export
__isl_give isl_set *isl_set_gist_params(__isl_take isl_set *set,
__isl_take isl_set *context);
isl_stat isl_set_dim_residue_class_val(__isl_keep isl_set *set,
--
2.25.1

skim...@kotnet.org

unread,
Aug 18, 2021, 4:02:43 PMAug 18
to isl-dev...@googlegroups.com
From: Sven Verdoolaege <sv...@cerebras.net>

These complement the already exported isl_*_gist and isl_*_gist_domain.
Note that a function such as isl_set_gist_params can also
be applied to a pair of parametric sets, but it is more
appropriate to call isl_set_gist in that case.
"gist_params" is therefore not exported as a "bin_params" method.
Note that "intersect_params" is also not exported as a "bin_params" method.

Signed-off-by: Sven Verdoolaege <sv...@cerebras.net>
---
interface/template_cpp.cc | 1 +
1 file changed, 1 insertion(+)

diff --git a/interface/template_cpp.cc b/interface/template_cpp.cc
index a59d63477a..70549286ce 100644
--- a/interface/template_cpp.cc
+++ b/interface/template_cpp.cc
@@ -802,6 +802,7 @@ member_methods {
{ "gt_set", { set_join } },
{ "gist", bin_op },
{ "gist_domain", { bin_map_domain } },
+ { "gist_params", { bin_set_params, bin_map_params } },
{ "identity", { un_map, set_to_map } },
{ "identity_on_domain", { set_to_map } },
{ "indicator_function", anonymous_from_domain },
--
2.25.1

Reply all
Reply to author
Forward
0 new messages