[build] Update llvm tag to 68754241 (#2079)

This commit updates the `llvm-project` and `mlir-hlo` submodules to
commits:

- llvm-project: 6875424135312aeb26ab8e0358ba7f9e6e80e741
- mlir-hlo: 92fd33a4bacbeb93ab276a49f38bdebd5f9d7487

The calls to `mlir::MlirOptMain` are updated to no longer specify the
flag `preloadDialectInContext` that has been removed (see:
https://reviews.llvm.org/D149039).
pull/2086/head
Ramiro Leal-Cavazos 2023-05-02 09:13:54 -07:00 committed by GitHub
parent 100cb46baa
commit f9c2b46e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 9 deletions

View File

@ -43,7 +43,6 @@ int main(int argc, char **argv) {
mlir::func::FuncDialect, mlir::memref::MemRefDialect,
mlir::scf::SCFDialect, mlir::tensor::TensorDialect>();
return mlir::asMainReturnCode(
mlir::MlirOptMain(argc, argv, "MLIR modular optimizer driver\n", registry,
/*preloadDialectsInContext=*/false));
return mlir::asMainReturnCode(mlir::MlirOptMain(
argc, argv, "MLIR modular optimizer driver\n", registry));
}

@ -1 +1 @@
Subproject commit 3157f03a349cfc852cdd994675eaa9652caa2e3a
Subproject commit 6875424135312aeb26ab8e0358ba7f9e6e80e741

2
externals/mlir-hlo vendored

@ -1 +1 @@
Subproject commit a9ac343738945be7744e304b72704128e48aa06f
Subproject commit 92fd33a4bacbeb93ab276a49f38bdebd5f9d7487

View File

@ -28,8 +28,7 @@ int main(int argc, char **argv) {
#ifdef TORCH_MLIR_ENABLE_STABLEHLO
mlir::stablehlo::registerAllDialects(registry);
#endif
return mlir::asMainReturnCode(
mlir::MlirOptMain(argc, argv, "MLIR modular optimizer driver\n", registry,
/*preloadDialectsInContext=*/false));
#endif
return mlir::asMainReturnCode(mlir::MlirOptMain(
argc, argv, "MLIR modular optimizer driver\n", registry));
}