1 //===- MlirPdllLspServerMain.h - MLIR PDLL Language Server main -*- 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 // Main entry function for mlir-pdll-lsp-server for when built as standalone 10 // binary. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #ifndef MLIR_TOOLS_MLIR_PDLL_LSP_SERVER_MLIRPDLLLSPSERVERMAIN_H 15 #define MLIR_TOOLS_MLIR_PDLL_LSP_SERVER_MLIRPDLLLSPSERVERMAIN_H 16 17 namespace llvm { 18 struct LogicalResult; 19 } // namespace llvm 20 21 namespace mlir { 22 /// Implementation for tools like `mlir-pdll-lsp-server`. 23 llvm::LogicalResult MlirPdllLspServerMain(int argc, char **argv); 24 25 } // namespace mlir 26 27 #endif // MLIR_TOOLS_MLIR_PDLL_LSP_SERVER_MLIRPDLLLSPSERVERMAIN_H 28