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

Commit 9ac9985

Browse files
author
Sven Verdoolaege
committed
makeParamSpace: take ParameterVector instead of SymbolTable
Only the ParameterVector is required and the SymbolTable is only available inside Scop::makeScop.
1 parent 0b2d9aa commit 9ac9985

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tc/core/halide2isl.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,17 +227,17 @@ isl::aff makeIslAffFromExpr(isl::space space, const Expr& e) {
227227
return list[0];
228228
}
229229

230-
isl::space makeParamSpace(isl::ctx ctx, const SymbolTable& symbolTable) {
230+
isl::space makeParamSpace(isl::ctx ctx, const ParameterVector& params) {
231231
auto space = isl::space(ctx, 0);
232232
// set parameter names
233-
for (auto p : symbolTable.params) {
233+
for (auto p : params) {
234234
space = space.add_param(isl::id(ctx, p.name()));
235235
}
236236
return space;
237237
}
238238

239239
isl::set makeParamContext(isl::ctx ctx, const SymbolTable& symbolTable) {
240-
auto space = makeParamSpace(ctx, symbolTable);
240+
auto space = makeParamSpace(ctx, symbolTable.params);
241241
auto context = isl::set::universe(space);
242242
for (auto p : symbolTable.params) {
243243
isl::aff a(isl::aff::param_on_domain_space(space, isl::id(ctx, p.name())));

tc/core/halide2isl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ struct SymbolTable {
4141
};
4242
SymbolTable makeSymbolTable(const tc2halide::HalideComponents& components);
4343

44-
/// Make the space of all parameter values from the symbol table
45-
isl::space makeParamSpace(isl::ctx ctx, const SymbolTable& symbolTable);
44+
/// Make the space of all given parameter values
45+
isl::space makeParamSpace(isl::ctx ctx, const ParameterVector& params);
4646

4747
/// Make the parameter set marking all parameters from the symbol table
4848
/// as non-negative.

0 commit comments

Comments
 (0)