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

Commit e236bd2

Browse files
authored
Merge pull request #267 from facebookresearch/pr/list
use standard isl support for lists intead of homegrown alternatives
2 parents 3fae32b + 1deba13 commit e236bd2

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ std::ostream& ScheduleTreeElemBand::write(std::ostream& os) const {
149149
os << " unroll(";
150150
std::copy(unroll_.begin(), unroll_.end(), make_ostream_joiner(os, ", "));
151151
os << ")";
152-
for (const auto& upa : isl::MUPA(mupa_)) {
152+
for (const auto& upa : mupa_.get_union_pw_aff_list()) {
153153
os << std::endl
154154
<< w.tab()
155155
<< "-----------------------------------------------------------------------";
156-
for (const auto& pa : upa) {
157-
os << std::endl << w.tab() << "| " << pa.pa;
156+
for (const auto& pa : upa.get_pw_aff_list()) {
157+
os << std::endl << w.tab() << "| " << pa;
158158
}
159159
}
160160
os << std::endl
@@ -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
}

third-party/islpp

Submodule islpp updated from f063f21 to d74282c

0 commit comments

Comments
 (0)