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

Commit 718a6d2

Browse files
Merge pull request #536 from facebookresearch/pr/list
bump isl for rename of isl_*_list_get and isl_*_list_n
2 parents 9aa74be + c4afb39 commit 718a6d2

File tree

8 files changed

+161
-161
lines changed

8 files changed

+161
-161
lines changed

isl_interface/include/isl/cpp.h

Lines changed: 144 additions & 144 deletions
Large diffs are not rendered by default.

tc/core/polyhedral/cuda/mapped_scop.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ template <typename MappingTypeId>
105105
detail::ScheduleTree* MappedScop::map(
106106
detail::ScheduleTree* tree,
107107
isl::union_pw_aff_list list) {
108-
size_t nToMap = list.n();
108+
size_t nToMap = list.size();
109109
const auto& extent = mappingSize<MappingTypeId>(this).view;
110110
TC_CHECK_LE(nToMap, extent.size()) << "dimension overflow";
111111

@@ -116,7 +116,7 @@ detail::ScheduleTree* MappedScop::map(
116116
auto affList = isl::union_pw_aff_list(list.get_ctx(), 0);
117117
for (size_t i = 0; i < nToMap; ++i) {
118118
auto id = MappingTypeId::makeId(i);
119-
auto upa = list.get(i);
119+
auto upa = list.get_at(i);
120120
TC_CHECK_NE(extent[i], 0u) << "NYI: mapping to 0";
121121
upa = upa.mod_val(isl::val(tree->ctx_, extent[i]));
122122
affList = affList.add(upa);
@@ -143,7 +143,7 @@ detail::ScheduleTree* MappedScop::mapBlocksForward(
143143
TC_CHECK(bandNode) << "expected a band, got " << *band;
144144

145145
auto list = bandNode->mupa_.get_union_pw_aff_list();
146-
list = list.drop(nToMap, list.n() - nToMap);
146+
list = list.drop(nToMap, list.size() - nToMap);
147147
return map<mapping::BlockId>(band, list);
148148
}
149149

@@ -369,7 +369,7 @@ detail::ScheduleTree* MappedScop::mapThreadsBackward(
369369
insertNodeBelow(band, detail::ScheduleTree::makeThreadSpecificMarker(ctx));
370370

371371
auto list = bandNode->mupa_.get_union_pw_aff_list().reverse();
372-
list = list.drop(nToMap, list.n() - nToMap);
372+
list = list.drop(nToMap, list.size() - nToMap);
373373
return map<mapping::ThreadId>(band, list);
374374
}
375375

tc/core/polyhedral/cuda/memory_promotion_heuristic.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ bool accessSubscriptsAreUnrolledLoops(
381381
}
382382
}
383383

384-
auto space = isl::space(leaf->ctx_, 0, unrolledDims.n())
384+
auto space = isl::space(leaf->ctx_, 0, unrolledDims.size())
385385
.align_params(subdomain.get_space());
386386
auto unrolledDimsMupa = isl::multi_union_pw_aff(space, unrolledDims);
387387

tc/core/polyhedral/memory_promotion.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,14 +449,14 @@ isl::multi_aff dropDummyTensorDimensions(
449449
auto list = schedule.get_aff_list();
450450
auto space = schedule.get_space().domain();
451451

452-
auto n = list.n();
452+
auto n = list.size();
453453
for (int i = n - 1; i >= 0; --i) {
454454
if (decl.sizes[i] == 1) {
455455
list = list.drop(i, 1);
456456
}
457457
}
458458

459-
space = add_range(space, list.n());
459+
space = add_range(space, list.size());
460460
return isl::multi_aff(space, list);
461461
}
462462

tc/core/polyhedral/schedule_transforms.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ isl::multi_union_pw_aff extractDomainToIds(
863863
list = list.add(idMap);
864864
}
865865
// Ignore this node if it does not map to all required ids.
866-
if (static_cast<size_t>(list.n()) != ids.size()) {
866+
if (static_cast<size_t>(list.size()) != ids.size()) {
867867
continue;
868868
}
869869
auto nodeToIds = isl::multi_union_pw_aff(space, list);

tc/core/polyhedral/schedule_tree-inl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ inline ScheduleTreeUPtr ScheduleTree::makeMapping(
2525
const std::vector<MappingIdType>& mappedIds,
2626
isl::union_pw_aff_list mappedAffs,
2727
std::vector<ScheduleTreeUPtr>&& children) {
28-
TC_CHECK_EQ(mappedIds.size(), static_cast<size_t>(mappedAffs.n()))
28+
TC_CHECK_EQ(mappedIds.size(), static_cast<size_t>(mappedAffs.size()))
2929
<< "expected as many mapped ids as affs";
3030
ScheduleTreeElemMapping::Mapping mapping;
31-
for (size_t i = 0, n = mappedAffs.n(); i < n; ++i) {
32-
mapping.emplace(mappedIds.at(i), mappedAffs.get(i));
31+
for (size_t i = 0, n = mappedAffs.size(); i < n; ++i) {
32+
mapping.emplace(mappedIds.at(i), mappedAffs.get_at(i));
3333
}
3434
TC_CHECK_GE(mapping.size(), 1u) << "empty mapping";
3535
TC_CHECK_EQ(mappedIds.size(), mapping.size())

tc/external/detail/islpp.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ struct ListIter {
367367
pos_++;
368368
}
369369
E operator*() {
370-
return list_.get(pos_);
370+
return list_.get_at(pos_);
371371
}
372372

373373
private:
@@ -376,13 +376,13 @@ struct ListIter {
376376
};
377377

378378
template <typename L>
379-
auto begin(L& list) -> ListIter<decltype(list.get(0)), L> {
380-
return ListIter<decltype(list.get(0)), L>(list, 0);
379+
auto begin(L& list) -> ListIter<decltype(list.get_at(0)), L> {
380+
return ListIter<decltype(list.get_at(0)), L>(list, 0);
381381
}
382382

383383
template <typename L>
384-
auto end(L& list) -> ListIter<decltype(list.get(0)), L> {
385-
return ListIter<decltype(list.get(0)), L>(list, list.n());
384+
auto end(L& list) -> ListIter<decltype(list.get_at(0)), L> {
385+
return ListIter<decltype(list.get_at(0)), L>(list, list.size());
386386
}
387387

388388
} // namespace detail

third-party/islpp

Submodule islpp updated from 639cacc to 74bfaa2

0 commit comments

Comments
 (0)