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-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LIB_MLIR_TOOLS_MLIRPDLLLSPSERVER_LSPSERVER_H
10#define LIB_MLIR_TOOLS_MLIRPDLLLSPSERVER_LSPSERVER_H
11
12#include <memory>
13
14namespace llvm {
15struct LogicalResult;
16} // namespace llvm
17
18namespace mlir {
19namespace lsp {
20class JSONTransport;
21class PDLLServer;
22
23/// Run the main loop of the LSP server using the given PDLL server and
24/// transport.
25llvm::LogicalResult runPdllLSPServer(PDLLServer &server,
26 JSONTransport &transport);
27
28} // namespace lsp
29} // namespace mlir
30
31#endif // LIB_MLIR_TOOLS_MLIRPDLLLSPSERVER_LSPSERVER_H
32

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

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