//===- MlirLspServerMain.h - MLIR Language Server main ----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Main entry function for mlir-lsp-server for when built as standalone binary. // //===----------------------------------------------------------------------===// #ifndef MLIR_TOOLS_MLIR_LSP_SERVER_MLIRLSPSERVERMAIN_H #define MLIR_TOOLS_MLIR_LSP_SERVER_MLIRLSPSERVERMAIN_H namespace llvm { struct LogicalResult; } // namespace llvm namespace mlir { class DialectRegistry; /// Implementation for tools like `mlir-lsp-server`. /// - registry should contain all the dialects that can be parsed in source IR /// passed to the server. llvm::LogicalResult MlirLspServerMain(int argc, char **argv, DialectRegistry ®istry); } // namespace mlir #endif // MLIR_TOOLS_MLIR_LSP_SERVER_MLIRLSPSERVERMAIN_H