#include "mlir/Query/Query.h"
#include "QueryParser.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/IR/IRMapping.h"
#include "mlir/Query/Matcher/MatchFinder.h"
#include "mlir/Query/QuerySession.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"
namespace mlir::query {
QueryRef parse(llvm::StringRef line, const QuerySession &qs) { … }
std::vector<llvm::LineEditor::Completion>
complete(llvm::StringRef line, size_t pos, const QuerySession &qs) { … }
static void printMatch(llvm::raw_ostream &os, QuerySession &qs, Operation *op,
const std::string &binding) { … }
static Operation *extractFunction(std::vector<Operation *> &ops,
MLIRContext *context,
llvm::StringRef functionName) { … }
Query::~Query() = default;
LogicalResult InvalidQuery::run(llvm::raw_ostream &os, QuerySession &qs) const { … }
LogicalResult NoOpQuery::run(llvm::raw_ostream &os, QuerySession &qs) const { … }
LogicalResult HelpQuery::run(llvm::raw_ostream &os, QuerySession &qs) const { … }
LogicalResult QuitQuery::run(llvm::raw_ostream &os, QuerySession &qs) const { … }
LogicalResult MatchQuery::run(llvm::raw_ostream &os, QuerySession &qs) const { … }
}