From 0f37454c7238cfe95c5d6b427b2c400c084944aa Mon Sep 17 00:00:00 2001 From: Frederik Gossen Date: Sat, 4 Apr 2020 03:17:15 +0000 Subject: [PATCH] Fix typos in toy tutorial Fix two typos throughout the chapters. Differential Revision: https://reviews.llvm.org/D77397 --- mlir/examples/toy/Ch2/mlir/MLIRGen.cpp | 8 ++++---- mlir/examples/toy/Ch3/mlir/MLIRGen.cpp | 8 ++++---- mlir/examples/toy/Ch4/mlir/MLIRGen.cpp | 8 ++++---- mlir/examples/toy/Ch5/mlir/MLIRGen.cpp | 8 ++++---- mlir/examples/toy/Ch6/mlir/MLIRGen.cpp | 8 ++++---- mlir/examples/toy/Ch7/mlir/MLIRGen.cpp | 8 ++++---- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/mlir/examples/toy/Ch2/mlir/MLIRGen.cpp b/mlir/examples/toy/Ch2/mlir/MLIRGen.cpp index 5e09e73..ef98625 100644 --- a/mlir/examples/toy/Ch2/mlir/MLIRGen.cpp +++ b/mlir/examples/toy/Ch2/mlir/MLIRGen.cpp @@ -313,7 +313,7 @@ private: operands.push_back(arg); } - // Builting calls have their custom operation, meaning this is a + // Builtin calls have their custom operation, meaning this is a // straightforward emission. if (callee == "transpose") { if (call.getArgs().size() != 1) { @@ -324,9 +324,9 @@ private: return builder.create(location, operands[0]); } - // Otherwise this is a call to a user-defined function. Calls to ser-defined - // functions are mapped to a custom call that takes the callee name as an - // attribute. + // Otherwise this is a call to a user-defined function. Calls to + // user-defined functions are mapped to a custom call that takes the callee + // name as an attribute. return builder.create(location, callee, operands); } diff --git a/mlir/examples/toy/Ch3/mlir/MLIRGen.cpp b/mlir/examples/toy/Ch3/mlir/MLIRGen.cpp index 5e09e73..ef98625 100644 --- a/mlir/examples/toy/Ch3/mlir/MLIRGen.cpp +++ b/mlir/examples/toy/Ch3/mlir/MLIRGen.cpp @@ -313,7 +313,7 @@ private: operands.push_back(arg); } - // Builting calls have their custom operation, meaning this is a + // Builtin calls have their custom operation, meaning this is a // straightforward emission. if (callee == "transpose") { if (call.getArgs().size() != 1) { @@ -324,9 +324,9 @@ private: return builder.create(location, operands[0]); } - // Otherwise this is a call to a user-defined function. Calls to ser-defined - // functions are mapped to a custom call that takes the callee name as an - // attribute. + // Otherwise this is a call to a user-defined function. Calls to + // user-defined functions are mapped to a custom call that takes the callee + // name as an attribute. return builder.create(location, callee, operands); } diff --git a/mlir/examples/toy/Ch4/mlir/MLIRGen.cpp b/mlir/examples/toy/Ch4/mlir/MLIRGen.cpp index 2be287c..9d770d4 100644 --- a/mlir/examples/toy/Ch4/mlir/MLIRGen.cpp +++ b/mlir/examples/toy/Ch4/mlir/MLIRGen.cpp @@ -317,7 +317,7 @@ private: operands.push_back(arg); } - // Builting calls have their custom operation, meaning this is a + // Builtin calls have their custom operation, meaning this is a // straightforward emission. if (callee == "transpose") { if (call.getArgs().size() != 1) { @@ -328,9 +328,9 @@ private: return builder.create(location, operands[0]); } - // Otherwise this is a call to a user-defined function. Calls to ser-defined - // functions are mapped to a custom call that takes the callee name as an - // attribute. + // Otherwise this is a call to a user-defined function. Calls to + // user-defined functions are mapped to a custom call that takes the callee + // name as an attribute. return builder.create(location, callee, operands); } diff --git a/mlir/examples/toy/Ch5/mlir/MLIRGen.cpp b/mlir/examples/toy/Ch5/mlir/MLIRGen.cpp index 2be287c..9d770d4 100644 --- a/mlir/examples/toy/Ch5/mlir/MLIRGen.cpp +++ b/mlir/examples/toy/Ch5/mlir/MLIRGen.cpp @@ -317,7 +317,7 @@ private: operands.push_back(arg); } - // Builting calls have their custom operation, meaning this is a + // Builtin calls have their custom operation, meaning this is a // straightforward emission. if (callee == "transpose") { if (call.getArgs().size() != 1) { @@ -328,9 +328,9 @@ private: return builder.create(location, operands[0]); } - // Otherwise this is a call to a user-defined function. Calls to ser-defined - // functions are mapped to a custom call that takes the callee name as an - // attribute. + // Otherwise this is a call to a user-defined function. Calls to + // user-defined functions are mapped to a custom call that takes the callee + // name as an attribute. return builder.create(location, callee, operands); } diff --git a/mlir/examples/toy/Ch6/mlir/MLIRGen.cpp b/mlir/examples/toy/Ch6/mlir/MLIRGen.cpp index 2be287c..9d770d4 100644 --- a/mlir/examples/toy/Ch6/mlir/MLIRGen.cpp +++ b/mlir/examples/toy/Ch6/mlir/MLIRGen.cpp @@ -317,7 +317,7 @@ private: operands.push_back(arg); } - // Builting calls have their custom operation, meaning this is a + // Builtin calls have their custom operation, meaning this is a // straightforward emission. if (callee == "transpose") { if (call.getArgs().size() != 1) { @@ -328,9 +328,9 @@ private: return builder.create(location, operands[0]); } - // Otherwise this is a call to a user-defined function. Calls to ser-defined - // functions are mapped to a custom call that takes the callee name as an - // attribute. + // Otherwise this is a call to a user-defined function. Calls to + // user-defined functions are mapped to a custom call that takes the callee + // name as an attribute. return builder.create(location, callee, operands); } diff --git a/mlir/examples/toy/Ch7/mlir/MLIRGen.cpp b/mlir/examples/toy/Ch7/mlir/MLIRGen.cpp index eeab86d..2794768 100644 --- a/mlir/examples/toy/Ch7/mlir/MLIRGen.cpp +++ b/mlir/examples/toy/Ch7/mlir/MLIRGen.cpp @@ -501,7 +501,7 @@ private: operands.push_back(arg); } - // Builting calls have their custom operation, meaning this is a + // Builtin calls have their custom operation, meaning this is a // straightforward emission. if (callee == "transpose") { if (call.getArgs().size() != 1) { @@ -512,9 +512,9 @@ private: return builder.create(location, operands[0]); } - // Otherwise this is a call to a user-defined function. Calls to ser-defined - // functions are mapped to a custom call that takes the callee name as an - // attribute. + // Otherwise this is a call to a user-defined function. Calls to + // user-defined functions are mapped to a custom call that takes the callee + // name as an attribute. auto calledFuncIt = functionMap.find(callee); if (calledFuncIt == functionMap.end()) { emitError(location) << "no defined function found for '" << callee << "'"; -- 2.7.4