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

Commit a3ac28f

Browse files
author
Sven Verdoolaege
committed
insertExtensionAbove: make it more obvious that root argument can be relative
1 parent d69f2ff commit a3ac28f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tc/core/polyhedral/schedule_transforms.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,10 @@ ScheduleTree* insertSequenceAbove(ScheduleTree* root, ScheduleTree* tree) {
505505
}
506506

507507
ScheduleTree* insertExtensionAbove(
508-
ScheduleTree* root,
508+
ScheduleTree* relativeRoot,
509509
ScheduleTree* tree,
510510
isl::union_map extension) {
511-
auto parent = tree->ancestor(root, 1);
511+
auto parent = tree->ancestor(relativeRoot, 1);
512512
auto childPos = tree->positionInParent(parent);
513513
auto child = parent->detachChild(childPos);
514514
parent->insertChild(

tc/core/polyhedral/schedule_transforms.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ detail::ScheduleTree* insertSequenceAbove(
167167
detail::ScheduleTree* root,
168168
detail::ScheduleTree* tree);
169169

170-
// In a tree starting at a (relative) "root", insert an extension node with the
170+
// In a tree starting at a "relativeRoot", insert an extension node with the
171171
// given extension above the node identified by "tree".
172172
//
173173
// The tree is modified in place.
174174
// Return a non-owning pointer to the inserted extension node
175175
// for call chaining purposes.
176176
detail::ScheduleTree* insertExtensionAbove(
177-
detail::ScheduleTree* root,
177+
detail::ScheduleTree* relativeRoot,
178178
detail::ScheduleTree* tree,
179179
isl::union_map extension);
180180

0 commit comments

Comments
 (0)