|  | // 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 "mlir/IR/Dialect.h" | 
|  | #include "mlir/Support/LogicalResult.h" | 
|  | #include "mlir/Tools/mlir-lsp-server/MlirLspServerMain.h" | 
|  |  | 
|  | int main(int argc, char **argv) { | 
|  | mlir::DialectRegistry registry; | 
|  | mlir::iree_compiler::registerAllDialects(registry); | 
|  | return failed(mlir::MlirLspServerMain(argc, argv, registry)); | 
|  | } |