MLIR  22.0.0git
LSPServer.h
Go to the documentation of this file.
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 
14 namespace llvm {
15 struct LogicalResult;
16 namespace lsp {
17 class JSONTransport;
18 } // namespace lsp
19 } // namespace llvm
20 
21 namespace mlir {
22 namespace lsp {
23 class MLIRServer;
24 
25 /// Run the main loop of the LSP server using the given MLIR server and
26 /// transport.
27 llvm::LogicalResult runMlirLSPServer(MLIRServer &server,
28  llvm::lsp::JSONTransport &transport);
29 } // namespace lsp
30 } // namespace mlir
31 
32 #endif // LIB_MLIR_TOOLS_MLIRLSPSERVER_LSPSERVER_H
This class implements all of the MLIR related functionality necessary for a language server.
Definition: MLIRServer.h:38
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Definition: CallGraph.h:229
llvm::LogicalResult runMlirLSPServer(MLIRServer &server, llvm::lsp::JSONTransport &transport)
Run the main loop of the LSP server using the given MLIR server and transport.
Include the generated interface declarations.