LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
llzk-lsp-server.cpp
Go to the documentation of this file.
1//===-- llzk-lsp-server.cpp - LLZK LSP server -------------------*- C++ -*-===//
2//
3// Part of the LLZK Project, under the Apache License v2.0.
4// See LICENSE.txt for license information.
5// Copyright 2025 Veridise Inc.
6// SPDX-License-Identifier: Apache-2.0
7//
8//===----------------------------------------------------------------------===//
9//
10// This file runs the MLIR LSP server configured with LLZK dialects.
11//
12//===----------------------------------------------------------------------===//
13
15
16#include <mlir/IR/DialectRegistry.h>
17#include <mlir/Support/LogicalResult.h>
18#include <mlir/Tools/mlir-lsp-server/MlirLspServerMain.h>
19
20#include <llvm/Support/PrettyStackTrace.h>
21
22#include "tools/config.h"
23
24int main(int argc, char **argv) {
25 mlir::DialectRegistry registry;
26 llvm::setBugReportMsg("PLEASE submit a bug report to " BUG_REPORT_URL
27 " and include the crash backtrace and inciting LLZK files.\n");
29 return mlir::failed(mlir::MlirLspServerMain(argc, argv, registry));
30}
#define BUG_REPORT_URL
Definition config.h:14
int main(int argc, char **argv)
This file defines llzk::registerAllDialects.
void registerAllDialects(mlir::DialectRegistry &registry)