summaryrefslogtreecommitdiff
path: root/mlir/lib/Tools/mlir-query/MlirQueryMain.cpp
AgeCommit message (Collapse)Author
2025-09-01[mlir] Default `mlir-query` input to stdin (#156324)Denzel-Brian Budii
This allows piping without an explicit `-` : ```shell ./mlir-opt input.mlir -canonicalize | ./mlir-query -c "<your_query_1>" -c "<your_query_2>" ... -c "<your_query_N>" ```
2024-07-02mlir/LogicalResult: move into llvm (#97309)Ramkumar Ramachandra
This patch is part of a project to move the Presburger library into LLVM.
2023-10-13[mlir][mlir-query] Introduce mlir-query tool with autocomplete supportDevajith
This commit adds the initial version of the mlir-query tool, which leverages the pre-existing matchers defined in mlir/include/mlir/IR/Matchers.h The tool provides the following set of basic queries: hasOpAttrName(string) hasOpName(string) isConstantOp() isNegInfFloat() isNegZeroFloat() isNonZero() isOne() isOneFloat() isPosInfFloat() isPosZeroFloat() isZero() isZeroFloat() Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D155127