@@ -199,7 +199,7 @@ static Value generateInBoundsCheck(
199
199
ImplicitLocOpBuilder lb (xferOp.getLoc (), b);
200
200
if (!xferOp.isDimInBounds (0 ) && !isBroadcast) {
201
201
Value memrefDim =
202
- vector::createOrFoldDimOp (b, loc, xferOp.getSource (), *dim);
202
+ vector::createOrFoldDimOp (b, loc, xferOp.getBase (), *dim);
203
203
AffineExpr d0, d1;
204
204
bindDims (xferOp.getContext (), d0, d1);
205
205
Value base = xferOp.getIndices ()[*dim];
@@ -426,7 +426,7 @@ struct Strategy<TransferReadOp> {
426
426
auto vecType = dyn_cast<VectorType>(bufferType.getElementType ());
427
427
auto inBoundsAttr = dropFirstElem (b, xferOp.getInBoundsAttr ());
428
428
auto newXferOp = b.create <vector::TransferReadOp>(
429
- loc, vecType, xferOp.getSource (), xferIndices,
429
+ loc, vecType, xferOp.getBase (), xferIndices,
430
430
AffineMapAttr::get (unpackedPermutationMap (b, xferOp)),
431
431
xferOp.getPadding (), Value (), inBoundsAttr);
432
432
@@ -512,7 +512,7 @@ struct Strategy<TransferWriteOp> {
512
512
Location loc = xferOp.getLoc ();
513
513
auto vec = b.create <memref::LoadOp>(loc, buffer, loadIndices);
514
514
auto inBoundsAttr = dropFirstElem (b, xferOp.getInBoundsAttr ());
515
- auto source = loopState.empty () ? xferOp.getSource () : loopState[0 ];
515
+ auto source = loopState.empty () ? xferOp.getBase () : loopState[0 ];
516
516
Type type = isTensorOp (xferOp) ? xferOp.getShapedType () : Type ();
517
517
auto newXferOp = b.create <vector::TransferWriteOp>(
518
518
loc, type, vec, source, xferIndices,
@@ -544,7 +544,7 @@ struct Strategy<TransferWriteOp> {
544
544
545
545
// / Return the initial loop state for the generated scf.for loop.
546
546
static Value initialLoopState (TransferWriteOp xferOp) {
547
- return isTensorOp (xferOp) ? xferOp.getSource () : Value ();
547
+ return isTensorOp (xferOp) ? xferOp.getBase () : Value ();
548
548
}
549
549
};
550
550
@@ -1145,7 +1145,7 @@ struct ScalableTransposeTransferWriteConversion
1145
1145
ArrayRef<OpFoldResult>(*maskDims).drop_front ());
1146
1146
}
1147
1147
1148
- Value initDest = isTensorOp (writeOp) ? writeOp.getSource () : Value{};
1148
+ Value initDest = isTensorOp (writeOp) ? writeOp.getBase () : Value{};
1149
1149
ValueRange initLoopArgs = initDest ? initDest : ValueRange{};
1150
1150
auto result = rewriter.create <scf::ForOp>(
1151
1151
loc, lb, ub, step, initLoopArgs,
@@ -1165,7 +1165,7 @@ struct ScalableTransposeTransferWriteConversion
1165
1165
1166
1166
// Create the transfer_write for the slice.
1167
1167
Value dest =
1168
- loopIterArgs.empty () ? writeOp.getSource () : loopIterArgs.front ();
1168
+ loopIterArgs.empty () ? writeOp.getBase () : loopIterArgs.front ();
1169
1169
auto newWriteOp = b.create <vector::TransferWriteOp>(
1170
1170
loc, sliceVec, dest, xferIndices,
1171
1171
ArrayRef<bool >(writeOp.getInBoundsValues ()).drop_front ());
@@ -1340,7 +1340,7 @@ struct UnrollTransferReadConversion
1340
1340
1341
1341
auto inBoundsAttr = dropFirstElem (b, xferOp.getInBoundsAttr ());
1342
1342
auto newXferOp = b.create <vector::TransferReadOp>(
1343
- loc, newXferVecType, xferOp.getSource (), xferIndices,
1343
+ loc, newXferVecType, xferOp.getBase (), xferIndices,
1344
1344
AffineMapAttr::get (unpackedPermutationMap (b, xferOp)),
1345
1345
xferOp.getPadding (), Value (), inBoundsAttr);
1346
1346
maybeAssignMask (b, xferOp, newXferOp, i);
@@ -1449,7 +1449,7 @@ struct UnrollTransferWriteConversion
1449
1449
}
1450
1450
1451
1451
int64_t dimSize = inputVectorTy.getShape ()[0 ];
1452
- Value source = xferOp.getSource (); // memref or tensor to be written to.
1452
+ Value source = xferOp.getBase (); // memref or tensor to be written to.
1453
1453
auto sourceType = isTensorOp (xferOp) ? xferOp.getShapedType () : Type ();
1454
1454
1455
1455
// Generate fully unrolled loop of transfer ops.
@@ -1568,7 +1568,7 @@ struct Strategy1d<TransferReadOp> {
1568
1568
/* inBoundsCase=*/
1569
1569
[&](OpBuilder &b, Location loc) {
1570
1570
Value val =
1571
- b.create <memref::LoadOp>(loc, xferOp.getSource (), indices);
1571
+ b.create <memref::LoadOp>(loc, xferOp.getBase (), indices);
1572
1572
return b.create <vector::InsertElementOp>(loc, val, vec, iv);
1573
1573
},
1574
1574
/* outOfBoundsCase=*/
@@ -1599,7 +1599,7 @@ struct Strategy1d<TransferWriteOp> {
1599
1599
/* inBoundsCase=*/ [&](OpBuilder &b, Location loc) {
1600
1600
auto val =
1601
1601
b.create <vector::ExtractElementOp>(loc, xferOp.getVector (), iv);
1602
- b.create <memref::StoreOp>(loc, val, xferOp.getSource (), indices);
1602
+ b.create <memref::StoreOp>(loc, val, xferOp.getBase (), indices);
1603
1603
});
1604
1604
b.create <scf::YieldOp>(loc);
1605
1605
}
0 commit comments