@@ -531,8 +531,7 @@ void maybePrintCTALayout(mlir::MLIRContext *context, mlir::AsmPrinter &printer,
531531LogicalResult Subgroup2DBlockEncodingAttr::verify (
532532 function_ref<InFlightDiagnostic()> emitError,
533533 ArrayRef<unsigned> warpsPerCTA, CTALayoutAttr CTALayout,
534- ArrayRef<unsigned> instrShape, unsigned numBlocks,
535- ArrayRef<unsigned> numReps, ArrayRef<unsigned> order, unsigned kWidth,
534+ ArrayRef<unsigned> instrShape, unsigned numBlocks, ArrayRef<unsigned> order, unsigned kWidth,
536535 unsigned threadsPerWarp) {
537536 if (instrShape.size () != 2 ) {
538537 return emitError () << " instrShape must be rank 2 but was: "
@@ -570,7 +569,6 @@ Attribute Subgroup2DBlockEncodingAttr::parse(AsmParser &parser, Type type) {
570569 std::optional<SmallVector<unsigned >> CTAOrder;
571570 SmallVector<unsigned > instrShape;
572571 unsigned numBlocks = 0 ;
573- SmallVector<unsigned > numReps;
574572 SmallVector<unsigned > order;
575573 unsigned kWidth = 0 ;
576574 unsigned threadsPerWarp = 0 ;
@@ -603,10 +601,6 @@ Attribute Subgroup2DBlockEncodingAttr::parse(AsmParser &parser, Type type) {
603601 if (parseUInt (parser, attr, numBlocks, " numBlocks" ).failed ())
604602 return {};
605603 }
606- if (attr.getName () == " numReps" ) {
607- if (parseIntArrayAttr (parser, attr, numReps, " numReps" ).failed ())
608- return {};
609- }
610604 if (attr.getName () == " order" ) {
611605 if (parseIntArrayAttr (parser, attr, order, " order" ).failed ())
612606 return {};
@@ -628,7 +622,7 @@ Attribute Subgroup2DBlockEncodingAttr::parse(AsmParser &parser, Type type) {
628622
629623 return parser.getChecked <Subgroup2DBlockEncodingAttr>(
630624 parser.getContext (), warpsPerCTA, *CTALayout, instrShape, numBlocks,
631- numReps, order, kWidth , threadsPerWarp);
625+ order, kWidth , threadsPerWarp);
632626}
633627
634628SmallVector<unsigned > Subgroup2DBlockEncodingAttr::getRepOrder () const {
@@ -658,8 +652,7 @@ void Subgroup2DBlockEncodingAttr::print(AsmPrinter &printer) const {
658652 maybePrintCTALayout (getContext (), printer, getCTALayout (), getRank ());
659653
660654 printer << " , instrShape = [" << getInstrShape ()
661- << " ], numBlocks=" << getNumBlocks () << " , numReps=[" << getNumReps ()
662- << " ], order=[" << getOrder () << " ], kWidth=" << getKWidth ()
655+ << " ], numBlocks=" << getNumBlocks () << " , order=[" << getOrder () << " ], kWidth=" << getKWidth ()
663656 << " , threadsPerWarp=" << getThreadsPerWarp () << " }>" ;
664657}
665658
0 commit comments