Skip to content

Commit 5a32ebe

Browse files
authored
[LLVM Pulldown] Bump to LLVM rev 9f733f4324412ef89cc7729bf027cdcab912ceff (#1097)
Bumps LLVM revision and also switch most of imex vector linearization conversions to the upstream ones (only ubpoison left)
1 parent 1a223e9 commit 5a32ebe

19 files changed

+185
-936
lines changed

build_tools/llvm_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f2e244f443c99f814216bef37a82f1b8d3e5975d
1+
9f733f4324412ef89cc7729bf027cdcab912ceff

build_tools/patches/0008-xegpu-temporary-downstream-defintion-changes-and-vec.patch

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 34eb42d07af1bd30183c45b24b7663ae9e0470c1 Mon Sep 17 00:00:00 2001
1+
From 4e5105ef7e07e8ba312bcfbc7d7b7efe93be2523 Mon Sep 17 00:00:00 2001
22
From: Garra1980 <[email protected]>
3-
Date: Wed, 9 Apr 2025 18:26:12 +0200
4-
Subject: [PATCH 1/1] xegpu temporary downstream definition changes and vec
3+
Date: Tue, 22 Jul 2025 22:46:30 +0200
4+
Subject: [PATCH] xegpu temporary downstream defintion changes and vec
55

66
---
77
mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td | 6 ++++++
@@ -10,18 +10,18 @@ Subject: [PATCH 1/1] xegpu temporary downstream definition changes and vec
1010
3 files changed, 10 insertions(+), 1 deletion(-)
1111

1212
diff --git a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td
13-
index 16a7f63d60c8..8a518e84570d 100644
13+
index 81e25f7537cb..a7f3367d3774 100644
1414
--- a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td
1515
+++ b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td
16-
@@ -332,6 +332,7 @@ def XeGPU_LoadNdOp : XeGPU_Op<"load_nd", [
16+
@@ -345,6 +345,7 @@ def XeGPU_LoadNdOp : XeGPU_Op<"load_nd", [
1717
let arguments = (ins XeGPU_TensorDesc: $TensorDesc,
1818
OptionalAttr<UnitAttr>: $packed,
1919
OptionalAttr<DenseI64ArrayAttr>: $transpose,
2020
+ OptionalAttr<I32Attr>: $transpose_bit_width,
2121
OptionalAttr<XeGPU_CacheHintAttr>: $l1_hint,
2222
OptionalAttr<XeGPU_CacheHintAttr>: $l2_hint,
2323
OptionalAttr<XeGPU_CacheHintAttr>: $l3_hint);
24-
@@ -1003,4 +1004,9 @@ def XeGPU_ConvertLayoutOp: XeGPU_Op<"convert_layout", [Pure, AllTypesMatch<["sou
24+
@@ -971,4 +972,9 @@ def XeGPU_ConvertLayoutOp: XeGPU_Op<"convert_layout", [Pure, AllTypesMatch<["sou
2525
let hasVerifier = 1;
2626
}
2727

@@ -32,38 +32,38 @@ index 16a7f63d60c8..8a518e84570d 100644
3232
+
3333
#endif // MLIR_DIALECT_XEGPU_IR_XEGPUOPS_TD
3434
diff --git a/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp b/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
35-
index 0bc0f2fca2c3..87af0060aa5d 100644
35+
index 80107554144c..b5c013dc5d2d 100644
3636
--- a/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
3737
+++ b/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
38-
@@ -203,6 +203,7 @@ struct TransferReadLowering : public OpRewritePattern<vector::TransferReadOp> {
38+
@@ -202,6 +202,7 @@ struct TransferReadLowering : public OpRewritePattern<vector::TransferReadOp> {
3939
xegpu::CachePolicyAttr hint = nullptr;
40-
auto loadOp = rewriter.create<xegpu::LoadNdOp>(
41-
loc, vecTy, ndDesc, /*packed=*/nullptr, transposeAttr,
42-
+ /*transpose_bit_width*/nullptr,
43-
/*l1_hint=*/hint,
44-
/*l2_hint=*/hint, /*l3_hint=*/hint);
40+
auto loadOp = xegpu::LoadNdOp::create(rewriter, loc, vecTy, ndDesc,
41+
/*packed=*/nullptr, transposeAttr,
42+
+ /*transpose_bit_width*/nullptr,
43+
/*l1_hint=*/hint,
44+
/*l2_hint=*/hint, /*l3_hint=*/hint);
4545
rewriter.replaceOp(readOp, loadOp);
46-
@@ -272,6 +273,7 @@ struct LoadLowering : public OpRewritePattern<vector::LoadOp> {
46+
@@ -271,6 +272,7 @@ struct LoadLowering : public OpRewritePattern<vector::LoadOp> {
4747
xegpu::CachePolicyAttr hint = nullptr;
48-
auto loadNdOp = rewriter.create<xegpu::LoadNdOp>(
49-
loc, vecTy, ndDesc, /*packed=*/nullptr, /*transpose=*/nullptr,
48+
auto loadNdOp = xegpu::LoadNdOp::create(
49+
rewriter, loc, vecTy, ndDesc, /*packed=*/nullptr, /*transpose=*/nullptr,
5050
+ /*transpose_bit_width*/nullptr,
5151
/*l1_hint=*/hint,
5252
/*l2_hint=*/hint, /*l3_hint=*/hint);
5353
rewriter.replaceOp(loadOp, loadNdOp);
5454
diff --git a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
55-
index 0d67e3d70f94..873268c2bc10 100644
55+
index c8da5558438e..a4d1e2c344c1 100644
5656
--- a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
5757
+++ b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
58-
@@ -70,6 +70,7 @@ static bool isWriteHintOrNone(const CachePolicyAttr &attr) {
58+
@@ -65,6 +65,7 @@ static bool isWriteHintOrNone(const CachePolicyAttr &attr) {
5959
return true;
6060
auto kind = attr.getValue();
6161
return kind == CachePolicy::CACHED || kind == CachePolicy::UNCACHED ||
6262
+ kind == CachePolicy::STREAMING ||
6363
kind == CachePolicy::WRITE_BACK || kind == CachePolicy::WRITE_THROUGH;
6464
}
6565

66-
@@ -321,7 +322,7 @@ LogicalResult LoadNdOp::verify() {
66+
@@ -420,7 +421,7 @@ LogicalResult LoadNdOp::verify() {
6767
mlir::emitWarning(getLoc()) << "Invalid transpose attr. It is ignored.";
6868
}
6969

0 commit comments

Comments
 (0)