[NFC] Add libcxx python reformat SHA to .git-blame-ignore-revs
[llvm-project.git] / mlir / tools / mlir-lsp-server / mlir-lsp-server.cpp
blobac62de0b4ab177aaf1bdb78ff7252e5aed289722
1 //===- mlir-lsp-server.cpp - MLIR Language Server -------------------------===//
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 //===----------------------------------------------------------------------===//
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"
14 using namespace mlir;
16 #ifdef MLIR_INCLUDE_TESTS
17 namespace test {
18 void registerTestDialect(DialectRegistry &);
19 void registerTestTransformDialectExtension(DialectRegistry &);
20 } // namespace test
21 #endif
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);
29 #endif
30 return failed(MlirLspServerMain(argc, argv, registry));