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

Commit 45c5ed6

Browse files
author
Sven Verdoolaege
committed
move addRange to islpp.h
This makes it easier to reuse this function in the next commit.
1 parent 512f9c7 commit 45c5ed6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tc/core/polyhedral/memory_promotion.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ ScopedFootprint outputRanges(isl::map access) {
7777
footprint.box = access.get_range_simple_fixed_box_hull();
7878
return footprint;
7979
}
80-
81-
// Given a set space, construct a map space with the input as domain and
82-
// a range of the given size.
83-
isl::space addRange(isl::space space, unsigned dim) {
84-
auto range = space.params().unnamed_set_from_params(dim);
85-
return space.map_from_domain_and_range(range);
86-
}
87-
8880
} // namespace
8981

9082
// Access has the shape :: [S -> ref] -> O

tc/external/detail/islpp.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,14 @@ inline bool operator!=(const isl::id& id1, const isl::id& id2) {
280280
///////////////////////////////////////////////////////////////////////////////
281281
// Helper functions
282282
///////////////////////////////////////////////////////////////////////////////
283+
284+
// Given a set space, construct a map space with the input as domain and
285+
// a range of the given size.
286+
inline isl::space addRange(isl::space space, unsigned dim) {
287+
auto range = space.params().unnamed_set_from_params(dim);
288+
return space.map_from_domain_and_range(range);
289+
}
290+
283291
// Given a space and a list of values, this returns the corresponding multi_val.
284292
template <typename T>
285293
isl::multi_val makeMultiVal(isl::space s, const std::vector<T>& vals) {

0 commit comments

Comments
 (0)