MLIR 22.0.0git
MlirQueryMain.h
Go to the documentation of this file.
1//===- MlirQueryMain.h - MLIR Query main ----------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Main entry function for mlir-query for when built as standalone
10// binary.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef MLIR_TOOLS_MLIRQUERY_MLIRQUERYMAIN_H
15#define MLIR_TOOLS_MLIRQUERY_MLIRQUERYMAIN_H
16
18#include "mlir/Support/LLVM.h"
19
20namespace mlir {
21
22class MLIRContext;
23
24LogicalResult
25mlirQueryMain(int argc, char **argv, MLIRContext &context,
26 const mlir::query::matcher::Registry &matcherRegistry);
27
28} // namespace mlir
29
30#endif // MLIR_TOOLS_MLIRQUERY_MLIRQUERYMAIN_H
MLIRContext is the top-level object for a collection of MLIR operations.
Definition MLIRContext.h:63
Include the generated interface declarations.
LogicalResult mlirQueryMain(int argc, char **argv, MLIRContext &context, const mlir::query::matcher::Registry &matcherRegistry)