[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/D120368
pull/2254/head
Abhishek Varma 2023-06-20 17:49:15 +00:00 committed by Ramiro Leal-Cavazos
parent 860a2d4bbf
commit ebda611100
6 changed files with 10 additions and 2 deletions

@ -1 +1 @@
Subproject commit 2b4807ba044230ed6243f5c3a1329a9344de758d
Subproject commit 3f8d8c1aac3086f603ad73f18fe2bd4fb91fa10a

2
externals/mlir-hlo vendored

@ -1 +1 @@
Subproject commit ac26bdba7a5edfe6060ba5be528b9d20c987297d
Subproject commit 4384a47b03dc377d651523037867899a340b0e96

View File

@ -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)

View File

@ -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));
}

View File

@ -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}
)

View File

@ -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