1 //===- mlir-lsp-server.cpp - MLIR Language Server -------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "mlir/IR/Dialect.h"
10 #include "mlir/IR/MLIRContext.h"
11 #include "mlir/InitAllDialects.h"
12 #include "mlir/Tools/mlir-lsp-server/MlirLspServerMain.h"
16 #ifdef MLIR_INCLUDE_TESTS
18 void registerTestDialect(DialectRegistry
&);
19 void registerTestTransformDialectExtension(DialectRegistry
&);
23 int main(int argc
, char **argv
) {
24 DialectRegistry registry
;
25 registerAllDialects(registry
);
26 #ifdef MLIR_INCLUDE_TESTS
27 ::test::registerTestDialect(registry
);
28 ::test::registerTestTransformDialectExtension(registry
);
30 return failed(MlirLspServerMain(argc
, argv
, registry
));