[all-commits] [llvm/llvm-project] 02d9f4: [mlir][mlir-query] Introduce mlir-query tool with ...
Devajith via All-commits
all-commits at lists.llvm.org
Fri Oct 13 14:03:43 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 02d9f4d1f128e17e04ab6e602d3c9b9942612428
https://github.com/llvm/llvm-project/commit/02d9f4d1f128e17e04ab6e602d3c9b9942612428
Author: Devajith <devajithvs at gmail.com>
Date: 2023-10-13 (Fri, 13 Oct 2023)
Changed paths:
A mlir/include/mlir/Query/Matcher/ErrorBuilder.h
A mlir/include/mlir/Query/Matcher/Marshallers.h
A mlir/include/mlir/Query/Matcher/MatchFinder.h
A mlir/include/mlir/Query/Matcher/MatchersInternal.h
A mlir/include/mlir/Query/Matcher/Registry.h
A mlir/include/mlir/Query/Matcher/VariantValue.h
A mlir/include/mlir/Query/Query.h
A mlir/include/mlir/Query/QuerySession.h
A mlir/include/mlir/Tools/mlir-query/MlirQueryMain.h
M mlir/lib/CMakeLists.txt
A mlir/lib/Query/CMakeLists.txt
A mlir/lib/Query/Matcher/CMakeLists.txt
A mlir/lib/Query/Matcher/Diagnostics.cpp
A mlir/lib/Query/Matcher/Diagnostics.h
A mlir/lib/Query/Matcher/ErrorBuilder.cpp
A mlir/lib/Query/Matcher/Parser.cpp
A mlir/lib/Query/Matcher/Parser.h
A mlir/lib/Query/Matcher/RegistryManager.cpp
A mlir/lib/Query/Matcher/RegistryManager.h
A mlir/lib/Query/Matcher/VariantValue.cpp
A mlir/lib/Query/Query.cpp
A mlir/lib/Query/QueryParser.cpp
A mlir/lib/Query/QueryParser.h
M mlir/lib/Tools/CMakeLists.txt
A mlir/lib/Tools/mlir-query/CMakeLists.txt
A mlir/lib/Tools/mlir-query/MlirQueryMain.cpp
M mlir/test/CMakeLists.txt
A mlir/test/mlir-query/simple-test.mlir
M mlir/tools/CMakeLists.txt
A mlir/tools/mlir-query/CMakeLists.txt
A mlir/tools/mlir-query/mlir-query.cpp
Log Message:
-----------
[mlir][mlir-query] Introduce mlir-query tool with autocomplete support
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
More information about the All-commits
mailing list