@@ -138,13 +138,13 @@ getShmReadAndWriteOps(Operation *parentOp, Value shmMemRef,
138
138
if (llvm::any_of (readOps, [](Operation *op) {
139
139
return !isa<memref::LoadOp, vector::LoadOp, vector::TransferReadOp>(
140
140
op) ||
141
- amdgpu::getIndices (op). size () < 2 ;
141
+ amdgpu::getIndices (op)-> size () < 2 ;
142
142
}))
143
143
return failure ();
144
144
if (llvm::any_of (writeOps, [](Operation *op) {
145
145
return !isa<memref::StoreOp, vector::StoreOp, vector::TransferWriteOp>(
146
146
op) ||
147
- amdgpu::getIndices (op). size () < 2 ;
147
+ amdgpu::getIndices (op)-> size () < 2 ;
148
148
}))
149
149
return failure ();
150
150
@@ -199,7 +199,7 @@ mlir::amdgpu::optimizeSharedMemoryReadsAndWrites(Operation *parentOp,
199
199
builder.setInsertionPoint (shmWriteOp);
200
200
201
201
auto indices = amdgpu::getIndices (shmWriteOp);
202
- SmallVector<Value, 4 > transformedIndices (indices. begin (), indices. end ());
202
+ SmallVector<Value, 4 > transformedIndices (indices-> begin (), indices-> end ());
203
203
transformIndices (builder, shmWriteOp->getLoc (), transformedIndices,
204
204
memRefType, srcDim, tgtDim);
205
205
amdgpu::setIndices (shmWriteOp, transformedIndices);
@@ -211,7 +211,7 @@ mlir::amdgpu::optimizeSharedMemoryReadsAndWrites(Operation *parentOp,
211
211
builder.setInsertionPoint (shmReadOp);
212
212
213
213
auto indices = amdgpu::getIndices (shmReadOp);
214
- SmallVector<Value, 4 > transformedIndices (indices. begin (), indices. end ());
214
+ SmallVector<Value, 4 > transformedIndices (indices-> begin (), indices-> end ());
215
215
transformIndices (builder, shmReadOp->getLoc (), transformedIndices,
216
216
memRefType, srcDim, tgtDim);
217
217
amdgpu::setIndices (shmReadOp, transformedIndices);
0 commit comments