aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Query/Matcher/MatchersInternal.cpp
AgeCommit message (Collapse)AuthorFilesLines
9 days[mlir] Remove unused includes (NFC) (#150476)Kazu Hirata1-1/+0
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
2025-07-01[mlir] Reapply 141423 mlir-query combinators plus fix (#146156)Denzel-Brian Budii1-0/+33
An uninitialized variable that caused a crash (https://lab.llvm.org/buildbot/#/builders/164/builds/11004) was identified using the memory analyzer, leading to the reversion of https://github.com/llvm/llvm-project/pull/141423. This pull request reapplies the previously reverted changes and includes the fix, which has been tested locally following the steps at https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild. Note: the fix is included as part of the second commit
2025-06-24Revert "[mlir] Improve mlir-query by adding matcher combinators" (#145534)Qinkun Bao1-33/+0
Reverts llvm/llvm-project#141423
2025-06-17[mlir] Improve mlir-query by adding matcher combinators (#141423)Denzel-Brian Budii1-0/+33
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.