[Mlir-commits] [mlir] 1fe1f91 - [mlir][docs] Add missing parentheses in example code on walkers.
Ingo Müller
llvmlistbot at llvm.org
Wed Apr 20 02:43:46 PDT 2022
Author: Ingo Müller
Date: 2022-04-20T09:43:41Z
New Revision: 1fe1f913c548a63233078b2ee4565fd360a8f95d
URL: https://github.com/llvm/llvm-project/commit/1fe1f913c548a63233078b2ee4565fd360a8f95d
DIFF: https://github.com/llvm/llvm-project/commit/1fe1f913c548a63233078b2ee4565fd360a8f95d.diff
LOG: [mlir][docs] Add missing parentheses in example code on walkers.
`getFunction` was missing parentheses.
Reviewed By: ftynse, mehdi_amini
Differential Revision: https://reviews.llvm.org/D123999
Added:
Modified:
mlir/docs/Tutorials/UnderstandingTheIRStructure.md
Removed:
################################################################################
diff --git a/mlir/docs/Tutorials/UnderstandingTheIRStructure.md b/mlir/docs/Tutorials/UnderstandingTheIRStructure.md
index 32712701102dd..7ced65dc35f95 100644
--- a/mlir/docs/Tutorials/UnderstandingTheIRStructure.md
+++ b/mlir/docs/Tutorials/UnderstandingTheIRStructure.md
@@ -192,7 +192,7 @@ Operation, for example the following will apply the callback only on `LinalgOp`
operations nested inside the function:
```c++
- getFunction.walk([](LinalgOp linalgOp) {
+ getFunction().walk([](LinalgOp linalgOp) {
// process LinalgOp `linalgOp`.
});
```
More information about the Mlir-commits
mailing list