diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2025-07-24 11:17:01 -0700 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2025-07-24 11:17:30 -0700 |
commit | a608b0c7caa96a263d703f246b265152c1f2c17d (patch) | |
tree | 5e34beeb6ce5830d8d65b7c0ceada52877c00083 | |
parent | 526b672a2ceda2ae3c33b5c549f5ffd3da32e032 (diff) | |
download | llvm-a608b0c7caa96a263d703f246b265152c1f2c17d.zip llvm-a608b0c7caa96a263d703f246b265152c1f2c17d.tar.gz llvm-a608b0c7caa96a263d703f246b265152c1f2c17d.tar.bz2 |
[MLIR] Improve tutorial to make it clear that `walk()` is visiting the root op (NFC)
-rw-r--r-- | mlir/docs/Tutorials/UnderstandingTheIRStructure.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/docs/Tutorials/UnderstandingTheIRStructure.md b/mlir/docs/Tutorials/UnderstandingTheIRStructure.md index 30b50cb..f7c62f2 100644 --- a/mlir/docs/Tutorials/UnderstandingTheIRStructure.md +++ b/mlir/docs/Tutorials/UnderstandingTheIRStructure.md @@ -178,7 +178,7 @@ inside a single block (or a single region), however it is frequently interesting to traverse the IR in a nested fashion. To this end MLIR exposes the `walk()` helper on `Operation`, `Block`, and `Region`. This helper takes a single argument: a callback method that will be invoked for every operation recursively -nested under the provided entity. +nested under the provided entity (as well as this initial operation). ```c++ // Recursively traverse all the regions and blocks nested inside the function |