[Mlir-commits] [mlir] [mlir] Improve mlir-query tool by implementing `getBackwardSlice` and `getForwardSlice` matchers (PR #115670)

Denzel-Brian Budii llvmlistbot at llvm.org
Wed Apr 23 06:19:10 PDT 2025


================
@@ -19,7 +19,8 @@
 #include "mlir/IR/BuiltinTypes.h"
 #include "mlir/IR/OpDefinition.h"
 #include "mlir/Interfaces/InferIntRangeInterface.h"
-
+#include "mlir/Query/Matcher/MatchersInternal.h"
----------------
chios202 wrote:

Looking at it again, I think it may be possible to make `BackwardSlice` matcher not to depend on `MatcherInternals` , but I'm not so sure about the dependency on Analysis, I think it may be possible with the use of a function pointer.

https://github.com/llvm/llvm-project/pull/115670


More information about the Mlir-commits mailing list