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

Commit 8426352

Browse files
author
Sven Verdoolaege
committed
halide2isl.cc: hide extractAccesses
This is a local function, so there is no need to expose it.
1 parent 41279c8 commit 8426352

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tc/core/halide2isl.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ isl::set makeParamContext(isl::ctx ctx, const ParameterVector& params) {
248248
return context;
249249
}
250250

251+
namespace {
252+
251253
isl::map extractAccess(
252254
isl::set domain,
253255
const IRNode* op,
@@ -329,6 +331,8 @@ extractAccesses(isl::set domain, const Stmt& s, AccessMap* accesses) {
329331
return {finder.reads, finder.writes};
330332
}
331333

334+
} // namespace
335+
332336
/*
333337
* Helper function for extracting a schedule from a Halide Stmt,
334338
* recursively descending over the Stmt.
@@ -446,8 +450,7 @@ isl::schedule makeScheduleTreeHelper(
446450
schedule = isl::schedule::from_domain(domain);
447451

448452
isl::union_map newReads, newWrites;
449-
std::tie(newReads, newWrites) =
450-
halide2isl::extractAccesses(domain, op, accesses);
453+
std::tie(newReads, newWrites) = extractAccesses(domain, op, accesses);
451454

452455
*reads = reads->unite(newReads);
453456
*writes = writes->unite(newWrites);

0 commit comments

Comments
 (0)