MLIR  19.0.0git
MlirLspServerMain.h
Go to the documentation of this file.
1 //===- MlirLspServerMain.h - MLIR Language Server main ----------*- C++ -*-===//
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-lsp-server for when built as standalone binary.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_TOOLS_MLIR_LSP_SERVER_MLIRLSPSERVERMAIN_H
14 #define MLIR_TOOLS_MLIR_LSP_SERVER_MLIRLSPSERVERMAIN_H
15 
16 namespace mlir {
17 class DialectRegistry;
18 struct LogicalResult;
19 
20 /// Implementation for tools like `mlir-lsp-server`.
21 /// - registry should contain all the dialects that can be parsed in source IR
22 /// passed to the server.
23 LogicalResult MlirLspServerMain(int argc, char **argv,
24  DialectRegistry &registry);
25 
26 } // namespace mlir
27 
28 #endif // MLIR_TOOLS_MLIR_LSP_SERVER_MLIRLSPSERVERMAIN_H
Include the generated interface declarations.
LogicalResult MlirLspServerMain(int argc, char **argv, DialectRegistry &registry)
Implementation for tools like mlir-lsp-server.