mirror of https://github.com/llvm/torch-mlir
[build] Update llvm tag to 3f8d8c1a
This patch updates the submodules to: - llvm: 3f8d8c1aac3086f603ad73f18fe2bd4fb91fa10a - mhlo: 4384a47b03dc377d651523037867899a340b0e96 The only change made is calling `registerAllExtensions` during dialect registration. See: https://reviews.llvm.org/D120368pull/2254/head
parent
860a2d4bbf
commit
ebda611100
|
@ -1 +1 @@
|
|||
Subproject commit 2b4807ba044230ed6243f5c3a1329a9344de758d
|
||||
Subproject commit 3f8d8c1aac3086f603ad73f18fe2bd4fb91fa10a
|
|
@ -1 +1 @@
|
|||
Subproject commit ac26bdba7a5edfe6060ba5be528b9d20c987297d
|
||||
Subproject commit 4384a47b03dc377d651523037867899a340b0e96
|
|
@ -9,6 +9,7 @@ COMPONENT torch-mlir-lsp-server)
|
|||
|
||||
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
||||
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
||||
get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
|
||||
|
||||
target_link_libraries(torch-mlir-lsp-server PRIVATE
|
||||
MLIRLspServerLib
|
||||
|
@ -17,6 +18,7 @@ target_link_libraries(torch-mlir-lsp-server PRIVATE
|
|||
# TODO: Remove these in favor of interface deps.
|
||||
${dialect_libs}
|
||||
${conversion_libs}
|
||||
${extension_libs}
|
||||
)
|
||||
|
||||
mlir_check_all_link_libraries(torch-mlir-lsp-server)
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "mlir/IR/Dialect.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "mlir/InitAllDialects.h"
|
||||
#include "mlir/InitAllExtensions.h"
|
||||
#include "mlir/Tools/mlir-lsp-server/MlirLspServerMain.h"
|
||||
#include "torch-mlir/InitAll.h"
|
||||
|
||||
|
@ -18,6 +19,7 @@ using namespace mlir;
|
|||
int main(int argc, char **argv) {
|
||||
DialectRegistry registry;
|
||||
registerAllDialects(registry);
|
||||
registerAllExtensions(registry);
|
||||
mlir::torch::registerAllDialects(registry);
|
||||
return failed(MlirLspServerMain(argc, argv, registry));
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ COMPONENT torch-mlir-opt)
|
|||
|
||||
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
||||
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
||||
get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
|
||||
|
||||
target_link_libraries(torch-mlir-opt PRIVATE
|
||||
MLIROptLib
|
||||
|
@ -15,4 +16,5 @@ target_link_libraries(torch-mlir-opt PRIVATE
|
|||
TorchMLIRTorchPasses
|
||||
${dialect_libs}
|
||||
${conversion_libs}
|
||||
${extension_libs}
|
||||
)
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/InitAllDialects.h"
|
||||
#include "mlir/InitAllExtensions.h"
|
||||
#include "mlir/InitAllPasses.h"
|
||||
#include "mlir/Tools/mlir-opt/MlirOptMain.h"
|
||||
#include "torch-mlir/InitAll.h"
|
||||
|
@ -26,6 +27,7 @@ int main(int argc, char **argv) {
|
|||
|
||||
DialectRegistry registry;
|
||||
registerAllDialects(registry);
|
||||
registerAllExtensions(registry);
|
||||
mlir::torch::registerAllDialects(registry);
|
||||
|
||||
#ifdef TORCH_MLIR_ENABLE_STABLEHLO
|
||||
|
|
Loading…
Reference in New Issue