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

Commit f690087

Browse files
committed
Resolve comments
1 parent 6e822ac commit f690087

File tree

4 files changed

+4
-20
lines changed

4 files changed

+4
-20
lines changed

include/tc/core/mapping_options.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ class SchedulerOptionsView {
192192
/// Construct a view that refers to a protocol buffers message.
193193
SchedulerOptionsView(const SchedulerOptionsView&) = default;
194194
SchedulerOptionsView(SchedulerOptionsProto& buf) : proto(buf) {}
195-
SchedulerOptionsView(SchedulerOptionsProto&& buf) : proto(buf) {}
196195

197196
/// Assign the values from another view.
198197
inline SchedulerOptionsView& operator=(const SchedulerOptionsView&);

include/tc/core/polyhedral/scop.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,6 @@ struct Scop {
337337
return scheduleTreeUPtr.get();
338338
}
339339

340-
// Create a Scop scheduled with a given scheduling strategy.
341-
static std::unique_ptr<Scop> makeScheduled(
342-
const Scop& scop,
343-
const SchedulerOptionsView&& schedulerOptions);
344-
345340
// Create a Scop scheduled with a given scheduling strategy.
346341
static std::unique_ptr<Scop> makeScheduled(
347342
const Scop& scop,

src/core/polyhedral/scop.cc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -463,17 +463,6 @@ std::unique_ptr<Scop> Scop::makeScheduled(
463463
return s;
464464
}
465465

466-
std::unique_ptr<Scop> Scop::makeScheduled(
467-
const Scop& scop,
468-
const SchedulerOptionsView&& schedulerOptions) {
469-
auto s = makeScop(scop);
470-
auto constraints = makeScheduleConstraints(*s, schedulerOptions);
471-
s->scheduleTreeUPtr = computeSchedule(constraints, schedulerOptions);
472-
LOG_IF(INFO, FLAGS_debug_tc_mapper) << "After scheduling:" << std::endl
473-
<< *s->scheduleTreeUPtr;
474-
return s;
475-
}
476-
477466
namespace {
478467

479468
/*

test/test_mapper_llvm.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def fun(float(N, M) A, float(N, M) B) -> (C) {
6868
TEST(LLVMCodegen, BasicParallel) {
6969
string tc = R"TC(
7070
def fun(float(N, M) A, float(N, M) B) -> (C) {
71-
C(i, j) = A(i, j) + B(i, j)
71+
C(n, m) = A(n, m) + B(n, m)
7272
}
7373
)TC";
7474
auto N = 40;
@@ -79,8 +79,9 @@ def fun(float(N, M) A, float(N, M) B) -> (C) {
7979
auto context = scop->makeContext(
8080
std::unordered_map<std::string, int>{{"N", N}, {"M", M}});
8181
scop = Scop::makeSpecializedScop(*scop, context);
82-
scop =
83-
Scop::makeScheduled(*scop, SchedulerOptionsView(SchedulerOptionsProto()));
82+
SchedulerOptionsProto sop;
83+
SchedulerOptionsView sov(sop);
84+
scop = Scop::makeScheduled(*scop, sov);
8485
Jit jit;
8586
auto mod = jit.codegenScop("kernel_anon", *scop);
8687
auto correct_llvm = R"LLVM(

0 commit comments

Comments
 (0)