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

Commit af9b3fb

Browse files
authored
Merge pull request #509 from facebookresearch/pr/clean_up
minor clean-ups
2 parents 58207a9 + 1a266fd commit af9b3fb

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

tc/core/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* 3. parse a TC definition and retrieve the map of TC function to parsed TC
3333
* trees.
3434
*
35-
* Compilation is backed by a compilation cache, its correspondance is:
35+
* Compilation is backed by a compilation cache, its correspondence is:
3636
* 1 TcExecutor <-> 1 compiled tuple<TC function, input shapes, MappingOptions>
3737
*
3838
* The compile function is templated by the Backend type.

tc/core/halide2isl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ScheduleTreeAndAccesses makeScheduleTree(
9393
const Halide::Internal::Stmt& s);
9494

9595
/// Enumerate all reductions in a statement, by looking for the
96-
/// ReductionInit and ReductionUpdate markers inserted during lowering
96+
/// ReductionUpdate markers inserted during lowering
9797
/// (see tc2halide.h).
9898
/// Each reduction object stores a reference to
9999
/// the update statement, and a list of reduction dimensions

tc/core/polyhedral/memory_promotion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum class AccessType : short { Read, Write };
3838
// access is not strided, then "offset" is a zero expression and "stride" is 1.
3939
// The lowerBound and the size are computed after removing the potential stride.
4040
// The scope is defined by a specific position in a schedule tree (const
41-
// ScheduleTree*), the user is responsible for maintaining the correspondance
41+
// ScheduleTree*), the user is responsible for maintaining the correspondence
4242
// between schedule tree positions and footprints.
4343
struct ScopedFootprint {
4444
size_t dim() const {
@@ -66,7 +66,7 @@ struct ScopedFootprint {
6666

6767
// Descriptor of tensor reference in a Scop.
6868
// May be scoped to a specific position in a schedule tree, the user is
69-
// responsible for maintaining the correspondance between schedule tree
69+
// responsible for maintaining the correspondence between schedule tree
7070
// positions and scoped access relations.
7171
class TensorReference {
7272
public:
@@ -104,7 +104,7 @@ typedef std::unordered_map<isl::id, TensorGroupsInfo, isl::IslIdIslHash>
104104
// memory together to avoid inconsistent values.
105105
//
106106
// Scoped to a specific position in a schedule tree, the user is responsible
107-
// for maintaing the correspondance between schedule tree positions and scoped
107+
// for maintaining the correspondence between schedule tree positions and scoped
108108
// access relations of each reference as well as scoped footprints.
109109
class TensorReferenceGroup {
110110
private:

tc/core/polyhedral/schedule_tree_elem.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ struct ScheduleTreeElemBand : public ScheduleTreeElemBase {
260260
// Drop the "n" dimensions starting at "pos" from "band".
261261
// We apply the transformation even if "n" is zero to ensure consistent
262262
// behavior with respect to changes in the schedule space.
263-
// The caller is responsible for updating the isolate option (Note: why?)
264263
void drop(size_t pos, size_t n);
265264

266265
public:

tc/core/polyhedral/scop.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,12 @@ std::ostream& operator<<(std::ostream& os, const Scop& s) {
103103
for (auto i : s.halide.idx) {
104104
os << i << ", ";
105105
}
106+
os << "}, ";
106107
os << "reductionIdx: { ";
107108
for (auto i : s.halide.reductionIdx) {
108109
os << i << ", ";
109110
}
111+
os << "}, ";
110112
os << "params: {";
111113
for (auto p : s.halide.params) {
112114
os << p.type() << " " << p.name() << ", ";

0 commit comments

Comments
 (0)