Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 1deba13

Browse files
author
Sven Verdoolaege
committed
replace uses of isl::UNION_SET by get_set_list
1 parent 3040231 commit 1deba13

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

include/tc/core/polyhedral/schedule_tree_elem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct ScheduleTreeElemMappingFilter : public ScheduleTreeElemFilter {
152152
typename mapping::MappingId::Hash>& ids)
153153
: ScheduleTreeElemFilter(us), mappingIds(ids) {
154154
USING_MAPPING_SHORT_NAMES(BX, BY, BZ, TX, TY, TZ);
155-
for (auto s : isl::UNION_SET(us)) {
155+
for (auto s : us.get_set_list()) {
156156
for (auto id : std::vector<mapping::MappingId>{BX, BY, BZ, TX, TY, TZ}) {
157157
if (mappingIds.count(id) > 0) {
158158
CHECK_EQ(1, ids.count(id)) << "id: " << id << " mapped >1 times";

include/tc/external/detail/isl_mu_wrappers.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,6 @@ struct MUPA : std::vector<UPA> {
129129
isl::multi_union_pw_aff mupa;
130130
};
131131

132-
/* WARNING: this does not allow inplace modifications .. ugh */
133-
struct UNION_SET : std::vector<isl::set> {
134-
UNION_SET(isl::union_set us_) : us(us_) {
135-
us_.foreach_set([&](isl::set s) { this->push_back(s); });
136-
}
137-
isl::union_set us;
138-
};
139-
140132
template <typename T, isl::dim_type DT>
141133
struct DimIds : public std::vector<isl::id> {
142134
DimIds(T s) {

src/core/polyhedral/schedule_print.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ std::ostream& ScheduleTreeElemContext::write(std::ostream& os) const {
172172
std::ostream& ScheduleTreeElemDomain::write(std::ostream& os) const {
173173
WS w;
174174
os << w.tab() << "domain(";
175-
for (const auto& u : isl::UNION_SET(domain_)) {
175+
for (const auto& u : domain_.get_set_list()) {
176176
WS w2;
177177
os << std::endl << w2.tab() << u;
178178
}
@@ -189,7 +189,7 @@ std::ostream& ScheduleTreeElemExtension::write(std::ostream& os) const {
189189
std::ostream& ScheduleTreeElemFilter::write(std::ostream& os) const {
190190
WS w;
191191
os << w.tab() << "filter(";
192-
for (const auto& u : isl::UNION_SET(filter_)) {
192+
for (const auto& u : filter_.get_set_list()) {
193193
WS w2;
194194
os << std::endl << w2.tab() << u;
195195
}
@@ -204,7 +204,7 @@ std::ostream& ScheduleTreeElemMappingFilter::write(std::ostream& os) const {
204204
os << id << ", ";
205205
}
206206
os << ")";
207-
for (const auto& u : isl::UNION_SET(filter_)) {
207+
for (const auto& u : filter_.get_set_list()) {
208208
WS w2;
209209
os << std::endl << w2.tab() << u;
210210
}

0 commit comments

Comments
 (0)