[Mlir-commits] [mlir] [mlir][docs] Fix typos in QuickstartRewrites tutorial (PR #218849)
Mattéo Rizza Murgier
llvmlistbot at llvm.org
Wed Aug 26 00:03:35 PDT 2026
https://github.com/matteo-rm created https://github.com/llvm/llvm-project/pull/218849
None
>From c1495a5bbdf94a38017906f96638715e41df52e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matt=C3=A9o=20Rizza=20Murgier?=
<matteo.rizza-murgier at sipearl.com>
Date: Tue, 25 Aug 2026 18:16:41 +0200
Subject: [PATCH] [mlir][docs] Fix typos in QuickstartRewrites tutorial
---
mlir/docs/Tutorials/QuickstartRewrites.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/mlir/docs/Tutorials/QuickstartRewrites.md b/mlir/docs/Tutorials/QuickstartRewrites.md
index cbb6f03e93e65..0aa1711414b9a 100644
--- a/mlir/docs/Tutorials/QuickstartRewrites.md
+++ b/mlir/docs/Tutorials/QuickstartRewrites.md
@@ -35,7 +35,7 @@ operations are generated from. To define an operation one needs to specify:
values that affect the behavior of the op) that are the inputs of/define the
behavior of the operation. The input operands may be named, the attributes
must be named.
-* The result(s) of the operation. These may again named or not.
+* The result(s) of the operation. These may again be named or not.
* Documentation of the operation. This includes a one-line summary as well as
a longer human-readable description of the operation.
* Dialect specific information. Additional information could be added to the
@@ -114,10 +114,10 @@ definition but the order of arguments of the dags do need to match.
To specify a pattern, both the source and resultant ops need to be defined using
TableGen.
-If this were a more advance pattern that the current framework could not express
-as destination then one could use a general native code fallback method. This
-consists of defining a pattern as well as adding a C++ function to perform the
-replacement:
+If this were a more advanced pattern that the current framework could not
+express as destination then one could use a general native code fallback method.
+This consists of defining a pattern as well as adding a C++ function to perform
+the replacement:
```tablegen
def createTFLLeakyRelu : NativeCodeCall<
@@ -163,7 +163,7 @@ use to collect all the generated patterns inside `patterns` and then use
Many simple rewrites can be expressed with a `matchAndRewrite` style of
pattern, e.g. when converting a multiply by a power of two into a shift. For
-these cases, the you can define the pattern as a simple function:
+these cases, you can define the pattern as a simple function:
```c++
static LogicalResult
More information about the Mlir-commits
mailing list