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

Commit 220ff68

Browse files
author
Sven Verdoolaege
committed
IterationDomain: also keep track of original parameter space
The function makeIslAffBoundsFromExpr will be changed to only take a parameter space as input. Scop::makeIslAffFromStmtExpr therefore needs to have access to the set of all parameters available at the point where the iteration domain is constructed. Store them in IterationDomain for reuse in Scop::makeIslAffFromStmtExpr. Note that these parameters are not available as such in the iteration domain tuple since they are not parameters from the point of view of the iteration domain.
1 parent 94c1141 commit 220ff68

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tc/core/halide2isl.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ isl::schedule makeScheduleTreeHelper(
433433
auto tupleSpace = isl::space(set.get_ctx(), 0);
434434
tupleSpace = tupleSpace.named_set_from_params_id(id, outer.n());
435435
IterationDomain iterationDomain;
436+
iterationDomain.paramSpace = set.get_space();
436437
iterationDomain.tuple = isl::multi_id(tupleSpace, outer);
437438
domains->emplace(id, iterationDomain);
438439
auto domain = set.unbind_params(iterationDomain.tuple);

tc/core/halide2isl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ isl::aff makeIslAffFromExpr(isl::space space, const Halide::Expr& e);
5858

5959
// Iteration domain information associated to a statement identifier.
6060
struct IterationDomain {
61+
// All parameters active at the point where the iteration domain
62+
// was created, including those corresponding to outer loop iterators.
63+
isl::space paramSpace;
6164
// The identifier tuple corresponding to the iteration domain.
6265
// The identifiers in the tuple are the outer loop iterators,
6366
// from outermost to innermost.

0 commit comments

Comments
 (0)