Skip to content

Commit

Permalink
Integrate LLVM at llvm/llvm-project@261b693afd82
Browse files Browse the repository at this point in the history
Updates LLVM usage to match
[261b693afd82](llvm/llvm-project@261b693afd82)

PiperOrigin-RevId: 540599828
  • Loading branch information
tensorflower-gardener authored and TensorFlow MLIR Team committed Jun 15, 2023
1 parent bb7b1eb commit b3f8eac
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,7 @@ cc_binary(
":transforms_gpu_passes",
"//stablehlo:register",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:AllExtensions",
"@llvm-project//mlir:AllPassesAndDialects",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:MlirOptLib",
Expand Down
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ http_archive(
],
)

LLVM_COMMIT = "0258a53521cfedf5cb80c2b1d4a66c942615de74"
LLVM_COMMIT = "261b693afd82b7dc935bbbafa44b16f591a38daf"

LLVM_SHA256 = "e9f298730072bca14d4db5a786ed7d11962654d3895c27c47ee8130b77cb5f18"
LLVM_SHA256 = "37a86bd6cafed9f22c65c6a27c2849b07c6baaa5bbb277959e2bfe241ad96fcf"

http_archive(
name = "llvm-raw",
Expand Down
2 changes: 1 addition & 1 deletion build_tools/llvm_version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
0258a53521cfedf5cb80c2b1d4a66c942615de74
261b693afd82b7dc935bbbafa44b16f591a38daf

1 change: 1 addition & 0 deletions stablehlo/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ cc_binary(
":stablehlo_passes",
":test_utils",
":tosa_passes",
"@llvm-project//mlir:AllExtensions",
"@llvm-project//mlir:AllPassesAndDialects",
"@llvm-project//mlir:MlirOptLib",
"@llvm-project//mlir:TosaDialect",
Expand Down
2 changes: 1 addition & 1 deletion stablehlo/build_tools/llvm_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0258a53521cfedf5cb80c2b1d4a66c942615de74
261b693afd82b7dc935bbbafa44b16f591a38daf
2 changes: 2 additions & 0 deletions stablehlo/stablehlo/tools/StablehloOptMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ limitations under the License.
#include "mlir/Dialect/Tosa/IR/TosaOps.h"
#include "mlir/Dialect/Tosa/Transforms/Passes.h"
#include "mlir/InitAllDialects.h"
#include "mlir/InitAllExtensions.h"
#include "mlir/InitAllPasses.h"
#include "mlir/Tools/mlir-opt/MlirOptMain.h"
#include "stablehlo/conversions/tosa/transforms/Passes.h"
Expand All @@ -32,6 +33,7 @@ int main(int argc, char **argv) {

mlir::DialectRegistry registry;
mlir::registerAllDialects(registry);
mlir::registerAllExtensions(registry);
mlir::stablehlo::registerAllDialects(registry);

return failed(
Expand Down
2 changes: 2 additions & 0 deletions tools/mlir-hlo-opt/mlir-hlo-opt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ limitations under the License.
#include "mhlo/IR/register.h"
#include "mhlo/transforms/passes.h"
#include "mlir/InitAllDialects.h"
#include "mlir/InitAllExtensions.h"
#include "mlir/InitAllPasses.h"
#include "mlir/Tools/mlir-opt/MlirOptMain.h"
#include "stablehlo/dialect/Register.h"
Expand Down Expand Up @@ -59,6 +60,7 @@ int main(int argc, char** argv) {

DialectRegistry registry;
registerAllDialects(registry);
registerAllExtensions(registry);
mhlo::registerAllMhloDialects(registry);
stablehlo::registerAllDialects(registry);
registry.insert<deallocation::DeallocationDialect, lmhlo::LmhloDialect,
Expand Down

0 comments on commit b3f8eac

Please sign in to comment.