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

Commit 34f3010

Browse files
author
Sven Verdoolaege
committed
inline isSingleReductionWithin
1 parent 5e77383 commit 34f3010

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

tc/core/polyhedral/reduction_matcher.cc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,5 @@ isl::union_set reductionUpdates(isl::union_set domain, const Scop& scop) {
6666
return update;
6767
}
6868

69-
bool isSingleReductionWithin(
70-
isl::union_set domain,
71-
isl::multi_union_pw_aff prefix,
72-
const Scop& scop) {
73-
auto reductions = scop.body.reductions;
74-
reductions = reductions.intersect_domain(domain);
75-
auto prefixMap = isl::union_map::from(prefix);
76-
auto prefixToReduction = reductions.apply_domain(prefixMap);
77-
return prefixToReduction.is_single_valued();
78-
}
79-
8069
} // namespace polyhedral
8170
} // namespace tc

tc/core/polyhedral/schedule_tree_matcher-inl.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,5 +291,16 @@ inline std::vector<const detail::ScheduleTree*> match(
291291
return matchDFSPreorder(matcher, tree);
292292
}
293293

294+
inline bool isSingleReductionWithin(
295+
isl::union_set domain,
296+
isl::multi_union_pw_aff prefix,
297+
const Scop& scop) {
298+
auto reductions = scop.body.reductions;
299+
reductions = reductions.intersect_domain(domain);
300+
auto prefixMap = isl::union_map::from(prefix);
301+
auto prefixToReduction = reductions.apply_domain(prefixMap);
302+
return prefixToReduction.is_single_valued();
303+
}
304+
294305
} // namespace polyhedral
295306
} // namespace tc

0 commit comments

Comments
 (0)