You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="sig-prename descclassname"><spanclass="pre">tilelang.utils.language.</span></span><spanclass="sig-name descname"><spanclass="pre">legalize_pairwise_extents</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">src_extents</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dst_extents</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#tilelang.utils.language.legalize_pairwise_extents" title="Link to this definition">¶</a></dt>
868
+
<dd><p>Right-align and broadcast two extent lists to be mutually compatible.</p>
869
+
<p>Early-exit rule:
870
+
- If the number of non-1 dimensions in <cite>src_extents</cite> equals that in <cite>dst_extents</cite>,</p>
871
+
<blockquote>
872
+
<div><p>no adjustment is made; the original extents are returned unchanged. This
873
+
preserves the per-dimension iteration mapping (one loop var per non-1 dim)
874
+
and avoids creating extra varying axes on either side.</p>
875
+
</div></blockquote>
876
+
<dlclass="simple">
877
+
<dt>Otherwise, for each pair of tail-aligned dimensions (x, y):</dt><dd><ulclass="simple">
878
+
<li><p>if x == y: keep both</p></li>
879
+
<li><p>elif x == 1: set x = y</p></li>
880
+
<li><p>elif y == 1: set y = x</p></li>
881
+
<li><p>else: promote both to tir.max(x, y) to handle dynamic-vs-static safely</p></li>
882
+
</ul>
883
+
</dd>
884
+
</dl>
885
+
<p>Leading unmatched dimensions are kept as-is.</p>
886
+
<p>Returns a tuple of new lists (src_new, dst_new).</p>
<spanclass="sig-prename descclassname"><spanclass="pre">tilelang.utils.language.</span></span><spanclass="sig-name descname"><spanclass="pre">is_full_region</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">buffer_region</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#tilelang.utils.language.is_full_region" title="Link to this definition">¶</a></dt>
@@ -956,6 +994,7 @@ <h2>Module Contents<a class="headerlink" href="#module-contents" title="Link to
Copy file name to clipboardExpand all lines: genindex.html
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3396,6 +3396,8 @@ <h2>L</h2>
3396
3396
<li><a href="autoapi/tilelang/intrinsics/mma_layout/index.html#tilelang.intrinsics.mma_layout.ldmatrix_trans_32x8_to_shared_16x16_layout">ldmatrix_trans_32x8_to_shared_16x16_layout() (in module tilelang.intrinsics.mma_layout)</a>
<li><a href="autoapi/tilelang/utils/language/index.html#tilelang.utils.language.legalize_pairwise_extents">legalize_pairwise_extents() (in module tilelang.utils.language)</a>
3399
3401
</li>
3400
3402
<li><a href="autoapi/tilelang/transform/index.html#tilelang.transform.LegalizeNegativeIndex">LegalizeNegativeIndex() (in module tilelang.transform)</a>
0 commit comments