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

Commit 7139ccb

Browse files
author
Sven Verdoolaege
committed
halide2isl.cc: makeScheduleTreeHelper: add some documentation
1 parent c315745 commit 7139ccb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/core/halide2isl.cc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,20 @@ struct ScheduleTreeAndDomain {
316316
isl::union_set domain;
317317
};
318318

319+
/*
320+
* Helper function for extracting a schedule tree from a Halide Stmt,
321+
* recursively descending over the Stmt.
322+
* "s" is the current position in the recursive descent.
323+
* "set" describes the bounds on the outer loop iterators.
324+
* Return the schedule tree corresponding to the subtree at "s",
325+
* along with a separated out domain.
326+
*
327+
* "reads" and "writes" collect the accesses found along the way.
328+
* "accesses" collects the mapping from Call (for the reads) and Provide nodes
329+
* (for the writes) to the corresponding tag in the access relations.
330+
* "statements" collects the mapping from instance set tuple identifiers
331+
* to the corresponding Provide node.
332+
*/
319333
ScheduleTreeAndDomain makeScheduleTreeHelper(
320334
const Stmt& s,
321335
isl::set set,

0 commit comments

Comments
 (0)