diff options
| author | Kazuaki Ishizaki <kiszk@users.noreply.github.com> | 2019-10-20 00:11:03 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-10-20 00:11:34 -0700 |
| commit | 8bfedb3ca599ccf3c507e721f4bf5e6a3b026f8c (patch) | |
| tree | da6308901341daa89423c3c956a74a881378d71b /mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp | |
| parent | 8317bd85e5cccc8048cd1be1b3b17c19c953764d (diff) | |
| download | bcm5719-llvm-8bfedb3ca599ccf3c507e721f4bf5e6a3b026f8c.tar.gz bcm5719-llvm-8bfedb3ca599ccf3c507e721f4bf5e6a3b026f8c.zip | |
Fix minor spelling tweaks (NFC)
Closes tensorflow/mlir#177
PiperOrigin-RevId: 275692653
Diffstat (limited to 'mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp')
| -rw-r--r-- | mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp b/mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp index 58a33356f6e..241be2a4297 100644 --- a/mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp +++ b/mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp @@ -15,7 +15,7 @@ // limitations under the License. // ============================================================================= // -// This file defines the MLIR SPIR-V module to SPIR-V binary seralization. +// This file defines the MLIR SPIR-V module to SPIR-V binary serialization. // //===----------------------------------------------------------------------===// @@ -149,7 +149,7 @@ private: template <typename DType> LogicalResult processTypeDecoration(Location loc, DType type, uint32_t resultId) { - return emitError(loc, "unhandled decoraion for type:") << type; + return emitError(loc, "unhandled decoration for type:") << type; } /// Process member decoration @@ -371,7 +371,7 @@ LogicalResult Serializer::serialize() { processExtension(); processMemoryModel(); - // Iterate over the module body to serialze it. Assumptions are that there is + // Iterate over the module body to serialize it. Assumptions are that there is // only one basic block in the moduleOp for (auto &op : module.getBlock()) { if (failed(processOperation(&op))) { @@ -1073,7 +1073,7 @@ uint32_t Serializer::prepareConstantScalar(Location loc, Attribute valueAttr, uint32_t Serializer::prepareConstantBool(Location loc, BoolAttr boolAttr, bool isSpec) { if (!isSpec) { - // We can de-duplicate nomral contants, but not specialization constants. + // We can de-duplicate normal constants, but not specialization constants. if (auto id = getConstantID(boolAttr)) { return id; } @@ -1102,7 +1102,7 @@ uint32_t Serializer::prepareConstantBool(Location loc, BoolAttr boolAttr, uint32_t Serializer::prepareConstantInt(Location loc, IntegerAttr intAttr, bool isSpec) { if (!isSpec) { - // We can de-duplicate nomral contants, but not specialization constants. + // We can de-duplicate normal constants, but not specialization constants. if (auto id = getConstantID(intAttr)) { return id; } @@ -1168,7 +1168,7 @@ uint32_t Serializer::prepareConstantInt(Location loc, IntegerAttr intAttr, uint32_t Serializer::prepareConstantFp(Location loc, FloatAttr floatAttr, bool isSpec) { if (!isSpec) { - // We can de-duplicate nomral contants, but not specialization constants. + // We can de-duplicate normal constants, but not specialization constants. if (auto id = getConstantID(floatAttr)) { return id; } @@ -1549,7 +1549,7 @@ template <> LogicalResult Serializer::processOp<spirv::EntryPointOp>(spirv::EntryPointOp op) { SmallVector<uint32_t, 4> operands; - // Add the ExectionModel. + // Add the ExecutionModel. operands.push_back(static_cast<uint32_t>(op.execution_model())); // Add the function <id>. auto funcID = getFunctionID(op.fn()); |

