llvm-capstone/mlir/tools/mlir-pdll-lsp-server/mlir-pdll-lsp-server.cpp
River Riddle 52b34df9d6 [mlir][PDLL] Add an initial language server for PDLL
This commits adds a basic language server for PDLL to enable providing
language features in IDEs such as VSCode. This initial commit only
adds support for tracking definitions, references, and diagnostics, but
followup commits will build upon this to provide more significant behavior.

In addition to the server, this commit also updates mlir-vscode to support
the PDLL language and invoke the server.

Differential Revision: https://reviews.llvm.org/D121541
2022-03-19 13:28:23 -07:00

17 lines
589 B
C++

//===- mlir-pdll-lsp-server.cpp - PDLL Language Server main ---------------===//
//
// Part of the LLVM Project, 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
//
//===----------------------------------------------------------------------===//
#include "mlir/Support/LogicalResult.h"
#include "mlir/Tools/mlir-pdll-lsp-server/MlirPdllLspServerMain.h"
using namespace mlir;
int main(int argc, char **argv) {
return failed(MlirPdllLspServerMain(argc, argv));
}