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

Commit 2d0d658

Browse files
committed
schedule_print.cc: print each map of an extension on a new line
This was omitted in the original commit in the prehistory that made union_* members of schedule nodes print members of a union on separate lines since there was no isl::union_map::get_map_list available.
1 parent 45de18a commit 2d0d658

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tc/core/polyhedral/schedule_print.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,12 @@ std::ostream& ScheduleTreeElemDomain::write(std::ostream& os) const {
185185

186186
std::ostream& ScheduleTreeElemExtension::write(std::ostream& os) const {
187187
WS w;
188-
os << w.tab() << "extension(" << extension_ << ")";
188+
os << w.tab() << "extension(";
189+
for (const auto& e : extension_.get_map_list()) {
190+
WS w2;
191+
os << std::endl << w2.tab() << e;
192+
}
193+
os << ")";
189194
return os;
190195
}
191196

0 commit comments

Comments
 (0)