commit | f15a22360f33c4b7faae77a22d43d75e68b3ece5 | [log] [tgz] |
---|---|---|
author | Denzel-Brian Budii <73462654+chios202@users.noreply.github.com> | Tue Jun 17 15:07:20 2025 +0300 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jun 17 05:10:59 2025 -0700 |
tree | a347b51d59d4209b6ccd99a72c849f5286826b72 | |
parent | 022d13afe03a99c61b313b4e14cdbe0ec0c2063e [diff] |
[mlir] Improve mlir-query by adding matcher combinators (#141423) Whereas backward-slice matching provides support to limit traversal by specifying the desired depth level, this pull request introduces support for limiting traversal with a nested matcher (adding forward-slice also). It also adds support for variadic operators, including `anyOf` and `allOf`. Rather than simply stopping traversal when an operation named foo is encountered, one can now define a matcher that specifies different exit conditions. Variadic support implementation within mlir-query is very similar to clang-query. GitOrigin-RevId: 12611a7fc71376e88aa01e3f0bbc74517f1a1703
See https://mlir.llvm.org/ for more information.