Skip to content

Commit 74edb9c

Browse files
committed
review comments
1 parent f8b55d5 commit 74edb9c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,7 @@ struct AMDGPUSwizzleBitModeLowering
13941394
unsigned xorMask = op.getXorMask();
13951395

13961396
// bit 15 is 0 for the BitMode swizzle.
1397+
// https://gpuopen.com/learn/amd-gcn-assembly-cross-lane-operations/
13971398
unsigned mask = andMask | (orMask << 5) | (xorMask << 10);
13981399
Value maskValue = createI32Constant(rewriter, loc, mask);
13991400
SmallVector<Value> swizzled;

mlir/lib/Conversion/LLVMCommon/Pattern.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ SmallVector<Value> mlir::LLVM::decomposeValue(OpBuilder &builder, Location loc,
427427
src = builder.create<LLVM::BitcastOp>(loc, vecType, src);
428428

429429
SmallVector<Value> res;
430-
for (auto i : llvm::seq<int64_t>(0, numElements)) {
430+
for (auto i : llvm::seq(numElements)) {
431431
Value idx = createI32Constant(builder, loc, i);
432432
Value elem = builder.create<LLVM::ExtractElementOp>(loc, src, idx);
433433
res.emplace_back(elem);

0 commit comments

Comments
 (0)