Fix some typos in the MLIR documentation.

Summary: Fix minor typos in the tutorial and the "writing a pass" page.

Differential Revision: https://reviews.llvm.org/D74905
This commit is contained in:
Matthias Kramm 2020-02-20 11:08:59 -08:00 committed by River Riddle
parent 5d2baa956a
commit 8928c6dbbf
4 changed files with 4 additions and 4 deletions

View file

@ -315,7 +315,7 @@ void MulOp::inferShapes() { getResult().setType(getOperand(0).getType()); }
At this point, each of the necessary Toy operations provide a mechanism by which
to infer their output shapes. The ShapeInferencePass is a FunctionPass: it will
runs on each Function in isolation. MLIR also supports general
run on each Function in isolation. MLIR also supports general
[OperationPasses](../../WritingAPass.md#operation-pass) that run on any isolated
operation (i.e. other function-like operations), but here our module only
contains functions, so there is no need to generalize to all operations.

View file

@ -39,7 +39,7 @@ framework, we need to provide two things (and an optional third):
* A set of
[Rewrite Patterns](../../DialectConversion.md#rewrite-pattern-specification)
- These are the set of [patterns](../../QuickstartRewrites.md) used to
- This is the set of [patterns](../../QuickstartRewrites.md) used to
convert `illegal` operations into a set of zero or more `legal` ones.
* Optionally, a [Type Converter](../../DialectConversion.md#type-conversion).

View file

@ -275,7 +275,7 @@ int dumpLLVMIR(mlir::ModuleOp module) {
Setting up a JIT to run the module containing the LLVM dialect can be done using
the `mlir::ExecutionEngine` infrastructure. This is a utility wrapper around
LLVM's JIT that accepts `.mlir` as input. The full code listing for setting up
the JIT can be found in `Ch6/toy.cpp` in the `runJit()` function:
the JIT can be found in `Ch6/toyc.cpp` in the `runJit()` function:
```c++
int runJit(mlir::ModuleOp module) {

View file

@ -127,7 +127,7 @@ invalidated) based upon other properties such as analyses sets.
### Querying Analyses
The base `OperationPass` class provide utilities for querying and preserving
The base `OperationPass` class provides utilities for querying and preserving
analyses for the current operation being processed.
* OperationPass automatically provides the following utilities for querying