docs: minor spelling tweaks
authorBrett Koonce <koonce@hello.com>
Sat, 20 Apr 2019 01:15:44 +0000 (18:15 -0700)
committerMehdi Amini <aminim@google.com>
Tue, 2 Jul 2019 23:43:02 +0000 (16:43 -0700)
Close tensorflow/mlir#23

mlir/g3doc/Canonicalization.md
mlir/g3doc/Dialects/LLVM.md
mlir/g3doc/OpDefinitions.md
mlir/g3doc/RationaleSimplifiedPolyhedralForm.md
mlir/g3doc/Tutorials/Linalg/Ch-1.md
mlir/g3doc/Tutorials/Toy/Ch-1.md
mlir/g3doc/Tutorials/Toy/Ch-3.md
mlir/g3doc/Tutorials/Toy/Ch-5.md
mlir/g3doc/WritingAPass.md

index 2ea25a4cbfb00932c6524dd8da8a04e4ea12db81..d34a64c114fda46d7308ddc154f84a2b9a9dee4c 100644 (file)
@@ -42,7 +42,7 @@ These transformation are applied to all levels of IR:
 
 *   Elimination of operations that have no side effects and have no uses.
 
-*   Constant folding - e.g. "(addi 1, 2)" to "3". Constand folding hooks are
+*   Constant folding - e.g. "(addi 1, 2)" to "3". Constant folding hooks are
     specified by operations.
 
 *   Move constant operands to commutative binary operators to the right side -
index 60b9e49bcb70649001d34769d170f31e546f806c..03d80bdc78f8b1f154fe24b2ffb53aac25c8a791 100644 (file)
@@ -144,7 +144,7 @@ In these operations, `<struct>` must be a value of wrapped LLVM IR structure
 type and `<value>` must be a value that corresponds to one of the (nested)
 structure element types.
 
-Note the use of integer literals to designate subscripts, which is made possbile
+Note the use of integer literals to designate subscripts, which is made possible
 by `extractvalue` and `insertvalue` must have constant subscripts. Internally,
 they are modeled as array attributes.
 
index 8146fce6e58b5284942e394b2d9c7ff5f6a6c8d8..9a11608d3b502ba5d873acfeeb54ec902a0a5645 100644 (file)
@@ -891,7 +891,7 @@ and operands) as well as matching a DAG pattern of multiple input operations to
 single output.
 
 1.  Matchers can be partially specified on the input (e.g., not all arguments
-    contrained) and so multiple matchers can match the same set of nodes. The
+    constrained) and so multiple matchers can match the same set of nodes. The
     most discriminative matcher (as determined by the number of
     constrained/matching terms) will be selected, if two patterns are equally
     discriminative then an error will be reported.
index b40f6708d0dfb746398f4cadb545b59f9cf3a504..eb8e28b000e1dae29d43b90d2ea327839e332986 100644 (file)
@@ -7,7 +7,7 @@ differs significantly from other polyhedral frameworks.
 **Disclaimer / Warning**
 
 This document is a very early design proposal (which has since been accepted)
-that explored the tradeoffs of using this simplified form vs the tranditional
+that explored the tradeoffs of using this simplified form vs the traditional
 polyhedral schedule list form. At some point, this document could be dusted off
 and written as a proper academic paper, but until now, it is better to included
 it in this crufty form than not to. Beware that this document uses archaic
index 5b3627c4bfa88c122508a929f90f7b5efed5a84e..37333ef0bc2a1313dd918475465fba439a342745 100644 (file)
@@ -243,7 +243,7 @@ multiple registrations of the same symbols. At that point, the constructor needs
 to be statically aware of all the types and ops. Since our code structure
 chooses to isolate independent portions of the tutorial, and certain ops are
 introduced in later parts, we explicitly separate `DialectConstruction.cpp` in
-its separate library. Linking with the proper library enables the types that
+its' separate library. Linking with the proper library enables the types that
 have been declared so far.
 
 ## Putting it all together
index 5479a1b7396c22bba6fa97623108a6f363608a35..0ab9157f2a2946408ca4a4a4fa44150496d60009 100644 (file)
@@ -139,7 +139,7 @@ Module:
 You can reproduce this result and play with the example in the `examples/toy/Ch1/`
 directory, try running `path/to/BUILD/bin/toyc-ch1 test/ast.toy -emit=ast`.
 
-The code for the lexer is fairly straighforward, it is all in a single header:
+The code for the lexer is fairly straightforward, it is all in a single header:
 `examples/toy/Ch1/include/toy/Lexer.h`. The parser can be found in
 `examples/toy/Ch1/include/toy/Parser.h`, it is a recursive descent parser. If
 you are not familiar with such Lexer/Parser, these are very similar to the LLVM
index a8a7ca8b3b9557333290cbcaf4ffbeecb464b7fb..b7578009519c45ceb989eed7d7a0a65f702b0274 100644 (file)
@@ -12,19 +12,19 @@ we can teach the MLIR verifier to enforce some invariants on the IR.
 ```c++
 /// This is the definition of the Toy dialect. A dialect inherits from
 /// mlir::Dialect and registers custom operations and types (in its constructor).
-/// It can also overridde general behavior of dialects exposed as virtual
+/// It can also override general behavior of dialects exposed as virtual
 /// methods, 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;
index 2681720e0fc4a1235909782ce07a6feb0cd29e9e..ad8a11b72027d5dd5a94fbcef9224dbd6951fcf8 100644 (file)
@@ -30,7 +30,7 @@ methods defined in `DialectConversion`:
     function type and the conversion generates a new prototype for the converted
     function. The default implementation will call into the type conversion for
     the returned values and for each of the parameters.
--   Operations convertions: each pattern is expected to generate new results
+-   Operations conversions: each pattern is expected to generate new results
     matching the current operations' in the new function. This may involve
     generating one or multiple new operations, or possibly just remapping
     existing operands (folding).
index 5b6300e335e20ca21a91f66c2be07e09a6d59f0e..5b53a8a136610404c8a12620d5dc3763f33bbe58 100644 (file)
@@ -271,7 +271,7 @@ benefits:
     touching a single function at a time, instead of traversing the entire
     program.
 *   This improves multi-threading performance by reducing the number of jobs
-    that need to be scheduled, as well as increasing the efficency of each job.
+    that need to be scheduled, as well as increasing the efficiency of each job.
     An entire function pipeline can be run on each function asynchronously.
 
 As an example, the above pass manager would contain the following pipeline
@@ -394,7 +394,7 @@ llvm::errs() << "DominanceInfo was computed " << domInfoCount << " times!\n";
 ### Standard Instrumentations
 
 MLIR utilizes the pass instrumentation framework to provide a few useful
-developer tools and utilites. Each of these instrumentations are immediately
+developer tools and utilities. Each of these instrumentations are immediately
 available to all users of the MLIR pass framework.
 
 #### Pass Timing