From 8fad496802fadd8d3763449f1e56570ef7e7d70a Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Tue, 11 Jun 2024 10:35:57 +0000 Subject: [PATCH] Integrate LLVM at llvm/llvm-project@765206e0 Updates LLVM usage to match llvm/llvm-project@765206e0, which includes replacing 'cast' (deprecated). Further updates the StableHLO submodule to openxla/stablehlo@14e2323. --- build_tools/llvm_version.txt | 2 +- lib/Conversion/TosaToEmitC/TosaToEmitC.cpp | 3 +-- third_party/stablehlo | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build_tools/llvm_version.txt b/build_tools/llvm_version.txt index 207a057d..302a7154 100644 --- a/build_tools/llvm_version.txt +++ b/build_tools/llvm_version.txt @@ -1 +1 @@ -676d3bafc09d0c331a04b813804407334de12917 +765206e050453018e861637a08a4520f29238074 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/third_party/stablehlo b/third_party/stablehlo index 52172972..14e2323f 160000 --- a/third_party/stablehlo +++ b/third_party/stablehlo @@ -1 +1 @@ -Subproject commit 5217297204acb9e5a21e40fa825aa0769fb3c33f +Subproject commit 14e2323f0ee3d308c1384fdb806dc6d0c98b16ca