@@ -199,7 +199,7 @@ static Value generateInBoundsCheck(
199199 ImplicitLocOpBuilder lb (xferOp.getLoc (), b);
200200 if (!xferOp.isDimInBounds (0 ) && !isBroadcast) {
201201 Value memrefDim =
202- vector::createOrFoldDimOp (b, loc, xferOp.getSource (), *dim);
202+ vector::createOrFoldDimOp (b, loc, xferOp.getBase (), *dim);
203203 AffineExpr d0, d1;
204204 bindDims (xferOp.getContext (), d0, d1);
205205 Value base = xferOp.getIndices ()[*dim];
@@ -426,7 +426,7 @@ struct Strategy<TransferReadOp> {
426426 auto vecType = dyn_cast<VectorType>(bufferType.getElementType ());
427427 auto inBoundsAttr = dropFirstElem (b, xferOp.getInBoundsAttr ());
428428 auto newXferOp = b.create <vector::TransferReadOp>(
429- loc, vecType, xferOp.getSource (), xferIndices,
429+ loc, vecType, xferOp.getBase (), xferIndices,
430430 AffineMapAttr::get (unpackedPermutationMap (b, xferOp)),
431431 xferOp.getPadding (), Value (), inBoundsAttr);
432432
@@ -512,7 +512,7 @@ struct Strategy<TransferWriteOp> {
512512 Location loc = xferOp.getLoc ();
513513 auto vec = b.create <memref::LoadOp>(loc, buffer, loadIndices);
514514 auto inBoundsAttr = dropFirstElem (b, xferOp.getInBoundsAttr ());
515- auto source = loopState.empty () ? xferOp.getSource () : loopState[0 ];
515+ auto source = loopState.empty () ? xferOp.getBase () : loopState[0 ];
516516 Type type = isTensorOp (xferOp) ? xferOp.getShapedType () : Type ();
517517 auto newXferOp = b.create <vector::TransferWriteOp>(
518518 loc, type, vec, source, xferIndices,
@@ -544,7 +544,7 @@ struct Strategy<TransferWriteOp> {
544544
545545 // / Return the initial loop state for the generated scf.for loop.
546546 static Value initialLoopState (TransferWriteOp xferOp) {
547- return isTensorOp (xferOp) ? xferOp.getSource () : Value ();
547+ return isTensorOp (xferOp) ? xferOp.getBase () : Value ();
548548 }
549549};
550550
@@ -1145,7 +1145,7 @@ struct ScalableTransposeTransferWriteConversion
11451145 ArrayRef<OpFoldResult>(*maskDims).drop_front ());
11461146 }
11471147
1148- Value initDest = isTensorOp (writeOp) ? writeOp.getSource () : Value{};
1148+ Value initDest = isTensorOp (writeOp) ? writeOp.getBase () : Value{};
11491149 ValueRange initLoopArgs = initDest ? initDest : ValueRange{};
11501150 auto result = rewriter.create <scf::ForOp>(
11511151 loc, lb, ub, step, initLoopArgs,
@@ -1165,7 +1165,7 @@ struct ScalableTransposeTransferWriteConversion
11651165
11661166 // Create the transfer_write for the slice.
11671167 Value dest =
1168- loopIterArgs.empty () ? writeOp.getSource () : loopIterArgs.front ();
1168+ loopIterArgs.empty () ? writeOp.getBase () : loopIterArgs.front ();
11691169 auto newWriteOp = b.create <vector::TransferWriteOp>(
11701170 loc, sliceVec, dest, xferIndices,
11711171 ArrayRef<bool >(writeOp.getInBoundsValues ()).drop_front ());
@@ -1340,7 +1340,7 @@ struct UnrollTransferReadConversion
13401340
13411341 auto inBoundsAttr = dropFirstElem (b, xferOp.getInBoundsAttr ());
13421342 auto newXferOp = b.create <vector::TransferReadOp>(
1343- loc, newXferVecType, xferOp.getSource (), xferIndices,
1343+ loc, newXferVecType, xferOp.getBase (), xferIndices,
13441344 AffineMapAttr::get (unpackedPermutationMap (b, xferOp)),
13451345 xferOp.getPadding (), Value (), inBoundsAttr);
13461346 maybeAssignMask (b, xferOp, newXferOp, i);
@@ -1449,7 +1449,7 @@ struct UnrollTransferWriteConversion
14491449 }
14501450
14511451 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.
14531453 auto sourceType = isTensorOp (xferOp) ? xferOp.getShapedType () : Type ();
14541454
14551455 // Generate fully unrolled loop of transfer ops.
@@ -1568,7 +1568,7 @@ struct Strategy1d<TransferReadOp> {
15681568 /* inBoundsCase=*/
15691569 [&](OpBuilder &b, Location loc) {
15701570 Value val =
1571- b.create <memref::LoadOp>(loc, xferOp.getSource (), indices);
1571+ b.create <memref::LoadOp>(loc, xferOp.getBase (), indices);
15721572 return b.create <vector::InsertElementOp>(loc, val, vec, iv);
15731573 },
15741574 /* outOfBoundsCase=*/
@@ -1599,7 +1599,7 @@ struct Strategy1d<TransferWriteOp> {
15991599 /* inBoundsCase=*/ [&](OpBuilder &b, Location loc) {
16001600 auto val =
16011601 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);
16031603 });
16041604 b.create <scf::YieldOp>(loc);
16051605 }
0 commit comments