Files
clang-p2996/mlir/test/lib/IR/TestVisitors.cpp
Matthias Springer 9c16eef1ec [mlir][IR] Add ReverseDominanceIterator for IR walkers
Blocks are enumerated depth-first, but post-order. I.e., a block is enumerated when its successors have been enumerated. This iteration style is suitable when deleting blocks in a regions: in the absence of cycles, uses are deleted before their definitions.

Differential Revision: https://reviews.llvm.org/D146125
2023-03-22 09:01:58 +01:00

7.4 KiB