34 lines · c
1//===- LSPServer.h - PDLL 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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LIB_MLIR_TOOLS_MLIRPDLLLSPSERVER_LSPSERVER_H10#define LIB_MLIR_TOOLS_MLIRPDLLLSPSERVER_LSPSERVER_H11 12#include <memory>13 14namespace llvm {15struct LogicalResult;16namespace lsp {17class JSONTransport;18} // namespace lsp19} // namespace llvm20 21namespace mlir {22namespace lsp {23class PDLLServer;24 25/// Run the main loop of the LSP server using the given PDLL server and26/// transport.27llvm::LogicalResult runPdllLSPServer(PDLLServer &server,28 llvm::lsp::JSONTransport &transport);29 30} // namespace lsp31} // namespace mlir32 33#endif // LIB_MLIR_TOOLS_MLIRPDLLLSPSERVER_LSPSERVER_H34