diff options
author | Matthias Springer <me@m-sp.org> | 2023-02-24 10:13:36 +0100 |
---|---|---|
committer | Matthias Springer <me@m-sp.org> | 2023-02-24 10:24:47 +0100 |
commit | bc8de519ea6d47a6d1602508eb24594493e9912e (patch) | |
tree | f8a068ca93abd0e268c1152962531f3b4171173b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | eddecd3ade5ce1b827dafb84e8137cc6f89576fb (diff) | |
download | llvm-bc8de519ea6d47a6d1602508eb24594493e9912e.zip llvm-bc8de519ea6d47a6d1602508eb24594493e9912e.tar.gz llvm-bc8de519ea6d47a6d1602508eb24594493e9912e.tar.bz2 |
[mlir][IR] Add Iterator template option to IR walkers
This allows users to specify a top-down or bottom-up traversal of the IR, in addition to the already existing WalkOrder.
Certain transformations work better with a forward traversal. E.g., when cloning a piece of IR, operations should be cloned top-down so that all uses are defined when creating an op.
Certain transformations work better with a reverse traversal. E.g., when erasing a piece of IR, operations should be erased bottom-up to avoid erasing operations that still have users.
Differential Revision: https://reviews.llvm.org/D144257
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions