[all-commits] [llvm/llvm-project] 8067ce: [MLIR] Introduce generic visitors.
Rahul Joshi via All-commits
all-commits at lists.llvm.org
Fri Jan 14 09:16:16 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8067ced144a213574b6c8cb4c15aba276d5cf906
https://github.com/llvm/llvm-project/commit/8067ced144a213574b6c8cb4c15aba276d5cf906
Author: Rahul Joshi <jurahul at google.com>
Date: 2022-01-14 (Fri, 14 Jan 2022)
Changed paths:
M mlir/include/mlir/IR/Operation.h
M mlir/include/mlir/IR/Visitors.h
M mlir/lib/IR/Visitors.cpp
A mlir/test/IR/generic-visitors-interrupt.mlir
A mlir/test/IR/generic-visitors.mlir
M mlir/test/lib/IR/CMakeLists.txt
A mlir/test/lib/IR/TestVisitorsGeneric.cpp
M mlir/tools/mlir-opt/mlir-opt.cpp
Log Message:
-----------
[MLIR] Introduce generic visitors.
- Generic visitors invoke operation callbacks before/in-between/after visiting the regions
attached to an operation and use a `WalkStage` to indicate which regions have been
visited.
- This can be useful for cases where we need to visit the operation in between visiting
regions attached to the operation.
Differential Revision: https://reviews.llvm.org/D116230
More information about the All-commits
mailing list