CIRCT 21.0.0git
Loading...
Searching...
No Matches
CirctVerilogLspServerMain.cpp
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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
10#include "LSPServer.h"
12#include "mlir/Tools/lsp-server-support/Transport.h"
13
14using namespace mlir;
15using namespace mlir::lsp;
16
19 mlir::lsp::JSONTransport &transport) {
21 return circt::lsp::runVerilogLSPServer(server, transport);
22}
static std::unique_ptr< RpcServer > server
This class implements all of the Verilog related functionality necessary for a language server.
llvm::LogicalResult CirctVerilogLspServerMain(const VerilogServerOptions &options, mlir::lsp::JSONTransport &transport)
Implementation for tools like circt-verilog-lsp-server.
llvm::LogicalResult runVerilogLSPServer(VerilogServer &server, mlir::lsp::JSONTransport &transport)
Run the main loop of the LSP server using the given Verilog server and transport.