tilelang.irΒΆ

ClassesΒΆ

Fill

AtomicAdd

Copy

Im2ColOp

GemmWarpPolicy

GemmSPWarpPolicy

FinalizeReducerOp

ParallelOp

ReduceOp

CumSumOp

CumMaxOp

RegionOp

ReduceType

Tcgen05Meta

One tcgen05.ld/st data-movement shape: the per-warp single-issue

Tcgen05CopyPlan

The tiled copy of one TMEM tile built by tl.ExpandTcgen05Layout.

FunctionsΒΆ

make_span(file, line)

Create a span covering a whole source line.

set_stmt_span(stmt, span)

get_stmt_span(stmt)

set_buffer_span(buffer, span)

get_buffer_span(buffer)

set_prim_func_span(func, span)

get_prim_func_span(func)

span_to_location(span)

Convert a span to a (file, line) tuple, or None when undefined.

span_coverage(func)

Statistics on span injection coverage for a PrimFunc.

Module ContentsΒΆ

class tilelang.ir.FillΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

class tilelang.ir.AtomicAddΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

class tilelang.ir.CopyΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

class tilelang.ir.Im2ColOpΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

class tilelang.ir.GemmWarpPolicyΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

policy_type: intΒΆ
m_warp: intΒΆ
n_warp: intΒΆ
compute_warp_partition(M, N, block_size, target, gemm_inst)ΒΆ
Parameters:
  • M (int)

  • N (int)

  • block_size (int)

  • target (tvm.target.Target)

  • gemm_inst (str)

class tilelang.ir.GemmSPWarpPolicyΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

policy_type: intΒΆ
m_warp: intΒΆ
n_warp: intΒΆ
compute_warp_partition(M, N, block_size, target, gemm_inst)ΒΆ
Parameters:
  • M (int)

  • N (int)

  • block_size (int)

  • target (tvm.target.Target)

  • gemm_inst (str)

class tilelang.ir.FinalizeReducerOpΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

class tilelang.ir.ParallelOpΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

class tilelang.ir.ReduceOpΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

class tilelang.ir.CumSumOpΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

class tilelang.ir.CumMaxOpΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

class tilelang.ir.RegionOpΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

class tilelang.ir.ReduceTypeΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

tilelang.ir.make_span(file, line)ΒΆ

Create a span covering a whole source line.

Parameters:
  • file (str)

  • line (int)

Return type:

tvm.ir.base.Span

tilelang.ir.set_stmt_span(stmt, span)ΒΆ
Parameters:

span (tvm.ir.base.Span)

Return type:

None

tilelang.ir.get_stmt_span(stmt)ΒΆ
Return type:

tvm.ir.base.Span | None

tilelang.ir.set_buffer_span(buffer, span)ΒΆ
Parameters:

span (tvm.ir.base.Span)

Return type:

None

tilelang.ir.get_buffer_span(buffer)ΒΆ
Return type:

tvm.ir.base.Span | None

tilelang.ir.set_prim_func_span(func, span)ΒΆ
Parameters:

span (tvm.ir.base.Span)

Return type:

None

tilelang.ir.get_prim_func_span(func)ΒΆ
Return type:

tvm.ir.base.Span | None

tilelang.ir.span_to_location(span)ΒΆ

Convert a span to a (file, line) tuple, or None when undefined.

Parameters:

span (tvm.ir.base.Span | None)

Return type:

tuple[str, int] | None

tilelang.ir.span_coverage(func)ΒΆ

Statistics on span injection coverage for a PrimFunc.

Returns {β€œstmts”: [with_span, total], β€œbuffers”: [with_span, total]}, where buffers cover both function parameters (buffer_map) and block- allocated buffers (SBlock.alloc_buffers, i.e. T.alloc_* sites). New nodes synthesized by passes legitimately have no span; this metric is meant for the freshly parsed IR (span injection validation).

Return type:

dict

class tilelang.ir.Tcgen05MetaΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

One tcgen05.ld/st data-movement shape: the per-warp single-issue CUTLASS TV atom plus the wrapper’s chaining limit.

intrinsics_name: strΒΆ
max_chunks: intΒΆ
class tilelang.ir.Tcgen05CopyPlanΒΆ

Bases: tvm.ir.base.Node, tvm.runtime.Scriptable

The tiled copy of one TMEM tile built by tl.ExpandTcgen05Layout.

num_chunks_each_wg: intΒΆ
num_issues: intΒΆ
vals_per_issue: intΒΆ