From b208507457868ab751d359982c92f17dfddf3faf Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Tue, 30 Jul 2024 08:24:19 +0200 Subject: [PATCH] Integrate LLVM at llvm/llvm-project@8598bcb9 (#425) Updates LLVM usage to match llvm/llvm-project@8598bcb9, which includes replacing 'cast' (deprecated). Further updates the StableHLO submodule to openxla/stablehlo@2a6ae6e and sets the tf-nighlty version to install to 2.18.0.dev20240704 as the older one is now longer available. --- build_tools/llvm_version.txt | 2 +- lib/Conversion/TosaToEmitC/TosaToEmitC.cpp | 3 +-- scripts/requirements.txt | 2 +- third_party/stablehlo | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/build_tools/llvm_version.txt b/build_tools/llvm_version.txt index 207a057d..90997a46 100644 --- a/build_tools/llvm_version.txt +++ b/build_tools/llvm_version.txt @@ -1 +1 @@ -676d3bafc09d0c331a04b813804407334de12917 +8598bcb9934dca16ea16d87304e00defc85d986c diff --git a/lib/Conversion/TosaToEmitC/TosaToEmitC.cpp b/lib/Conversion/TosaToEmitC/TosaToEmitC.cpp index 8cd30a4c..a5c3ffef 100644 --- a/lib/Conversion/TosaToEmitC/TosaToEmitC.cpp +++ b/lib/Conversion/TosaToEmitC/TosaToEmitC.cpp @@ -417,8 +417,7 @@ createBroadcastOpIfNeeded(SrcOp &srcOp, Adaptor adaptor, SmallVector broadcastedOperands; for (auto operand : adaptor.getOperands()) { - RankedTensorType operandTensor = - operand.getType().template cast(); + RankedTensorType operandTensor = cast(operand.getType()); auto operandShape = operandTensor.getShape(); auto operandRank = operandTensor.getRank(); diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 4c8f1b11..c8422108 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -1,3 +1,3 @@ -tf-nightly==2.16.0.dev20240207 +tf-nightly==2.18.0.dev20240704 ml_dtypes==0.3.1 wrapt==1.14.1 diff --git a/third_party/stablehlo b/third_party/stablehlo index 52172972..2a6ae6e1 160000 --- a/third_party/stablehlo +++ b/third_party/stablehlo @@ -1 +1 @@ -Subproject commit 5217297204acb9e5a21e40fa825aa0769fb3c33f +Subproject commit 2a6ae6e1d8aac9514cbe393898d383a1d9f8fc9f