@@ -136,7 +136,9 @@ const CudaDim& mappingSize<mapping::ThreadId>(const MappedScop* mscop) {
136
136
// Return a pointer to the updated node (below the inserted filter)
137
137
// for call chaining purposes.
138
138
template <typename MappingTypeId>
139
- ScheduleTree* MappedScop::map (ScheduleTree* tree, isl::union_pw_aff_list list) {
139
+ ScheduleTree* MappedScop::map (
140
+ ScheduleTree* tree,
141
+ isl::UnionPwAffListOn<Statement> list) {
140
142
size_t nToMap = list.size ();
141
143
const auto & extent = mappingSize<MappingTypeId>(this ).view ;
142
144
TC_CHECK_LE (nToMap, extent.size ()) << " dimension overflow" ;
@@ -146,7 +148,7 @@ ScheduleTree* MappedScop::map(ScheduleTree* tree, isl::union_pw_aff_list list) {
146
148
auto universe = domain.universe ();
147
149
148
150
std::vector<MappingTypeId> idList;
149
- auto affList = isl::union_pw_aff_list (list.get_ctx (), 0 );
151
+ auto affList = isl::UnionPwAffListOn<Statement> (list.get_ctx (), 0 );
150
152
for (size_t i = 0 ; i < nToMap; ++i) {
151
153
auto id = MappingTypeId::makeId (i);
152
154
auto upa = list.get_at (i);
@@ -158,8 +160,8 @@ ScheduleTree* MappedScop::map(ScheduleTree* tree, isl::union_pw_aff_list list) {
158
160
159
161
for (size_t i = nToMap; i < extent.size (); ++i) {
160
162
auto id = MappingTypeId::makeId (i);
161
- affList = affList.add (
162
- isl::union_pw_aff ( universe, isl::val::zero (domain.get_ctx ())));
163
+ affList = affList.add (isl::UnionPwAffOn<Statement>(
164
+ universe, isl::val::zero (domain.get_ctx ())));
163
165
idList.emplace_back (id);
164
166
}
165
167
0 commit comments