Skip to content

Commit 5cf3b8a

Browse files
authored
Bump llvm to 37637120 (Xilinx#2625)
1 parent a3d2882 commit 5cf3b8a

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@
1414
[submodule "third_party/aie_api"]
1515
path = third_party/aie_api
1616
url = https://github.com/jgmelber/aie_api
17+
[submodule "third_party/mlir-python-extras"]
18+
path = third_party/mlir-python-extras
19+
url = https://github.com/erwei-xilinx/mlir-python-extras.git

lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,10 +1242,7 @@ struct AIEObjectFifoStatefulTransformPass
12421242
int64_t tripCount = 0;
12431243
if (remLoop.getSingleLowerBound() &&
12441244
remLoop.getSingleUpperBound() && remLoop.getSingleStep()) {
1245-
tripCount = constantTripCount(*(remLoop.getSingleLowerBound()),
1246-
*(remLoop.getSingleUpperBound()),
1247-
*(remLoop.getSingleStep()))
1248-
.value_or(0);
1245+
tripCount = remLoop.getStaticTripCount()->getSExtValue();
12491246
}
12501247
int unrollFactor =
12511248
computeLCM(objFifoSizes); // also counts original loop body

lib/Dialect/AIEVec/Transforms/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ add_mlir_dialect_library(MLIRAIEVecTransforms
2828
LINK_LIBS PUBLIC
2929
MLIRIR
3030
MLIRPass
31-
MLIRAIEVecUtils
32-
MLIRCopyOpInterface)
31+
MLIRAIEVecUtils)

lib/Dialect/AIEVec/Transforms/CopyRemoval.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "aie/Dialect/AIEVec/Pipelines/Passes.h"
1010

11-
#include "mlir/Interfaces/CopyOpInterface.h"
11+
#include "mlir/Dialect/MemRef/IR/MemRef.h"
1212
#include "mlir/Interfaces/SideEffectInterfaces.h"
1313
#include "mlir/Pass/Pass.h"
1414

