@@ -2857,6 +2857,7 @@ class set {
2857
2857
inline isl::set flatten() const;
2858
2858
inline isl::map flatten_map() const;
2859
2859
inline void foreach_basic_set(const std::function<void(isl::basic_set)> &fn) const;
2860
+ static inline isl::set from(isl::multi_aff ma);
2860
2861
inline isl::set from_params() const;
2861
2862
static inline isl::set from_union_set(isl::union_set uset);
2862
2863
inline isl::basic_set_list get_basic_set_list() const;
@@ -3263,6 +3264,7 @@ class union_pw_aff {
3263
3264
inline void foreach_pw_aff(const std::function<void(isl::pw_aff)> &fn) const;
3264
3265
inline isl::pw_aff_list get_pw_aff_list() const;
3265
3266
inline isl::space get_space() const;
3267
+ inline isl::union_pw_aff intersect_domain(isl::union_set uset) const;
3266
3268
inline bool involves_param(const isl::id &id) const;
3267
3269
inline isl::union_pw_aff mod_val(isl::val f) const;
3268
3270
inline int n_pw_aff() const;
@@ -3421,8 +3423,6 @@ class union_set {
3421
3423
inline bool is_subset(const isl::union_set &uset2) const;
3422
3424
inline isl::union_set lexmax() const;
3423
3425
inline isl::union_set lexmin() const;
3424
- inline isl::multi_val max_multi_union_pw_aff(const isl::multi_union_pw_aff &obj) const;
3425
- inline isl::multi_val min_multi_union_pw_aff(const isl::multi_union_pw_aff &obj) const;
3426
3426
inline int n_set() const;
3427
3427
inline isl::set params() const;
3428
3428
inline isl::union_set polyhedral_hull() const;
@@ -16993,6 +16993,19 @@ void set::foreach_basic_set(const std::function<void(isl::basic_set)> &fn) const
16993
16993
return void(res);
16994
16994
}
16995
16995
16996
+ isl::set set::from(isl::multi_aff ma)
16997
+ {
16998
+ if (ma.is_null())
16999
+ throw isl::exception::create(isl_error_invalid,
17000
+ "NULL input", __FILE__, __LINE__);
17001
+ auto ctx = ma.get_ctx();
17002
+ options_scoped_set_on_error saved_on_error(ctx, ISL_ON_ERROR_CONTINUE);
17003
+ auto res = isl_set_from_multi_aff(ma.release());
17004
+ if (!res)
17005
+ throw exception::create_from_last_error(ctx);
17006
+ return manage(res);
17007
+ }
17008
+
16996
17009
isl::set set::from_params() const
16997
17010
{
16998
17011
if (!ptr)
@@ -19955,6 +19968,18 @@ isl::space union_pw_aff::get_space() const
19955
19968
return manage(res);
19956
19969
}
19957
19970
19971
+ isl::union_pw_aff union_pw_aff::intersect_domain(isl::union_set uset) const
19972
+ {
19973
+ if (!ptr || uset.is_null())
19974
+ throw isl::exception::create(isl_error_invalid,
19975
+ "NULL input", __FILE__, __LINE__);
19976
+ options_scoped_set_on_error saved_on_error(get_ctx(), ISL_ON_ERROR_CONTINUE);
19977
+ auto res = isl_union_pw_aff_intersect_domain(copy(), uset.release());
19978
+ if (!res)
19979
+ throw exception::create_from_last_error(get_ctx());
19980
+ return manage(res);
19981
+ }
19982
+
19958
19983
bool union_pw_aff::involves_param(const isl::id &id) const
19959
19984
{
19960
19985
if (!ptr || id.is_null())
@@ -21091,30 +21116,6 @@ isl::union_set union_set::lexmin() const
21091
21116
return manage(res);
21092
21117
}
21093
21118
21094
- isl::multi_val union_set::max_multi_union_pw_aff(const isl::multi_union_pw_aff &obj) const
21095
- {
21096
- if (!ptr || obj.is_null())
21097
- throw isl::exception::create(isl_error_invalid,
21098
- "NULL input", __FILE__, __LINE__);
21099
- options_scoped_set_on_error saved_on_error(get_ctx(), ISL_ON_ERROR_CONTINUE);
21100
- auto res = isl_union_set_max_multi_union_pw_aff(get(), obj.get());
21101
- if (!res)
21102
- throw exception::create_from_last_error(get_ctx());
21103
- return manage(res);
21104
- }
21105
-
21106
- isl::multi_val union_set::min_multi_union_pw_aff(const isl::multi_union_pw_aff &obj) const
21107
- {
21108
- if (!ptr || obj.is_null())
21109
- throw isl::exception::create(isl_error_invalid,
21110
- "NULL input", __FILE__, __LINE__);
21111
- options_scoped_set_on_error saved_on_error(get_ctx(), ISL_ON_ERROR_CONTINUE);
21112
- auto res = isl_union_set_min_multi_union_pw_aff(get(), obj.get());
21113
- if (!res)
21114
- throw exception::create_from_last_error(get_ctx());
21115
- return manage(res);
21116
- }
21117
-
21118
21119
int union_set::n_set() const
21119
21120
{
21120
21121
if (!ptr)
0 commit comments