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
14
#include "
llzk/Dialect/InitDialects.h
"
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
24
int
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"
);
28
llzk::registerAllDialects
(registry);
29
return
mlir::failed(mlir::MlirLspServerMain(argc, argv, registry));
30
}
config.h
BUG_REPORT_URL
#define BUG_REPORT_URL
Definition
config.h:14
main
int main(int argc, char **argv)
Definition
llzk-lsp-server.cpp:24
InitDialects.h
This file defines llzk::registerAllDialects.
llzk::registerAllDialects
void registerAllDialects(mlir::DialectRegistry ®istry)
Definition
InitDialects.cpp:30
tools
llzk-lsp-server
llzk-lsp-server.cpp
Generated by
1.13.2
Copyright 2025 Veridise Inc. under the Apache License v2.0.