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

Commit d81fb28

Browse files
author
Sven Verdoolaege
committed
collectIteratorMaps: undo argument renaming
Now that collectIteratorMaps is a stand-alone function, the renaming of 020faf0 (Compilation fix for -Werror=shadow-compatible-local, Mon May 7 15:12:13 2018 -0700) is no longer needed.
1 parent 5414b7c commit d81fb28

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tc/core/polyhedral/codegen_llvm.cc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -609,31 +609,31 @@ struct IslCodegenRes {
609609
isl::ast_node collectIteratorMaps(
610610
isl::ast_node node,
611611
isl::ast_build build,
612-
IteratorMapsType& iteratorMapsInFun,
613-
const Scop& scopInFun,
614-
StmtSubscriptExprMapType& stmtSubscriptsInFun) {
612+
IteratorMapsType& iteratorMaps,
613+
const Scop& scop,
614+
StmtSubscriptExprMapType& stmtSubscripts) {
615615
auto user = node.as<isl::ast_node_user>();
616616
CHECK(user);
617617
auto expr = user.get_expr().as<isl::ast_expr_op>();
618618
auto schedule = build.get_schedule();
619619
auto scheduleMap = isl::map::from_union_map(schedule);
620620

621621
auto stmtId = expr.get_arg(0).as<isl::ast_expr_id>().get_id();
622-
CHECK_EQ(0u, iteratorMapsInFun.count(stmtId)) << "entry exists: " << stmtId;
622+
CHECK_EQ(0u, iteratorMaps.count(stmtId)) << "entry exists: " << stmtId;
623623
auto iteratorMap = isl::pw_multi_aff(scheduleMap.reverse());
624-
auto iterators = scopInFun.halide.iterators.at(stmtId);
625-
auto& stmtIteratorMap = iteratorMapsInFun[stmtId];
624+
auto iterators = scop.halide.iterators.at(stmtId);
625+
auto& stmtIteratorMap = iteratorMaps[stmtId];
626626
for (size_t i = 0; i < iterators.size(); ++i) {
627627
auto expr = build.expr_from(iteratorMap.get_pw_aff(i));
628628
stmtIteratorMap.emplace(iterators[i], expr);
629629
}
630-
auto& subscripts = stmtSubscriptsInFun[stmtId];
630+
auto& subscripts = stmtSubscripts[stmtId];
631631
auto provide =
632-
scopInFun.halide.statements.at(stmtId).as<Halide::Internal::Provide>();
632+
scop.halide.statements.at(stmtId).as<Halide::Internal::Provide>();
633633
for (auto e : provide->args) {
634634
const auto& map = iteratorMap;
635635
auto space = map.get_space().params();
636-
auto aff = scopInFun.makeIslAffFromStmtExpr(stmtId, space, e);
636+
auto aff = scop.makeIslAffFromStmtExpr(stmtId, space, e);
637637
auto pulled = isl::pw_aff(aff).pullback(map);
638638
CHECK_EQ(pulled.n_piece(), 1);
639639
subscripts.push_back(build.expr_from(pulled));

0 commit comments

Comments
 (0)