Skip to content

Commit

Permalink
update llvm (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifield authored Jun 18, 2024
1 parent 1379c2b commit 29d5cec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions lib/Targets/AIEVecToCpp/TranslateAIEVecToCpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 <limits>
#include <numeric>
Expand Down Expand Up @@ -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 << ", ";
Expand Down
4 changes: 2 additions & 2 deletions utils/clone-llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

############################################################################################
Expand Down

0 comments on commit 29d5cec

Please sign in to comment.