npcomp-lsp-server -> torch-mlir-lsp-server

pull/323/head
Sean Silva 2021-09-24 02:30:35 +00:00
parent 01c6c54dd8
commit 35fa1a34cd
4 changed files with 5 additions and 8 deletions

View File

@ -1 +1,2 @@
add_subdirectory(torch-mlir-lsp-server)
add_subdirectory(torch-mlir-opt)

View File

@ -1,13 +1,12 @@
# npcomp-lsp-server is always linked dynamically as we want to distribute the
# torch-mlir-lsp-server is always linked dynamically as we want to distribute the
# binaries with the python packages for hacking/debugging.
add_npcomp_executable(npcomp-lsp-server npcomp-lsp-server.cpp)
add_executable(torch-mlir-lsp-server torch-mlir-lsp-server.cpp)
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
target_link_libraries(npcomp-lsp-server PRIVATE
target_link_libraries(torch-mlir-lsp-server PRIVATE
MLIRLspServerLib
NPCOMPInitAll
TorchMLIRInitAll
# TODO: Remove these in favor of interface deps.
@ -15,4 +14,4 @@ target_link_libraries(npcomp-lsp-server PRIVATE
${conversion_libs}
)
mlir_check_all_link_libraries(npcomp-lsp-server)
mlir_check_all_link_libraries(torch-mlir-lsp-server)

View File

@ -10,7 +10,6 @@
#include "mlir/IR/MLIRContext.h"
#include "mlir/InitAllDialects.h"
#include "mlir/Tools/mlir-lsp-server/MlirLspServerMain.h"
#include "npcomp/InitAll.h"
#include "torch-mlir/InitAll.h"
using namespace mlir;
@ -18,7 +17,6 @@ using namespace mlir;
int main(int argc, char **argv) {
DialectRegistry registry;
registerAllDialects(registry);
mlir::NPCOMP::registerAllDialects(registry);
mlir::torch::registerAllDialects(registry);
return failed(MlirLspServerMain(argc, argv, registry));
}

View File

@ -1,2 +1 @@
add_subdirectory(npcomp-lsp-server)
add_subdirectory(npcomp-opt)