1//===- LSPServer.h - MLIR LSP Server ----------------------------*- 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#ifndef LIB_MLIR_TOOLS_MLIRLSPSERVER_LSPSERVER_H
10#define LIB_MLIR_TOOLS_MLIRLSPSERVER_LSPSERVER_H
11
12#include <memory>
13
14namespace mlir {
15struct LogicalResult;
16
17namespace lsp {
18class JSONTransport;
19class MLIRServer;
20
21/// Run the main loop of the LSP server using the given MLIR server and
22/// transport.
23LogicalResult runMlirLSPServer(MLIRServer &server, JSONTransport &transport);
24} // namespace lsp
25} // namespace mlir
26
27#endif // LIB_MLIR_TOOLS_MLIRLSPSERVER_LSPSERVER_H
28

source code of mlir/lib/Tools/mlir-lsp-server/LSPServer.h