@@ -597,15 +597,6 @@ We call each individual tile "rep".
597597 /*defaultImplementation=*/[{
598598 return toLinearEncoding($_self, shape).getElemsPerThread(shape);
599599 }]>,
600- // Interface for the meta information about the multiple thread hierarchy.
601- InterfaceMethod<"Get the shape of the warps per CTA.",
602- "SmallVector<unsigned>",
603- "getWarpsPerCTA">,
604-
605-
606- InterfaceMethod<"Get the shape of the threads per warp",
607- "SmallVector<unsigned>",
608- "getThreadsPerWarp">,
609600 InterfaceMethod<"Convert to LinearLayout.",
610601 "LinearLayout",
611602 "toLinearLayout",
@@ -671,8 +662,6 @@ L(T) = [ {0,8} , {1,9} , {2,10}, {3,11}, {0,8} , {1, 9} , {2, 10}, {3, 11},
671662 SmallVector<unsigned> getCTAsPerCGA() const;
672663 SmallVector<unsigned> getCTAOrder() const;
673664 SmallVector<unsigned> getCTASplitNum() const;
674- SmallVector<unsigned> getWarpsPerCTA() const;
675- SmallVector<unsigned> getThreadsPerWarp() const;
676665
677666 LinearLayout toLinearLayout(ArrayRef<int64_t> shape) const;
678667
@@ -725,6 +714,8 @@ def LinearEncodingAttr : DistributedEncoding<"LinearEncoding", "linear_encoding"
725714 // If skipBroadcast is false, we count a base zero
726715 SmallVector<unsigned> basesPerDim(StringAttr dimName,
727716 bool skipBroadcast = true) const;
717+ SmallVector<unsigned> getThreadsPerWarp() const;
718+ SmallVector<unsigned> getWarpsPerCTA() const;
728719
729720 // [FIXME LL] Supports legacy behaviour. We should remove these functions
730721 SmallVector<unsigned> getShapePerCTATile() const;
834825 let parameters = (
835826 ins
836827 ArrayRefParameter<"unsigned">:$sizePerThread,
837- ArrayRefParameter<"unsigned">:$threadsPerWarp__ ,
838- ArrayRefParameter<"unsigned">:$warpsPerCTA__ ,
828+ ArrayRefParameter<"unsigned">:$threadsPerWarp ,
829+ ArrayRefParameter<"unsigned">:$warpsPerCTA ,
839830 ArrayRefParameter<"unsigned">:$order, // the fastest-changing axis first
840831
841832 // CTALayout is optional in the textual IR. If omitted, we infer it to be a
@@ -1039,7 +1030,7 @@ V [ 0,4,8...60 1,5...61 2,6...62 3,7...63 ] [ 128,132...188 129,
10391030 ins
10401031 "unsigned": $versionMajor,
10411032 "unsigned": $versionMinor,
1042- ArrayRefParameter<"unsigned">:$warpsPerCTA__ ,
1033+ ArrayRefParameter<"unsigned">:$warpsPerCTA ,
10431034 "unsigned":$MDim,
10441035 "unsigned":$NDim,
10451036 "bool":$isTransposed,
@@ -1160,7 +1151,7 @@ Row |
11601151 ins
11611152 "unsigned": $version,
11621153 "bool":$isTransposed,
1163- ArrayRefParameter<"unsigned">:$warpsPerCTA__ ,
1154+ ArrayRefParameter<"unsigned">:$warpsPerCTA ,
11641155 "CTALayoutAttr":$CTALayout
11651156 );
11661157
@@ -1266,7 +1257,7 @@ For example, the matrix L corresponding to blockTileSize=[32,16] is:
12661257 ins
12671258 "unsigned":$versionMajor,
12681259 "unsigned":$versionMinor,
1269- ArrayRefParameter<"unsigned">:$warpsPerCTA__ ,
1260+ ArrayRefParameter<"unsigned">:$warpsPerCTA ,
12701261 "CTALayoutAttr":$CTALayout,
12711262 ArrayRefParameter<"unsigned">:$instrShape
12721263 );
0 commit comments