@@ -697,13 +697,13 @@ static LogicalResult attachLayoutAttributes(
697697 auto layout = getPropagatedLayout (r);
698698 if (!layout.isAssigned ())
699699 return {};
700- SmallVector<int , 2 > wiLayout, wiData ;
700+ SmallVector<int , 2 > laneLayout, laneData ;
701701 for (auto [layout, data] : llvm::zip_equal (layout.getLayoutAsArrayRef (),
702702 layout.getDataAsArrayRef ())) {
703- wiLayout .push_back (static_cast <int >(layout));
704- wiData .push_back (static_cast <int >(data));
703+ laneLayout .push_back (static_cast <int >(layout));
704+ laneData .push_back (static_cast <int >(data));
705705 }
706- return xegpu::LayoutAttr::get (r.getContext (), wiLayout, wiData );
706+ return xegpu::LayoutAttr::get (r.getContext (), laneLayout, laneData );
707707 };
708708 // / Attach the layout attributes to the results of the operations.
709709 auto walkResult = top->walk ([&](Operation *op) {
@@ -785,22 +785,22 @@ FailureOr<VectorType> getDistVecTypeBasedOnLaneLayout(xegpu::LayoutAttr layout,
785785 if (!layout)
786786 return failure ();
787787
788- auto wiLayout = layout.getLaneLayout ();
788+ auto laneLayout = layout.getLaneLayout ();
789789 assert ((originalType.getRank () == 2 || originalType.getRank () == 3 ) &&
790790 " expecting 2D or 3D shape for the original vector type" );
791- assert (wiLayout .size () == 2 && " expecting 2D shape for the wi layout" );
791+ assert (laneLayout .size () == 2 && " expecting 2D shape for the wi layout" );
792792 // Original type can be 2D or 3D (array_length > 1), the last two dims are the
793793 // block shape.
794794 auto blockShape = originalType.getShape ().take_back (2 );
795795 // Check if the block vector shape can be distributed evenly.
796- if (blockShape[0 ] % wiLayout [0 ] != 0 || blockShape[1 ] % wiLayout [1 ] != 0 )
796+ if (blockShape[0 ] % laneLayout [0 ] != 0 || blockShape[1 ] % laneLayout [1 ] != 0 )
797797 return failure ();
798798
799799 if (originalType.getRank () == 3 ) {
800800 distributedShape.push_back (originalType.getShape ()[0 ]);
801801 }
802802 for (unsigned i = 0 ; i < 2 ; ++i) {
803- distributedShape.push_back (blockShape[i] / wiLayout [i]);
803+ distributedShape.push_back (blockShape[i] / laneLayout [i]);
804804 }
805805 auto newVectorType =
806806 VectorType::get (distributedShape, originalType.getElementType ());
0 commit comments