[Mlir-commits] [mlir] a608b0c - [MLIR] Improve tutorial to make it clear that `walk()` is visiting the root op (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Jul 24 11:17:43 PDT 2025


Author: Mehdi Amini
Date: 2025-07-24T11:17:30-07:00
New Revision: a608b0c7caa96a263d703f246b265152c1f2c17d

URL: https://github.com/llvm/llvm-project/commit/a608b0c7caa96a263d703f246b265152c1f2c17d
DIFF: https://github.com/llvm/llvm-project/commit/a608b0c7caa96a263d703f246b265152c1f2c17d.diff

LOG: [MLIR] Improve tutorial to make it clear that `walk()` is visiting the root op (NFC)

Added: 
    

Modified: 
    mlir/docs/Tutorials/UnderstandingTheIRStructure.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/Tutorials/UnderstandingTheIRStructure.md b/mlir/docs/Tutorials/UnderstandingTheIRStructure.md
index 30b50cb09490d..f7c62f23068e9 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


        


More information about the Mlir-commits mailing list