summaryrefslogtreecommitdiff
path: root/mlir/lib/Query/QueryParser.cpp
AgeCommit message (Collapse)Author
2024-10-27[mlir] Prefer StringRef::substr to slice (NFC) (#113788)Kazu Hirata
I'm planning to migrate StringRef to std::string_view eventually. Since std::string_view does not have slice, this patch migrates: slice(0, N) to substr(0, N) slice(N, StringRef::npos) to substr(N)
2024-09-16[mlir] Tidy uses of llvm::raw_stream_ostream (NFC)JOE1994
As specified in the docs, 1) raw_string_ostream is always unbuffered and 2) the underlying buffer may be used directly ( 65b13610a5226b84889b923bae884ba395ad084d for further reference ) * Don't call raw_string_ostream::flush(), which is essentially a no-op. * Avoid unneeded calls to raw_string_ostream::str(), to avoid excess indirection.
2024-06-09Use StringRef::starts_with (NFC) (#94886)Kazu Hirata
2024-01-08[mlir] Use StringRef::ltrim (NFC)Kazu Hirata
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