blob: 6300eed7d28931a7ce2929d9c5fa3e56bf6ee1d0 [file] [edit]
// Copyright 2021 The IREE Authors
//
// Licensed 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 the IREE variant of mlir-lsp-server.
//
// See https://mlir.llvm.org/docs/Tools/MLIRLSP/
#include "iree/compiler/Tools/init_dialects.h"
#include "iree/compiler/tool_entry_points_api.h"
#include "mlir/IR/Dialect.h"
#include "mlir/Support/LogicalResult.h"
#include "mlir/Tools/mlir-lsp-server/MlirLspServerMain.h"
int ireeMlirLspServerRunMain(int argc, char **argv) {
mlir::DialectRegistry registry;
mlir::iree_compiler::registerAllDialects(registry);
return failed(mlir::MlirLspServerMain(argc, argv, registry));
}