Skip to content

Commit

Permalink
Changed getTransformations() to const for make test to compile #155
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonaldlowe committed Sep 29, 2021
1 parent 9b4eb94 commit c540f26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/computation/Computation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,7 @@ std::vector<Set*> Computation::applyTransformations() {
return transformedSchedules;
}

std::vector<Relation*> Computation::getTransformations() {
std::vector<Relation*> Computation::getTransformations() const {
std::vector<Relation*> transformedSchedules(getNumStmts(), NULL);
for (int stmtNum = 0; stmtNum < this->getNumStmts(); ++stmtNum) {
transformedSchedules[stmtNum] = new Relation(
Expand Down
2 changes: 1 addition & 1 deletion src/computation/Computation.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class Computation {
//! Sequentially composes addes transfomations onto each statement's
// execution schedule (scheduling function)
// Caller is responsible for deallocating Relation*
std::vector<Relation*> getTransformations();
std::vector<Relation*> getTransformations() const;

//! Returns a list of iteration spaces after padding and applying transformations
std::vector<std::pair<int, Set*>> getIterSpaces();
Expand Down

0 comments on commit c540f26

Please sign in to comment.