Skip to content

Commit f28c5ac

Browse files
kiszktensorflower-gardener
authored andcommitted
Fix minor spelling tweaks (NFC)
Closes tensorflow/mlir#175 PiperOrigin-RevId: 275726876
1 parent 8bfedb3 commit f28c5ac

File tree

40 files changed

+62
-62
lines changed

40 files changed

+62
-62
lines changed

mlir/bindings/python/pybind.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ struct PythonBlockContext {
397397
}
398398

399399
// EDSC maintain an implicit stack of builders (mostly for keeping track of
400-
// insretion points); every operation gets inserted using the top-of-the-stack
400+
// insertion points); every operation gets inserted using the top-of-the-stack
401401
// builder. Creating a new EDSC Builder automatically puts it on the stack,
402402
// effectively entering the block for it.
403403
void createBlockBuilder() {
@@ -422,7 +422,7 @@ struct PythonBlockContext {
422422
PythonBlockHandle getHandle() { return handle; }
423423

424424
// EDSC maintain an implicit stack of builders (mostly for keeping track of
425-
// insretion points); every operation gets inserted using the top-of-the-stack
425+
// insertion points); every operation gets inserted using the top-of-the-stack
426426
// builder. Calling operator() on a builder pops the builder from the stack,
427427
// effectively resetting the insertion point to its position before we entered
428428
// the block.
@@ -523,7 +523,7 @@ struct PythonIndexedValue {
523523

524524
void store(const std::vector<PythonValueHandle> &indices,
525525
PythonValueHandle value) {
526-
// Uses the overloaded `opreator=` to emit a store.
526+
// Uses the overloaded `operator=` to emit a store.
527527
index(indices).indexed = value.value;
528528
}
529529

mlir/examples/toy/Ch1/include/toy/Parser.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Parser {
9797
/// Parse a literal array expression.
9898
/// tensorLiteral ::= [ literalList ] | number
9999
/// literalList ::= tensorLiteral | tensorLiteral, literalList
100-
std::unique_ptr<ExprAST> ParseTensorLitteralExpr() {
100+
std::unique_ptr<ExprAST> ParseTensorLiteralExpr() {
101101
auto loc = lexer.getLastLocation();
102102
lexer.consume(Token('['));
103103

@@ -108,7 +108,7 @@ class Parser {
108108
do {
109109
// We can have either another nested array or a number literal.
110110
if (lexer.getCurToken() == '[') {
111-
values.push_back(ParseTensorLitteralExpr());
111+
values.push_back(ParseTensorLiteralExpr());
112112
if (!values.back())
113113
return nullptr; // parse error in the nested array.
114114
} else {
@@ -236,7 +236,7 @@ class Parser {
236236
case '(':
237237
return ParseParenExpr();
238238
case '[':
239-
return ParseTensorLitteralExpr();
239+
return ParseTensorLiteralExpr();
240240
case ';':
241241
return nullptr;
242242
case '}':

mlir/examples/toy/Ch1/parser/AST.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void ASTDumper::dump(NumberExprAST *num) {
125125
llvm::errs() << num->getValue() << " " << loc(num) << "\n";
126126
}
127127

128-
/// Helper to print recurisvely a literal. This handles nested array like:
128+
/// Helper to print recursively a literal. This handles nested array like:
129129
/// [ [ 1, 2 ], [ 3, 4 ] ]
130130
/// We print out such array with the dimensions spelled out at every level:
131131
/// <2,2>[<2>[ 1, 2 ], <2>[ 3, 4 ] ]

mlir/examples/toy/Ch2/include/toy/Parser.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Parser {
9797
/// Parse a literal array expression.
9898
/// tensorLiteral ::= [ literalList ] | number
9999
/// literalList ::= tensorLiteral | tensorLiteral, literalList
100-
std::unique_ptr<ExprAST> ParseTensorLitteralExpr() {
100+
std::unique_ptr<ExprAST> ParseTensorLiteralExpr() {
101101
auto loc = lexer.getLastLocation();
102102
lexer.consume(Token('['));
103103

@@ -108,7 +108,7 @@ class Parser {
108108
do {
109109
// We can have either another nested array or a number literal.
110110
if (lexer.getCurToken() == '[') {
111-
values.push_back(ParseTensorLitteralExpr());
111+
values.push_back(ParseTensorLiteralExpr());
112112
if (!values.back())
113113
return nullptr; // parse error in the nested array.
114114
} else {
@@ -236,7 +236,7 @@ class Parser {
236236
case '(':
237237
return ParseParenExpr();
238238
case '[':
239-
return ParseTensorLitteralExpr();
239+
return ParseTensorLiteralExpr();
240240
case ';':
241241
return nullptr;
242242
case '}':

mlir/examples/toy/Ch2/mlir/MLIRGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class MLIRGenImpl {
9191
mlir::ModuleOp theModule;
9292

9393
/// The builder is a helper class to create IR inside a function. The builder
94-
/// is stateful, in particular it keeeps an "insertion point": this is where
94+
/// is stateful, in particular it keeps an "insertion point": this is where
9595
/// the next operations will be introduced.
9696
mlir::OpBuilder builder;
9797

mlir/examples/toy/Ch2/parser/AST.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void ASTDumper::dump(NumberExprAST *num) {
125125
llvm::errs() << num->getValue() << " " << loc(num) << "\n";
126126
}
127127

128-
/// Helper to print recurisvely a literal. This handles nested array like:
128+
/// Helper to print recursively a literal. This handles nested array like:
129129
/// [ [ 1, 2 ], [ 3, 4 ] ]
130130
/// We print out such array with the dimensions spelled out at every level:
131131
/// <2,2>[<2>[ 1, 2 ], <2>[ 3, 4 ] ]

mlir/examples/toy/Ch3/include/toy/Parser.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Parser {
9797
/// Parse a literal array expression.
9898
/// tensorLiteral ::= [ literalList ] | number
9999
/// literalList ::= tensorLiteral | tensorLiteral, literalList
100-
std::unique_ptr<ExprAST> ParseTensorLitteralExpr() {
100+
std::unique_ptr<ExprAST> ParseTensorLiteralExpr() {
101101
auto loc = lexer.getLastLocation();
102102
lexer.consume(Token('['));
103103

@@ -108,7 +108,7 @@ class Parser {
108108
do {
109109
// We can have either another nested array or a number literal.
110110
if (lexer.getCurToken() == '[') {
111-
values.push_back(ParseTensorLitteralExpr());
111+
values.push_back(ParseTensorLiteralExpr());
112112
if (!values.back())
113113
return nullptr; // parse error in the nested array.
114114
} else {
@@ -236,7 +236,7 @@ class Parser {
236236
case '(':
237237
return ParseParenExpr();
238238
case '[':
239-
return ParseTensorLitteralExpr();
239+
return ParseTensorLiteralExpr();
240240
case ';':
241241
return nullptr;
242242
case '}':

mlir/examples/toy/Ch3/mlir/MLIRGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class MLIRGenImpl {
9191
mlir::ModuleOp theModule;
9292

9393
/// The builder is a helper class to create IR inside a function. The builder
94-
/// is stateful, in particular it keeeps an "insertion point": this is where
94+
/// is stateful, in particular it keeps an "insertion point": this is where
9595
/// the next operations will be introduced.
9696
mlir::OpBuilder builder;
9797

mlir/examples/toy/Ch4/include/toy/Parser.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Parser {
9797
/// Parse a literal array expression.
9898
/// tensorLiteral ::= [ literalList ] | number
9999
/// literalList ::= tensorLiteral | tensorLiteral, literalList
100-
std::unique_ptr<ExprAST> ParseTensorLitteralExpr() {
100+
std::unique_ptr<ExprAST> ParseTensorLiteralExpr() {
101101
auto loc = lexer.getLastLocation();
102102
lexer.consume(Token('['));
103103

@@ -108,7 +108,7 @@ class Parser {
108108
do {
109109
// We can have either another nested array or a number literal.
110110
if (lexer.getCurToken() == '[') {
111-
values.push_back(ParseTensorLitteralExpr());
111+
values.push_back(ParseTensorLiteralExpr());
112112
if (!values.back())
113113
return nullptr; // parse error in the nested array.
114114
} else {
@@ -236,7 +236,7 @@ class Parser {
236236
case '(':
237237
return ParseParenExpr();
238238
case '[':
239-
return ParseTensorLitteralExpr();
239+
return ParseTensorLiteralExpr();
240240
case ';':
241241
return nullptr;
242242
case '}':

mlir/examples/toy/Ch4/parser/AST.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void ASTDumper::dump(NumberExprAST *num) {
125125
llvm::errs() << num->getValue() << " " << loc(num) << "\n";
126126
}
127127

128-
/// Helper to print recurisvely a literal. This handles nested array like:
128+
/// Helper to print recursively a literal. This handles nested array like:
129129
/// [ [ 1, 2 ], [ 3, 4 ] ]
130130
/// We print out such array with the dimensions spelled out at every level:
131131
/// <2,2>[<2>[ 1, 2 ], <2>[ 3, 4 ] ]

0 commit comments

Comments
 (0)