Skip to content

Commit b83c345

Browse files
authored
[LLVM Pulldown] LLVM bump to c539ec0db53ac850d121f1420fc9da72a5bf8891 (#1089)
This PR lifts llvm version to llvm/llvm-project@c539ec0 which is Charitha's change that adds distribution for strided insert and extract vector ops
1 parent 8b98cb4 commit b83c345

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build_tools/llvm_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
04e2e581ac000934782398e05853338040bf7c46
1+
c539ec0db53ac850d121f1420fc9da72a5bf8891

lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,16 @@ class CreateNdDescToXeVMPattern
158158
val = rewriter.create<arith::TruncIOp>(loc, payloadElemTy, val);
159159
} else {
160160
int32_t off = llvm::cast<IntegerAttr>(cast<Attribute>(ofr)).getInt();
161-
val = rewriter.create<arith::ConstantIntOp>(loc, off, payloadElemTy);
161+
val = rewriter.create<arith::ConstantIntOp>(loc, payloadElemTy, off);
162162
}
163163
return val;
164164
};
165165
offsetW = createOffset(rank - 1);
166166
offsetH = createOffset(rank - 2);
167167
baseShapeW = rewriter.create<arith::ConstantIntOp>(
168-
loc, sourceMemrefTy.getDimSize(rank - 1), payloadElemTy);
168+
loc, payloadElemTy, sourceMemrefTy.getDimSize(rank - 1));
169169
baseShapeH = rewriter.create<arith::ConstantIntOp>(
170-
loc, sourceMemrefTy.getDimSize(rank - 2), payloadElemTy);
170+
loc, payloadElemTy, sourceMemrefTy.getDimSize(rank - 2));
171171
} else if (isa<IntegerType>(sourceTy)) {
172172
op.emitError()
173173
<< "Integer as source are currently not supported by the pass.";
@@ -268,7 +268,7 @@ class LoadStorePrefetchNdToXeVMPattern : public OpConversionPattern<OpType> {
268268
auto elemType = tdescTy.getElementType();
269269
const uint32_t elemBitSize = elemType.getIntOrFloatBitWidth();
270270
Value elemByteSize = rewriter.create<arith::ConstantIntOp>(
271-
loc, elemBitSize / 8, rewriter.getI32Type());
271+
loc, rewriter.getI32Type(), elemBitSize / 8);
272272
Value surfaceW =
273273
rewriter.create<arith::MulIOp>(loc, baseShapeW, elemByteSize);
274274

0 commit comments

Comments
 (0)