diff options
| author | Matthias Springer <me@m-sp.org> | 2023-12-20 14:51:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-20 14:51:45 +0900 |
| commit | c4457e10fe7946dcedbdd7a07c320ed8b764dc7c (patch) | |
| tree | 794a80bf3ab5d4bfc4901ca359f10574f4e83fe3 /lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py | |
| parent | 207cbbd71009090768c63004b967eddfab0f1d2e (diff) | |
[mlir][IR] Change block/region walkers to enumerate `this` block/region (#75020)
This change makes block/region walkers consistent with operation
walkers. An operation walk enumerates the current operation. Similarly,
block/region walks should enumerate the current block/region.
Example:
```
// Current behavior:
op1->walk([](Operation *op2) { /* op1 is enumerated */ });
block1->walk([](Block *block2) { /* block1 is NOT enumerated */ });
region1->walk([](Block *block) { /* blocks of region1 are NOT enumerated */ });
region1->walk([](Region *region2) { /* region1 is NOT enumerated });
// New behavior:
op1->walk([](Operation *op2) { /* op1 is enumerated */ });
block1->walk([](Block *block2) { /* block1 IS enumerated */ });
region1->walk([](Block *block) { /* blocks of region1 ARE enumerated */ });
region1->walk([](Region *region2) { /* region1 IS enumerated });
```
Diffstat (limited to 'lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py')
0 files changed, 0 insertions, 0 deletions