@@ -55,7 +55,7 @@ class CopyRemovalPass : public PassWrapper<CopyRemovalPass, OperationPass<>> {
5555
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(CopyRemovalPass)
5656

5757
void runOnOperation() override {
58-
getOperation()->walk([&](CopyOpInterface copyOp) {
58+
getOperation()->walk([&](memref::CopyOp copyOp) {
5959
reuseCopySourceAsTarget(copyOp);
6060
reuseCopyTargetAsSource(copyOp);
6161
});
@@ -159,7 +159,7 @@ class CopyRemovalPass : public PassWrapper<CopyRemovalPass, OperationPass<>> {
159159
/// TODO: Alias analysis is not available at the moment. Currently, we check
160160
/// if there are any operations with memory effects between copy and
161161
/// deallocation operations.
162-
void reuseCopySourceAsTarget(CopyOpInterface copyOp) {
162+
void reuseCopySourceAsTarget(memref::CopyOp copyOp) {
163163
if (eraseList.count(copyOp))
164164
return;
165165

@@ -210,7 +210,7 @@ class CopyRemovalPass : public PassWrapper<CopyRemovalPass, OperationPass<>> {
210210
/// TODO: Alias analysis is not available at the moment. Currently, we check
211211
/// if there are any operations with memory effects between copy and
212212
/// deallocation operations.
213-
void reuseCopyTargetAsSource(CopyOpInterface copyOp) {
213+
void reuseCopyTargetAsSource(memref::CopyOp copyOp) {
214214
if (eraseList.count(copyOp))
215215
return;
216216

lib/Dialect/AIEVec/Transforms/VectorToAIEVecConversions.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ struct FoldVectorExtractAndSplatToAIEBroadcast
510510
if (!extOp)
511511
return failure();
512512

513-
auto src = extOp.getVector();
513+
auto src = extOp.getSource();
514514
auto pos = extOp.getStaticPosition();
515515
int64_t posVal = pos[0];
516516
auto srcVecType = cast<VectorType>(src.getType());
@@ -978,7 +978,7 @@ struct FoldSplatToFMAOp : OpConversionPattern<aievec::aie1::FMAOp> {
978978
if (!extOp)
979979
return failure();
980980

981-
auto rhs = extOp.getVector();
981+
auto rhs = extOp.getSource();
982982
auto concatVecType = cast<VectorType>(concatOp.getResult().getType());
983983
auto zvec = rewriter.create<arith::ConstantOp>(
984984
concatOp.getLoc(), lhs.getType(), rewriter.getZeroAttr(lhs.getType()));
@@ -1854,7 +1854,7 @@ struct LowerVectorExtractStridedSliceOpAIEv1Pattern
18541854

18551855
int64_t offset = cast<IntegerAttr>(adaptor.getOffsets()[0]).getInt();
18561856
auto selectOp = rewriter.create<aievec::aie1::SelectOp>(
1857-
extractOp.getLoc(), vType, adaptor.getVector(),
1857+
extractOp.getLoc(), vType, adaptor.getSource(),
18581858
buildAttributeListForRotationSelectOp(rewriter, vType, offset));
18591859
rewriter.replaceOpWithNewOp<aievec::aie1::ExtOp>(
18601860
extractOp, extractOp.getType(), selectOp.getResult(),
@@ -1872,7 +1872,7 @@ struct LowerVectorExtractStridedSliceOpAIE2Pattern
18721872
LogicalResult
18731873
matchAndRewrite(vector::ExtractStridedSliceOp extractOp, OpAdaptor adaptor,
18741874
ConversionPatternRewriter &rewriter) const override {
1875-
auto vType = cast<VectorType>(adaptor.getVector().getType());
1875+
auto vType = cast<VectorType>(adaptor.getSource().getType());
18761876
if (vType.getRank() != 1)
18771877
return failure();
18781878

@@ -1890,11 +1890,11 @@ struct LowerVectorExtractStridedSliceOpAIE2Pattern
18901890
auto bottomHalf = rewriter
18911891
.create<aievec::ExtOp>(
18921892
extractOp.getLoc(), shortVecType,
1893-
adaptor.getVector(), rewriter.getI8IntegerAttr(0))
1893+
adaptor.getSource(), rewriter.getI8IntegerAttr(0))
18941894
.getResult();
18951895
auto topHalf = rewriter
18961896
.create<aievec::ExtOp>(extractOp.getLoc(), shortVecType,
1897-
adaptor.getVector(),
1897+
adaptor.getSource(),
18981898
rewriter.getI8IntegerAttr(1))
18991899
.getResult();
19001900
int64_t offset = cast<IntegerAttr>(adaptor.getOffsets()[0]).getInt();

python/requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pybind11>=2.9.0, <=2.10.3
33
setuptools>=61.0
44
wheel
55
pre-commit
6-
nanobind>=2.5
6+
nanobind>=2.9
77
lit
88
matplotlib
99
# lit requires psutil to set timeouts

python/requirements_extras.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# This can't go in the normal requirements file because the way the wheels build parses requirements.txt
22
# does not support github packages
3-
git+https://github.com/makslevental/mlir-python-extras@ba2e6fe
4-
-f https://github.com/llvm/eudsl/releases/expanded_assets/latest
3+
4+
-e ./third_party/mlir-python-extras -f https://github.com/llvm/eudsl/releases/expanded_assets/latest

third_party/mlir-python-extras

Submodule mlir-python-extras added at a801853

utils/clone-llvm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
##===----------------------------------------------------------------------===##
1414

1515
# The LLVM commit to use.
16-
LLVM_PROJECT_COMMIT=064f02dac0c81c19350a74415b3245f42fed09dc
17-
DATETIME=2025090500
16+
LLVM_PROJECT_COMMIT=37637120af80672002a97c330077e31df7432261
17+
DATETIME=2025100118
1818
WHEEL_VERSION=22.0.0.$DATETIME+${LLVM_PROJECT_COMMIT:0:8}
1919

2020
############################################################################################

0 commit comments

Comments
 (0)