diff options
| author | Christian Sigg <csigg@google.com> | 2019-10-04 04:37:14 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-10-04 04:37:53 -0700 |
| commit | 85dcaf19c721c4c745cd4fa3972aa9093acd69d3 (patch) | |
| tree | c311b0c28846249bdfaa6f124ceda4b79d5757be /mlir/examples | |
| parent | 5830f71a45df33e24c864bea4c5de070be47b488 (diff) | |
| download | bcm5719-llvm-85dcaf19c721c4c745cd4fa3972aa9093acd69d3.tar.gz bcm5719-llvm-85dcaf19c721c4c745cd4fa3972aa9093acd69d3.zip | |
Fix typos, NFC.
PiperOrigin-RevId: 272851237
Diffstat (limited to 'mlir/examples')
| -rw-r--r-- | mlir/examples/Linalg/Linalg3/lib/ConvertToLLVMDialect.cpp | 2 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch1/include/toy/Parser.h | 6 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch2/include/toy/Parser.h | 6 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch3/include/toy/Dialect.h | 6 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch3/include/toy/Parser.h | 6 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch3/parser/AST.cpp | 2 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch4/include/toy/Dialect.h | 6 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch4/include/toy/Parser.h | 6 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch4/mlir/MLIRGen.cpp | 2 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch5/include/toy/Dialect.h | 6 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch5/include/toy/Parser.h | 6 |
11 files changed, 27 insertions, 27 deletions
diff --git a/mlir/examples/Linalg/Linalg3/lib/ConvertToLLVMDialect.cpp b/mlir/examples/Linalg/Linalg3/lib/ConvertToLLVMDialect.cpp index c1c31d1d09c..4c51ae7e675 100644 --- a/mlir/examples/Linalg/Linalg3/lib/ConvertToLLVMDialect.cpp +++ b/mlir/examples/Linalg/Linalg3/lib/ConvertToLLVMDialect.cpp @@ -132,7 +132,7 @@ struct LinalgTypeConverter : public LLVMTypeConverter { } // end anonymous namespace // Helper function that allocates the descriptor converters and adds load/store -// coverters to the list. +// converters to the list. static void populateLinalg3ToLLVMConversionPatterns( mlir::OwningRewritePatternList &patterns, mlir::MLIRContext *context) { patterns.insert<LoadOpConversion, StoreOpConversion>(context); diff --git a/mlir/examples/toy/Ch1/include/toy/Parser.h b/mlir/examples/toy/Ch1/include/toy/Parser.h index 75c660b7c78..5962a982ff0 100644 --- a/mlir/examples/toy/Ch1/include/toy/Parser.h +++ b/mlir/examples/toy/Ch1/include/toy/Parser.h @@ -140,7 +140,7 @@ private: auto *firstLiteral = llvm::dyn_cast<LiteralExprAST>(values.front().get()); if (!firstLiteral) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); // Append the nested dimensions to the current level auto &firstDims = firstLiteral->getDims(); @@ -151,10 +151,10 @@ private: auto *exprLiteral = llvm::cast<LiteralExprAST>(expr.get()); if (!exprLiteral) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); if (exprLiteral->getDims() != firstDims) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); } } return std::make_unique<LiteralExprAST>(std::move(loc), std::move(values), diff --git a/mlir/examples/toy/Ch2/include/toy/Parser.h b/mlir/examples/toy/Ch2/include/toy/Parser.h index 75c660b7c78..5962a982ff0 100644 --- a/mlir/examples/toy/Ch2/include/toy/Parser.h +++ b/mlir/examples/toy/Ch2/include/toy/Parser.h @@ -140,7 +140,7 @@ private: auto *firstLiteral = llvm::dyn_cast<LiteralExprAST>(values.front().get()); if (!firstLiteral) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); // Append the nested dimensions to the current level auto &firstDims = firstLiteral->getDims(); @@ -151,10 +151,10 @@ private: auto *exprLiteral = llvm::cast<LiteralExprAST>(expr.get()); if (!exprLiteral) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); if (exprLiteral->getDims() != firstDims) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); } } return std::make_unique<LiteralExprAST>(std::move(loc), std::move(values), diff --git a/mlir/examples/toy/Ch3/include/toy/Dialect.h b/mlir/examples/toy/Ch3/include/toy/Dialect.h index 87d737f375f..a256379661b 100644 --- a/mlir/examples/toy/Ch3/include/toy/Dialect.h +++ b/mlir/examples/toy/Ch3/include/toy/Dialect.h @@ -38,19 +38,19 @@ namespace toy { /// This is the definition of the Toy dialect. A dialect inherits from /// mlir::Dialect and register custom operations and types (in its constructor). -/// It can also overridding general behavior of dialects exposed as virtual +/// It can also overriding general behavior of dialects exposed as virtual /// method, for example regarding verification and parsing/printing. class ToyDialect : public mlir::Dialect { public: explicit ToyDialect(mlir::MLIRContext *ctx); - /// Parse a type registered to this dialect. Overridding this method is + /// Parse a type registered to this dialect. Overriding this method is /// required for dialects that have custom types. /// Technically this is only needed to be able to round-trip to textual IR. mlir::Type parseType(llvm::StringRef tyData, mlir::Location loc) const override; - /// Print a type registered to this dialect. Overridding this method is + /// Print a type registered to this dialect. Overriding this method is /// only required for dialects that have custom types. /// Technically this is only needed to be able to round-trip to textual IR. void printType(mlir::Type type, llvm::raw_ostream &os) const override; diff --git a/mlir/examples/toy/Ch3/include/toy/Parser.h b/mlir/examples/toy/Ch3/include/toy/Parser.h index 75c660b7c78..5962a982ff0 100644 --- a/mlir/examples/toy/Ch3/include/toy/Parser.h +++ b/mlir/examples/toy/Ch3/include/toy/Parser.h @@ -140,7 +140,7 @@ private: auto *firstLiteral = llvm::dyn_cast<LiteralExprAST>(values.front().get()); if (!firstLiteral) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); // Append the nested dimensions to the current level auto &firstDims = firstLiteral->getDims(); @@ -151,10 +151,10 @@ private: auto *exprLiteral = llvm::cast<LiteralExprAST>(expr.get()); if (!exprLiteral) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); if (exprLiteral->getDims() != firstDims) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); } } return std::make_unique<LiteralExprAST>(std::move(loc), std::move(values), diff --git a/mlir/examples/toy/Ch3/parser/AST.cpp b/mlir/examples/toy/Ch3/parser/AST.cpp index 869f2ef2013..fde8b101e83 100644 --- a/mlir/examples/toy/Ch3/parser/AST.cpp +++ b/mlir/examples/toy/Ch3/parser/AST.cpp @@ -125,7 +125,7 @@ void ASTDumper::dump(NumberExprAST *num) { llvm::errs() << num->getValue() << " " << loc(num) << "\n"; } -/// Helper to print recurisvely a literal. This handles nested array like: +/// Helper to print recursively a literal. This handles nested array like: /// [ [ 1, 2 ], [ 3, 4 ] ] /// We print out such array with the dimensions spelled out at every level: /// <2,2>[<2>[ 1, 2 ], <2>[ 3, 4 ] ] diff --git a/mlir/examples/toy/Ch4/include/toy/Dialect.h b/mlir/examples/toy/Ch4/include/toy/Dialect.h index 149d9008848..b0838870b5a 100644 --- a/mlir/examples/toy/Ch4/include/toy/Dialect.h +++ b/mlir/examples/toy/Ch4/include/toy/Dialect.h @@ -38,19 +38,19 @@ namespace toy { /// This is the definition of the Toy dialect. A dialect inherits from /// mlir::Dialect and register custom operations and types (in its constructor). -/// It can also overridding general behavior of dialects exposed as virtual +/// It can also overriding general behavior of dialects exposed as virtual /// method, for example regarding verification and parsing/printing. class ToyDialect : public mlir::Dialect { public: explicit ToyDialect(mlir::MLIRContext *ctx); - /// Parse a type registered to this dialect. Overridding this method is + /// Parse a type registered to this dialect. Overriding this method is /// required for dialects that have custom types. /// Technically this is only needed to be able to round-trip to textual IR. mlir::Type parseType(llvm::StringRef tyData, mlir::Location loc) const override; - /// Print a type registered to this dialect. Overridding this method is + /// Print a type registered to this dialect. Overriding this method is /// only required for dialects that have custom types. /// Technically this is only needed to be able to round-trip to textual IR. void printType(mlir::Type type, llvm::raw_ostream &os) const override; diff --git a/mlir/examples/toy/Ch4/include/toy/Parser.h b/mlir/examples/toy/Ch4/include/toy/Parser.h index 75c660b7c78..5962a982ff0 100644 --- a/mlir/examples/toy/Ch4/include/toy/Parser.h +++ b/mlir/examples/toy/Ch4/include/toy/Parser.h @@ -140,7 +140,7 @@ private: auto *firstLiteral = llvm::dyn_cast<LiteralExprAST>(values.front().get()); if (!firstLiteral) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); // Append the nested dimensions to the current level auto &firstDims = firstLiteral->getDims(); @@ -151,10 +151,10 @@ private: auto *exprLiteral = llvm::cast<LiteralExprAST>(expr.get()); if (!exprLiteral) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); if (exprLiteral->getDims() != firstDims) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); } } return std::make_unique<LiteralExprAST>(std::move(loc), std::move(values), diff --git a/mlir/examples/toy/Ch4/mlir/MLIRGen.cpp b/mlir/examples/toy/Ch4/mlir/MLIRGen.cpp index d0f3de134d7..c66335a70d5 100644 --- a/mlir/examples/toy/Ch4/mlir/MLIRGen.cpp +++ b/mlir/examples/toy/Ch4/mlir/MLIRGen.cpp @@ -104,7 +104,7 @@ private: /// The builder is a helper class to create IR inside a function. It is /// re-initialized every time we enter a function and kept around as a /// convenience for emitting individual operations. - /// The builder is stateful, in particular it keeeps an "insertion point": + /// The builder is stateful, in particular it keeps an "insertion point": /// this is where the next operations will be introduced. std::unique_ptr<mlir::OpBuilder> builder; diff --git a/mlir/examples/toy/Ch5/include/toy/Dialect.h b/mlir/examples/toy/Ch5/include/toy/Dialect.h index f93b351751e..ee85dbec9bc 100644 --- a/mlir/examples/toy/Ch5/include/toy/Dialect.h +++ b/mlir/examples/toy/Ch5/include/toy/Dialect.h @@ -39,19 +39,19 @@ namespace toy { /// This is the definition of the Toy dialect. A dialect inherits from /// mlir::Dialect and register custom operations and types (in its constructor). -/// It can also overridding general behavior of dialects exposed as virtual +/// It can also overriding general behavior of dialects exposed as virtual /// method, for example regarding verification and parsing/printing. class ToyDialect : public mlir::Dialect { public: explicit ToyDialect(mlir::MLIRContext *ctx); - /// Parse a type registered to this dialect. Overridding this method is + /// Parse a type registered to this dialect. Overriding this method is /// required for dialects that have custom types. /// Technically this is only needed to be able to round-trip to textual IR. mlir::Type parseType(llvm::StringRef tyData, mlir::Location loc) const override; - /// Print a type registered to this dialect. Overridding this method is + /// Print a type registered to this dialect. Overriding this method is /// only required for dialects that have custom types. /// Technically this is only needed to be able to round-trip to textual IR. void printType(mlir::Type type, llvm::raw_ostream &os) const override; diff --git a/mlir/examples/toy/Ch5/include/toy/Parser.h b/mlir/examples/toy/Ch5/include/toy/Parser.h index 75c660b7c78..5962a982ff0 100644 --- a/mlir/examples/toy/Ch5/include/toy/Parser.h +++ b/mlir/examples/toy/Ch5/include/toy/Parser.h @@ -140,7 +140,7 @@ private: auto *firstLiteral = llvm::dyn_cast<LiteralExprAST>(values.front().get()); if (!firstLiteral) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); // Append the nested dimensions to the current level auto &firstDims = firstLiteral->getDims(); @@ -151,10 +151,10 @@ private: auto *exprLiteral = llvm::cast<LiteralExprAST>(expr.get()); if (!exprLiteral) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); if (exprLiteral->getDims() != firstDims) return parseError<ExprAST>("uniform well-nested dimensions", - "inside literal expession"); + "inside literal expression"); } } return std::make_unique<LiteralExprAST>(std::move(loc), std::move(values), |

