From 29d5cec7e74f5d33e85f6646d2eed695c4d82d59 Mon Sep 17 00:00:00 2001 From: Jeff Fifield Date: Tue, 18 Jun 2024 12:26:28 -0600 Subject: [PATCH] update llvm (#1570) --- lib/Targets/AIEVecToCpp/TranslateAIEVecToCpp.cpp | 8 +++++--- utils/clone-llvm.sh | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/Targets/AIEVecToCpp/TranslateAIEVecToCpp.cpp b/lib/Targets/AIEVecToCpp/TranslateAIEVecToCpp.cpp index fd71fb79bd..a01ca7f3f9 100644 --- a/lib/Targets/AIEVecToCpp/TranslateAIEVecToCpp.cpp +++ b/lib/Targets/AIEVecToCpp/TranslateAIEVecToCpp.cpp @@ -28,7 +28,6 @@ #include "mlir/IR/BuiltinTypes.h" #include "mlir/IR/Operation.h" #include "mlir/Support/IndentedOstream.h" -#include "mlir/Support/MathExtras.h" #include "llvm/ADT/ScopedHashTable.h" #include "llvm/ADT/SmallSet.h" @@ -37,6 +36,7 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" #include "llvm/Support/FormatVariadic.h" +#include "llvm/Support/MathExtras.h" #include #include @@ -2449,8 +2449,10 @@ static LogicalResult printOperation(CppEmitter &emitter, scf::ForOp forOp) { if (auto [constantLoopBound, tripCount] = getTripCount(forOp); constantLoopBound) { auto [constantStep, step] = getStep(forOp); - int64_t lb = constantStep && step > 0 ? floorDiv(tripCount, step) : 1; - int64_t ub = constantStep && step > 0 ? ceilDiv(tripCount, step) : 0; + int64_t lb = + constantStep && step > 0 ? llvm::divideFloorSigned(tripCount, step) : 1; + int64_t ub = + constantStep && step > 0 ? llvm::divideCeilSigned(tripCount, step) : 0; os << "chess_loop_range("; os << std::to_string(lb); os << ", "; diff --git a/utils/clone-llvm.sh b/utils/clone-llvm.sh index a87d9ca0b7..6fdba885ee 100755 --- a/utils/clone-llvm.sh +++ b/utils/clone-llvm.sh @@ -13,8 +13,8 @@ ##===----------------------------------------------------------------------===## # The LLVM commit to use. -LLVM_PROJECT_COMMIT=a088c61d5c409ec0b8994340866d5864ba913516 -DATETIME=2024060317 +LLVM_PROJECT_COMMIT=a50bcc03cbaecf6473c6bf41f4497758a7876f3d +DATETIME=2024061721 WHEEL_VERSION=19.0.0.$DATETIME+${LLVM_PROJECT_COMMIT:0:8} ############################################################################################