minor spelling tweaks
authorKazuaki Ishizaki <ishizaki@jp.ibm.com>
Wed, 4 Dec 2019 12:58:12 +0000 (04:58 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 4 Dec 2019 12:59:11 +0000 (04:59 -0800)
Closes tensorflow/mlir#250

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/250 from kiszk:spelling_tweaks_201911 50fc04443723190b764e824b6fcd2469fecb56e6
PiperOrigin-RevId: 283733032

mlir/examples/toy/Ch5/mlir/LowerToAffineLoops.cpp
mlir/examples/toy/Ch6/mlir/LowerToAffineLoops.cpp
mlir/examples/toy/Ch7/mlir/LowerToAffineLoops.cpp
mlir/g3doc/DeclarativeRewrites.md
mlir/g3doc/Dialects/SPIR-V.md
mlir/g3doc/OpDefinitions.md
mlir/g3doc/Tutorials/Toy/Ch-2.md
mlir/g3doc/Tutorials/Toy/Ch-5.md

index a8e38ae..4ab8c5b 100644 (file)
@@ -241,8 +241,8 @@ struct TransposeOpLowering : public ConversionPattern {
           // Generate an adaptor for the remapped operands of the TransposeOp.
           // This allows for using the nice named accessors that are generated
           // by the ODS.
-          toy::TransposeOpOperandAdaptor tranposeAdaptor(memRefOperands);
-          Value *input = tranposeAdaptor.input();
+          toy::TransposeOpOperandAdaptor transposeAdaptor(memRefOperands);
+          Value *input = transposeAdaptor.input();
 
           // Transpose the elements by generating a load from the reverse
           // indices.
index a8e38ae..4ab8c5b 100644 (file)
@@ -241,8 +241,8 @@ struct TransposeOpLowering : public ConversionPattern {
           // Generate an adaptor for the remapped operands of the TransposeOp.
           // This allows for using the nice named accessors that are generated
           // by the ODS.
-          toy::TransposeOpOperandAdaptor tranposeAdaptor(memRefOperands);
-          Value *input = tranposeAdaptor.input();
+          toy::TransposeOpOperandAdaptor transposeAdaptor(memRefOperands);
+          Value *input = transposeAdaptor.input();
 
           // Transpose the elements by generating a load from the reverse
           // indices.
index a8e38ae..4ab8c5b 100644 (file)
@@ -241,8 +241,8 @@ struct TransposeOpLowering : public ConversionPattern {
           // Generate an adaptor for the remapped operands of the TransposeOp.
           // This allows for using the nice named accessors that are generated
           // by the ODS.
-          toy::TransposeOpOperandAdaptor tranposeAdaptor(memRefOperands);
-          Value *input = tranposeAdaptor.input();
+          toy::TransposeOpOperandAdaptor transposeAdaptor(memRefOperands);
+          Value *input = transposeAdaptor.input();
 
           // Transpose the elements by generating a load from the reverse
           // indices.
index c7276da..e319b7d 100644 (file)
@@ -50,7 +50,7 @@ features:
 *   Matching and generating ops with block arguments.
 *   Matching multi-result ops in nested patterns.
 *   Matching and generating variadic operand/result ops in nested patterns.
-*   Packing and unpacking variaidc operands/results during generation.
+*   Packing and unpacking variadic operands/results during generation.
 *   [`NativeCodeCall`](#native-code-call-transforming-the-generated-op)
     returning more than one results.
 
index 82922de..58bd5ee 100644 (file)
@@ -474,7 +474,7 @@ the representational differences between SPIR-V dialect and binary format:
 Similarly, a few transformations are performed during deserialization:
 
 *   Instructions for execution environment requirements will be placed as
-    attribues on `spv.module`.
+    attributes on `spv.module`.
 *   `OpConstant*` instructions are materialized as `spv.constant` at each use
     site.
 *   `OpPhi` instructions are converted to block arguments.
index 2586559..b72b993 100644 (file)
@@ -263,7 +263,7 @@ TODO: Design and implement more primitive constraints
 Similar to operands, results are specified inside the `dag`-typed `results`, led
 by `outs`:
 
-```tablgen
+```tablegen
 let results = (outs
   <type-constraint>:$<result-name>,
   ...
index d797624..ce46788 100755 (executable)
@@ -434,7 +434,7 @@ invariants of the operation have already been verified:
 ```tablegen
 def ConstantOp : Toy_Op<"constant", [NoSideEffect]> {
   // Provide a summary and description for this operation. This can be used to
-  // auto-generate documenatation of the operations within our dialect.
+  // auto-generate documentation of the operations within our dialect.
   let summary = "constant operation";
   let description = [{
     Constant operation turns a literal into an SSA value. The data is attached
index 2cf5e59..5573354 100644 (file)
@@ -118,8 +118,8 @@ struct TransposeOpLowering : public mlir::ConversionPattern {
           // This allows for using the nice named accessors that are generated
           // by the ODS. This adaptor is automatically provided by the ODS
           // framework.
-          TransposeOpOperandAdaptor tranposeAdaptor(memRefOperands);
-          mlir::Value *input = tranposeAdaptor.input();
+          TransposeOpOperandAdaptor transposeAdaptor(memRefOperands);
+          mlir::Value *input = transposeAdaptor.input();
 
           // Transpose the elements by generating a load from the reverse
           // indices.