You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2026/10/17 01:41:11 UTC
(tvm) branch tirx-standalone-root updated (3608afc380 -> 2453362017)
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a change to branch tirx-standalone-root
in repository https://gitbox.apache.org/repos/asf/tvm.git
discard 3608afc380 [DOCS] Add standalone TIRx Python API reference
new 2453362017 [DOCS] Add standalone TIRx Python API reference
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (3608afc380)
\
N -- N -- N refs/heads/tirx-standalone-root (2453362017)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
docs/reference/python/backend-configuration.rst | 28 +-
.../python/backend.adreno.rst} | 20 +-
...ackend-configuration.rst => backend.config.rst} | 27 +-
.../python/backend.cuda.axis.rst} | 20 +-
.../{index.rst => backend.cuda.backend_config.rst} | 33 +-
.../python/{index.rst => backend.cuda.codegen.rst} | 41 +-
.../{index.rst => backend.cuda.compiler.rst} | 38 +-
.../python/{index.rst => backend.cuda.iket.rst} | 42 +-
.../python/{index.rst => backend.cuda.lang.rst} | 39 +-
.../python/{index.rst => backend.cuda.launch.rst} | 35 +-
.../python/{index.rst => backend.cuda.layout.rst} | 42 +-
docs/reference/python/backend.cuda.op.rst | 153 +++++
.../python/{index.rst => backend.cuda.ptx.rst} | 39 +-
...{backend-configuration.rst => backend.cuda.rst} | 55 +-
.../{index.rst => backend.cuda.script.iket.rst} | 38 +-
docs/reference/python/backend.cuda.script.rst | 139 +++++
.../{index.rst => backend.cuda.script.tcgen05.rst} | 34 +-
.../{index.rst => backend.cuda.script.tile.rst} | 33 +-
.../{index.rst => backend.cuda.script.wgmma.rst} | 33 +-
.../python/backend.cuda.thread_scope.rst} | 20 +-
...tion.rst => backend.cuda.tile.exec_context.rst} | 41 +-
.../python/backend.cuda.tile.rst} | 16 +-
.../{index.rst => backend.cuda.transforms.rst} | 33 +-
.../{index.rst => backend.hexagon.linker.rst} | 32 +-
.../python/{index.rst => backend.hexagon.rst} | 32 +-
...kend-configuration.rst => backend.metal.op.rst} | 45 +-
.../python/{index.rst => backend.metal.rst} | 35 +-
.../python/backend.metal.script.rst} | 20 +-
.../python/{index.rst => backend.opencl.rst} | 35 +-
.../{index.rst => backend.opencl.script.rst} | 32 +-
.../python/backend.rocm.rst} | 20 +-
docs/reference/python/{index.rst => backend.rst} | 42 +-
.../python/backend.trn.axis.rst} | 20 +-
.../python/backend.trn.layout.rst} | 20 +-
...ackend-configuration.rst => backend.trn.op.rst} | 50 +-
.../python/backend.trn.pipeline.rst} | 21 +-
.../python/{index.rst => backend.trn.rst} | 40 +-
.../python/backend.trn.script.rst} | 20 +-
.../python/backend.trn.thread_scope.rst} | 20 +-
.../{index.rst => backend.trn.transform.rst} | 40 +-
.../python/backend.vulkan.rst} | 20 +-
.../python/backend.webgpu.rst} | 20 +-
.../python/{index.rst => codegen.llvm.rst} | 41 +-
docs/reference/python/{index.rst => codegen.rst} | 42 +-
docs/{index.rst => reference/python/config.rst} | 20 +-
docs/reference/python/cuda-script-namespaces.rst | 220 +------
docs/reference/python/cuda.rst | 376 +----------
docs/reference/python/index.rst | 92 ++-
.../{backend-configuration.rst => ir.base.rst} | 59 +-
.../python/ir.json_compact.rst} | 22 +-
docs/reference/python/ir.prim.rst | 159 +++++
docs/reference/python/ir.rst | 268 ++++----
.../{index.rst => ir.transform.instrument.rst} | 34 +-
...{backend-configuration.rst => ir.transform.rst} | 46 +-
.../python/ir.unique_name_supply.rst} | 20 +-
docs/{index.rst => reference/python/libinfo.rst} | 23 +-
docs/reference/python/other-backends.rst | 197 +-----
.../python/runtime-and-top-level-utilities.rst | 85 +--
.../python/{index.rst => runtime.memory_scope.rst} | 34 +-
.../{backend-configuration.rst => runtime.rst} | 64 +-
docs/reference/python/script-and-printer.rst | 685 +--------------------
...nfiguration.rst => script.ir_builder.frame.rst} | 51 +-
docs/reference/python/script.ir_builder.ir.rst | 52 ++
docs/reference/python/script.ir_builder.rst | 129 ++++
docs/reference/python/script.ir_builder.stmt.rst | 67 ++
.../python/script.ir_builder.tracing.rst} | 20 +-
...dex.rst => script.parser.protocol_registry.rst} | 31 +-
...backend-configuration.rst => script.parser.rst} | 48 +-
...nd-configuration.rst => script.printer.doc.rst} | 62 +-
.../python/{index.rst => script.printer.rst} | 32 +-
docs/reference/python/{index.rst => script.rst} | 35 +-
.../reference/python/{index.rst => support.cc.rst} | 36 +-
.../python/support.clang.rst} | 21 +-
.../python/support.ndk.rst} | 22 +-
...{backend-configuration.rst => support.nvcc.rst} | 48 +-
.../python/{index.rst => support.popen_pool.rst} | 41 +-
.../python/{index.rst => support.rocm.rst} | 37 +-
docs/reference/python/support.rst | 171 ++---
.../python/support.tar.rst} | 22 +-
.../python/{index.rst => support.utils.rst} | 43 +-
.../python/support.xcode.rst} | 23 +-
...{backend-configuration.rst => sym.analyzer.rst} | 62 +-
.../{backend-configuration.rst => sym.int_set.rst} | 58 +-
docs/reference/python/sym.iter_affine_map.rst | 70 +++
.../python/{index.rst => sym.pattern.rst} | 36 +-
.../python/{backend-configuration.rst => sym.rst} | 67 +-
docs/{index.rst => reference/python/sym.utils.rst} | 20 +-
docs/reference/python/symbolic-analysis.rst | 97 +--
.../python/target-and-code-generation.rst | 72 +--
.../python/{index.rst => target.detect_target.rst} | 31 +-
docs/reference/python/{index.rst => target.rst} | 45 +-
.../reference/python/{index.rst => target.tag.rst} | 36 +-
...backend-configuration.rst => target.target.rst} | 48 +-
.../{backend-configuration.rst => testing.env.rst} | 62 +-
.../python/{index.rst => testing.locking.rst} | 34 +-
docs/reference/python/testing.rst | 96 +--
.../python/{index.rst => testing.utils.rst} | 48 +-
.../python/tirx.analysis.rst} | 22 +-
.../reference/python/{index.rst => tirx.bench.rst} | 44 +-
...iguration.rst => tirx.compilation_pipeline.rst} | 54 +-
.../python/{index.rst => tirx.layout.rst} | 44 +-
docs/reference/python/tirx.op.rst | 151 +++++
docs/reference/python/tirx.rst | 633 +++++++++----------
... => tirx.script.ir_builder.external_kernel.rst} | 39 +-
.../{index.rst => tirx.script.ir_builder.rst} | 25 +-
.../python/tirx.script.ir_builder.triton.rst} | 20 +-
.../python/{index.rst => tirx.script.jit.rst} | 40 +-
...ndex.rst => tirx.script.nvshmem.getmem_nbi.rst} | 33 +-
...ndex.rst => tirx.script.nvshmem.putmem_nbi.rst} | 33 +-
...t => tirx.script.nvshmem.putmem_signal_nbi.rst} | 33 +-
...d-configuration.rst => tirx.script.nvshmem.rst} | 58 +-
docs/reference/python/tirx.script.ptx.rst | 136 ++++
.../{index.rst => tirx.script.ptx_legacy.rst} | 33 +-
docs/reference/python/tirx.script.rst | 629 +++++++++++++++++++
...nd-configuration.rst => tirx.tile.dispatch.rst} | 47 +-
...configuration.rst => tirx.tile.instruction.rst} | 45 +-
docs/reference/python/{index.rst => tirx.tile.rst} | 45 +-
...ckend-configuration.rst => tirx.tile.views.rst} | 72 ++-
...ackend-configuration.rst => tirx.transform.rst} | 66 +-
python/tvm_tirx/__init__.py | 2 +-
python/tvm_tirx/backend/cuda/ptx/__init__.py | 2 +-
python/tvm_tirx/backend/cuda/tile/__init__.py | 1 +
python/tvm_tirx/codegen/__init__.py | 2 +-
python/tvm_tirx/ir/__init__.py | 2 +-
python/tvm_tirx/ir/base.py | 2 +-
python/tvm_tirx/ir/transform/__init__.py | 2 +-
python/tvm_tirx/runtime/__init__.py | 2 +-
python/tvm_tirx/script/ir_builder/frame.py | 2 +-
python/tvm_tirx/script/ir_builder/ir.py | 2 +-
python/tvm_tirx/sym/analyzer.py | 2 +-
python/tvm_tirx/sym/int_set.py | 2 +-
python/tvm_tirx/sym/pattern.py | 2 +-
python/tvm_tirx/target/detect_target.py | 2 +-
python/tvm_tirx/testing/__init__.py | 2 +-
python/tvm_tirx/tirx/__init__.py | 2 +-
python/tvm_tirx/tirx/analysis/__init__.py | 2 +-
python/tvm_tirx/tirx/bench.py | 2 +
python/tvm_tirx/tirx/layout.py | 2 +-
python/tvm_tirx/tirx/tile/__init__.py | 2 +
python/tvm_tirx/tirx/tile/views.py | 2 +-
python/tvm_tirx/tirx/transform/__init__.py | 2 +-
141 files changed, 4297 insertions(+), 3971 deletions(-)
copy docs/{index.rst => reference/python/backend.adreno.rst} (77%)
copy docs/reference/python/{backend-configuration.rst => backend.config.rst} (80%)
copy docs/{index.rst => reference/python/backend.cuda.axis.rst} (77%)
copy docs/reference/python/{index.rst => backend.cuda.backend_config.rst} (70%)
copy docs/reference/python/{index.rst => backend.cuda.codegen.rst} (69%)
copy docs/reference/python/{index.rst => backend.cuda.compiler.rst} (72%)
copy docs/reference/python/{index.rst => backend.cuda.iket.rst} (68%)
copy docs/reference/python/{index.rst => backend.cuda.lang.rst} (67%)
copy docs/reference/python/{index.rst => backend.cuda.launch.rst} (71%)
copy docs/reference/python/{index.rst => backend.cuda.layout.rst} (67%)
create mode 100644 docs/reference/python/backend.cuda.op.rst
copy docs/reference/python/{index.rst => backend.cuda.ptx.rst} (72%)
copy docs/reference/python/{backend-configuration.rst => backend.cuda.rst} (59%)
copy docs/reference/python/{index.rst => backend.cuda.script.iket.rst} (68%)
create mode 100644 docs/reference/python/backend.cuda.script.rst
copy docs/reference/python/{index.rst => backend.cuda.script.tcgen05.rst} (68%)
copy docs/reference/python/{index.rst => backend.cuda.script.tile.rst} (73%)
copy docs/reference/python/{index.rst => backend.cuda.script.wgmma.rst} (71%)
copy docs/{index.rst => reference/python/backend.cuda.thread_scope.rst} (75%)
copy docs/reference/python/{backend-configuration.rst => backend.cuda.tile.exec_context.rst} (66%)
copy docs/{index.rst => reference/python/backend.cuda.tile.rst} (79%)
copy docs/reference/python/{index.rst => backend.cuda.transforms.rst} (72%)
copy docs/reference/python/{index.rst => backend.hexagon.linker.rst} (73%)
copy docs/reference/python/{index.rst => backend.hexagon.rst} (76%)
copy docs/reference/python/{backend-configuration.rst => backend.metal.op.rst} (63%)
copy docs/reference/python/{index.rst => backend.metal.rst} (72%)
copy docs/{index.rst => reference/python/backend.metal.script.rst} (76%)
copy docs/reference/python/{index.rst => backend.opencl.rst} (72%)
copy docs/reference/python/{index.rst => backend.opencl.script.rst} (73%)
copy docs/{index.rst => reference/python/backend.rocm.rst} (78%)
copy docs/reference/python/{index.rst => backend.rst} (69%)
copy docs/{index.rst => reference/python/backend.trn.axis.rst} (77%)
copy docs/{index.rst => reference/python/backend.trn.layout.rst} (76%)
copy docs/reference/python/{backend-configuration.rst => backend.trn.op.rst} (63%)
copy docs/{index.rst => reference/python/backend.trn.pipeline.rst} (74%)
copy docs/reference/python/{index.rst => backend.trn.rst} (66%)
copy docs/{index.rst => reference/python/backend.trn.script.rst} (77%)
copy docs/{index.rst => reference/python/backend.trn.thread_scope.rst} (75%)
copy docs/reference/python/{index.rst => backend.trn.transform.rst} (69%)
copy docs/{index.rst => reference/python/backend.vulkan.rst} (77%)
copy docs/{index.rst => reference/python/backend.webgpu.rst} (77%)
copy docs/reference/python/{index.rst => codegen.llvm.rst} (66%)
copy docs/reference/python/{index.rst => codegen.rst} (71%)
copy docs/{index.rst => reference/python/config.rst} (80%)
copy docs/reference/python/{backend-configuration.rst => ir.base.rst} (53%)
copy docs/{index.rst => reference/python/ir.json_compact.rst} (75%)
create mode 100644 docs/reference/python/ir.prim.rst
copy docs/reference/python/{index.rst => ir.transform.instrument.rst} (72%)
copy docs/reference/python/{backend-configuration.rst => ir.transform.rst} (68%)
copy docs/{index.rst => reference/python/ir.unique_name_supply.rst} (76%)
copy docs/{index.rst => reference/python/libinfo.rst} (75%)
copy docs/reference/python/{index.rst => runtime.memory_scope.rst} (71%)
copy docs/reference/python/{backend-configuration.rst => runtime.rst} (64%)
copy docs/reference/python/{backend-configuration.rst => script.ir_builder.frame.rst} (63%)
create mode 100644 docs/reference/python/script.ir_builder.ir.rst
create mode 100644 docs/reference/python/script.ir_builder.rst
create mode 100644 docs/reference/python/script.ir_builder.stmt.rst
copy docs/{index.rst => reference/python/script.ir_builder.tracing.rst} (75%)
copy docs/reference/python/{index.rst => script.parser.protocol_registry.rst} (72%)
copy docs/reference/python/{backend-configuration.rst => script.parser.rst} (61%)
copy docs/reference/python/{backend-configuration.rst => script.printer.doc.rst} (61%)
copy docs/reference/python/{index.rst => script.printer.rst} (76%)
copy docs/reference/python/{index.rst => script.rst} (74%)
copy docs/reference/python/{index.rst => support.cc.rst} (71%)
copy docs/{index.rst => reference/python/support.clang.rst} (77%)
copy docs/{index.rst => reference/python/support.ndk.rst} (75%)
copy docs/reference/python/{backend-configuration.rst => support.nvcc.rst} (64%)
copy docs/reference/python/{index.rst => support.popen_pool.rst} (69%)
copy docs/reference/python/{index.rst => support.rocm.rst} (70%)
copy docs/{index.rst => reference/python/support.tar.rst} (76%)
copy docs/reference/python/{index.rst => support.utils.rst} (69%)
copy docs/{index.rst => reference/python/support.xcode.rst} (75%)
copy docs/reference/python/{backend-configuration.rst => sym.analyzer.rst} (54%)
copy docs/reference/python/{backend-configuration.rst => sym.int_set.rst} (52%)
create mode 100644 docs/reference/python/sym.iter_affine_map.rst
copy docs/reference/python/{index.rst => sym.pattern.rst} (68%)
copy docs/reference/python/{backend-configuration.rst => sym.rst} (54%)
copy docs/{index.rst => reference/python/sym.utils.rst} (79%)
copy docs/reference/python/{index.rst => target.detect_target.rst} (73%)
copy docs/reference/python/{index.rst => target.rst} (69%)
copy docs/reference/python/{index.rst => target.tag.rst} (70%)
copy docs/reference/python/{backend-configuration.rst => target.target.rst} (60%)
copy docs/reference/python/{backend-configuration.rst => testing.env.rst} (58%)
copy docs/reference/python/{index.rst => testing.locking.rst} (72%)
copy docs/reference/python/{index.rst => testing.utils.rst} (50%)
copy docs/{index.rst => reference/python/tirx.analysis.rst} (75%)
copy docs/reference/python/{index.rst => tirx.bench.rst} (68%)
copy docs/reference/python/{backend-configuration.rst => tirx.compilation_pipeline.rst} (54%)
copy docs/reference/python/{index.rst => tirx.layout.rst} (64%)
create mode 100644 docs/reference/python/tirx.op.rst
copy docs/reference/python/{index.rst => tirx.script.ir_builder.external_kernel.rst} (67%)
copy docs/reference/python/{index.rst => tirx.script.ir_builder.rst} (76%)
copy docs/{index.rst => reference/python/tirx.script.ir_builder.triton.rst} (74%)
copy docs/reference/python/{index.rst => tirx.script.jit.rst} (68%)
copy docs/reference/python/{index.rst => tirx.script.nvshmem.getmem_nbi.rst} (72%)
copy docs/reference/python/{index.rst => tirx.script.nvshmem.putmem_nbi.rst} (72%)
copy docs/reference/python/{index.rst => tirx.script.nvshmem.putmem_signal_nbi.rst} (71%)
copy docs/reference/python/{backend-configuration.rst => tirx.script.nvshmem.rst} (62%)
create mode 100644 docs/reference/python/tirx.script.ptx.rst
copy docs/reference/python/{index.rst => tirx.script.ptx_legacy.rst} (73%)
create mode 100644 docs/reference/python/tirx.script.rst
copy docs/reference/python/{backend-configuration.rst => tirx.tile.dispatch.rst} (62%)
copy docs/reference/python/{backend-configuration.rst => tirx.tile.instruction.rst} (63%)
copy docs/reference/python/{index.rst => tirx.tile.rst} (68%)
copy docs/reference/python/{backend-configuration.rst => tirx.tile.views.rst} (58%)
copy docs/reference/python/{backend-configuration.rst => tirx.transform.rst} (52%)
(tvm) 01/01: [DOCS] Add standalone TIRx Python API reference
Posted by tq...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch tirx-standalone-root
in repository https://gitbox.apache.org/repos/asf/tvm.git
commit 2453362017e58d3bc8b037894786523cc018abd7
Author: tqchen <ti...@gmail.com>
AuthorDate: Fri Oct 16 02:33:56 2026 +0000
[DOCS] Add standalone TIRx Python API reference
---
.../cuda/tile/__init__.py => docs/.gitignore | 3 +
docs/_templates/autosummary/callable.rst | 20 +
docs/_templates/autosummary/class.rst | 32 ++
docs/conf.py | 115 ++++
.../cuda/tile/__init__.py => docs/htaccess.in | 4 +
docs/index.rst | 28 +
docs/reference/python/backend-configuration.rst | 31 +
docs/reference/python/backend.adreno.rst | 32 ++
docs/reference/python/backend.config.rst | 38 ++
docs/reference/python/backend.cuda.axis.rst | 32 ++
.../python/backend.cuda.backend_config.rst | 35 ++
docs/reference/python/backend.cuda.codegen.rst | 43 ++
docs/reference/python/backend.cuda.compiler.rst | 40 ++
docs/reference/python/backend.cuda.iket.rst | 44 ++
docs/reference/python/backend.cuda.lang.rst | 41 ++
docs/reference/python/backend.cuda.launch.rst | 37 ++
docs/reference/python/backend.cuda.layout.rst | 44 ++
docs/reference/python/backend.cuda.op.rst | 153 +++++
docs/reference/python/backend.cuda.ptx.rst | 41 ++
docs/reference/python/backend.cuda.rst | 64 +++
docs/reference/python/backend.cuda.script.iket.rst | 40 ++
docs/reference/python/backend.cuda.script.rst | 139 +++++
.../python/backend.cuda.script.tcgen05.rst | 36 ++
docs/reference/python/backend.cuda.script.tile.rst | 35 ++
.../reference/python/backend.cuda.script.wgmma.rst | 35 ++
.../reference/python/backend.cuda.thread_scope.rst | 32 ++
.../python/backend.cuda.tile.exec_context.rst | 48 ++
docs/reference/python/backend.cuda.tile.rst | 32 ++
docs/reference/python/backend.cuda.transforms.rst | 35 ++
docs/reference/python/backend.hexagon.linker.rst | 34 ++
docs/reference/python/backend.hexagon.rst | 40 ++
docs/reference/python/backend.metal.op.rst | 42 ++
docs/reference/python/backend.metal.rst | 43 ++
docs/reference/python/backend.metal.script.rst | 32 ++
docs/reference/python/backend.opencl.rst | 43 ++
docs/reference/python/backend.opencl.script.rst | 34 ++
docs/reference/python/backend.rocm.rst | 32 ++
docs/reference/python/backend.rst | 50 ++
docs/reference/python/backend.trn.axis.rst | 32 ++
docs/reference/python/backend.trn.layout.rst | 32 ++
docs/reference/python/backend.trn.op.rst | 47 ++
docs/reference/python/backend.trn.pipeline.rst | 33 ++
docs/reference/python/backend.trn.rst | 48 ++
docs/reference/python/backend.trn.script.rst | 32 ++
docs/reference/python/backend.trn.thread_scope.rst | 32 ++
docs/reference/python/backend.trn.transform.rst | 42 ++
docs/reference/python/backend.vulkan.rst | 32 ++
docs/reference/python/backend.webgpu.rst | 32 ++
docs/reference/python/codegen.llvm.rst | 43 ++
docs/reference/python/codegen.rst | 50 ++
docs/reference/python/config.rst | 32 ++
docs/reference/python/cuda-script-namespaces.rst | 71 +++
docs/reference/python/cuda.rst | 96 ++++
docs/reference/python/index.rst | 108 ++++
docs/reference/python/ir.base.rst | 62 ++
docs/reference/python/ir.json_compact.rst | 34 ++
docs/reference/python/ir.prim.rst | 159 ++++++
docs/reference/python/ir.rst | 265 +++++++++
docs/reference/python/ir.transform.instrument.rst | 36 ++
docs/reference/python/ir.transform.rst | 55 ++
docs/reference/python/ir.unique_name_supply.rst | 32 ++
docs/reference/python/libinfo.rst | 35 ++
docs/reference/python/other-backends.rst | 116 ++++
.../python/runtime-and-top-level-utilities.rst | 46 ++
docs/reference/python/runtime.memory_scope.rst | 36 ++
docs/reference/python/runtime.rst | 71 +++
docs/reference/python/script-and-printer.rst | 91 +++
docs/reference/python/script.ir_builder.frame.rst | 48 ++
docs/reference/python/script.ir_builder.ir.rst | 52 ++
docs/reference/python/script.ir_builder.rst | 129 +++++
docs/reference/python/script.ir_builder.stmt.rst | 67 +++
.../reference/python/script.ir_builder.tracing.rst | 32 ++
.../python/script.parser.protocol_registry.rst | 33 ++
docs/reference/python/script.parser.rst | 55 ++
docs/reference/python/script.printer.doc.rst | 59 ++
docs/reference/python/script.printer.rst | 40 ++
docs/reference/python/script.rst | 43 ++
docs/reference/python/support.cc.rst | 38 ++
docs/reference/python/support.clang.rst | 33 ++
docs/reference/python/support.ndk.rst | 34 ++
docs/reference/python/support.nvcc.rst | 47 ++
docs/reference/python/support.popen_pool.rst | 43 ++
docs/reference/python/support.rocm.rst | 39 ++
docs/reference/python/support.rst | 106 ++++
docs/reference/python/support.tar.rst | 34 ++
docs/reference/python/support.utils.rst | 45 ++
docs/reference/python/support.xcode.rst | 35 ++
docs/reference/python/sym.analyzer.rst | 61 ++
docs/reference/python/sym.int_set.rst | 61 ++
docs/reference/python/sym.iter_affine_map.rst | 70 +++
docs/reference/python/sym.pattern.rst | 38 ++
docs/reference/python/sym.rst | 74 +++
docs/reference/python/sym.utils.rst | 32 ++
docs/reference/python/symbolic-analysis.rst | 51 ++
.../python/target-and-code-generation.rst | 51 ++
docs/reference/python/target.detect_target.rst | 33 ++
docs/reference/python/target.rst | 53 ++
docs/reference/python/target.tag.rst | 38 ++
docs/reference/python/target.target.rst | 55 ++
docs/reference/python/testing.env.rst | 59 ++
docs/reference/python/testing.locking.rst | 36 ++
docs/reference/python/testing.rst | 74 +++
docs/reference/python/testing.utils.rst | 50 ++
docs/reference/python/tirx.analysis.rst | 34 ++
docs/reference/python/tirx.bench.rst | 46 ++
.../reference/python/tirx.compilation_pipeline.rst | 51 ++
docs/reference/python/tirx.layout.rst | 46 ++
docs/reference/python/tirx.op.rst | 151 +++++
docs/reference/python/tirx.rst | 379 +++++++++++++
.../tirx.script.ir_builder.external_kernel.rst | 41 ++
docs/reference/python/tirx.script.ir_builder.rst | 33 ++
.../python/tirx.script.ir_builder.triton.rst | 32 ++
docs/reference/python/tirx.script.jit.rst | 42 ++
.../python/tirx.script.nvshmem.getmem_nbi.rst | 35 ++
.../python/tirx.script.nvshmem.putmem_nbi.rst | 35 ++
.../tirx.script.nvshmem.putmem_signal_nbi.rst | 35 ++
docs/reference/python/tirx.script.nvshmem.rst | 53 ++
docs/reference/python/tirx.script.ptx.rst | 136 +++++
docs/reference/python/tirx.script.ptx_legacy.rst | 35 ++
docs/reference/python/tirx.script.rst | 629 +++++++++++++++++++++
docs/reference/python/tirx.tile.dispatch.rst | 58 ++
docs/reference/python/tirx.tile.instruction.rst | 48 ++
docs/reference/python/tirx.tile.rst | 53 ++
docs/reference/python/tirx.tile.views.rst | 69 +++
docs/reference/python/tirx.transform.rst | 73 +++
.../cuda/tile/__init__.py => docs/requirements.txt | 5 +
python/tvm_tirx/__init__.py | 2 +-
.../tvm_tirx/backend/cuda/lang/tile_scheduler.py | 150 ++---
python/tvm_tirx/backend/cuda/ptx/__init__.py | 2 +-
python/tvm_tirx/backend/cuda/tile/__init__.py | 1 +
python/tvm_tirx/codegen/__init__.py | 2 +-
python/tvm_tirx/ir/__init__.py | 2 +-
python/tvm_tirx/ir/base.py | 2 +-
python/tvm_tirx/ir/transform/__init__.py | 2 +-
python/tvm_tirx/runtime/__init__.py | 2 +-
python/tvm_tirx/script/ir_builder/frame.py | 2 +-
python/tvm_tirx/script/ir_builder/ir.py | 2 +-
python/tvm_tirx/sym/analyzer.py | 2 +-
python/tvm_tirx/sym/int_set.py | 2 +-
python/tvm_tirx/sym/pattern.py | 2 +-
python/tvm_tirx/target/detect_target.py | 2 +-
python/tvm_tirx/testing/__init__.py | 2 +-
python/tvm_tirx/tirx/__init__.py | 2 +-
python/tvm_tirx/tirx/analysis/__init__.py | 2 +-
python/tvm_tirx/tirx/bench.py | 2 +
python/tvm_tirx/tirx/layout.py | 2 +-
python/tvm_tirx/tirx/script/ir_builder/triton.py | 7 +-
python/tvm_tirx/tirx/tile/__init__.py | 2 +
python/tvm_tirx/tirx/tile/views.py | 2 +-
python/tvm_tirx/tirx/transform/__init__.py | 2 +-
150 files changed, 7534 insertions(+), 92 deletions(-)
diff --git a/python/tvm_tirx/backend/cuda/tile/__init__.py b/docs/.gitignore
similarity index 95%
copy from python/tvm_tirx/backend/cuda/tile/__init__.py
copy to docs/.gitignore
index 13a83393a9..fabfa51909 100644
--- a/python/tvm_tirx/backend/cuda/tile/__init__.py
+++ b/docs/.gitignore
@@ -14,3 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+
+_build/
+reference/python/generated/
diff --git a/docs/_templates/autosummary/callable.rst b/docs/_templates/autosummary/callable.rst
new file mode 100644
index 0000000000..becfdba148
--- /dev/null
+++ b/docs/_templates/autosummary/callable.rst
@@ -0,0 +1,20 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+{{ fullname | escape | underline }}
+
+.. autofunction:: {{ fullname }}
diff --git a/docs/_templates/autosummary/class.rst b/docs/_templates/autosummary/class.rst
new file mode 100644
index 0000000000..a77c1fc00f
--- /dev/null
+++ b/docs/_templates/autosummary/class.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+{{ fullname | escape | underline }}
+
+.. currentmodule:: {{ module }}
+
+{% if fullname == "tvm_tirx.ir.Var" %}
+.. raw:: html
+
+ <span id="tvm_tirx.tirx.Var"></span>
+{% endif %}
+
+.. autoclass:: {{ objname }}
+
+{% if fullname == "tvm_tirx.runtime.DataType" %}
+.. autoclass:: tvm_ffi.dtype
+{% endif %}
diff --git a/docs/conf.py b/docs/conf.py
new file mode 100644
index 0000000000..423e399505
--- /dev/null
+++ b/docs/conf.py
@@ -0,0 +1,115 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import os
+import shutil
+import sys
+from pathlib import Path
+
+from sphinx import addnodes
+
+os.environ["TVM_FFI_BUILD_DOCS"] = "1"
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "python"))
+
+project = "tvm-tirx"
+html_title = project
+author = "Apache TVM Community"
+extensions = [
+ "sphinx.ext.autodoc",
+ "sphinx.ext.autosummary",
+ "sphinx.ext.mathjax",
+ "sphinx.ext.napoleon",
+ "sphinx_reredirects",
+]
+autosummary_generate = True
+templates_path = ["_templates"]
+exclude_patterns = ["_build"]
+html_theme = "sphinx_book_theme"
+
+autodoc_default_options = {
+ "members": True,
+ "undoc-members": True,
+ "show-inheritance": True,
+ "inherited-members": False,
+ "member-order": "bysource",
+}
+autodoc_typehints = "description"
+autodoc_preserve_defaults = True
+napoleon_use_rtype = False
+napoleon_use_ivar = True
+napoleon_custom_sections = ["Usage"]
+
+# Match the FFI reference's optional PyTorch import convention.
+autodoc_mock_imports = ["torch"]
+
+html_theme_options = {
+ "repository_url": "https://github.com/apache/tvm",
+ "repository_branch": "tirx-standalone-root",
+ "path_to_docs": "docs",
+ "use_repository_button": True,
+ "show_toc_level": 2,
+ "max_navbar_depth": 2,
+ "collapse_navbar": True,
+}
+
+# Case-insensitive filesystems need distinct class/function stub names.
+autosummary_filename_map = {
+ "tvm_tirx.runtime.Device": "tvm_tirx.runtime.Device_class",
+ "tvm_tirx.runtime.device": "tvm_tirx.runtime.device_function",
+ "tvm_tirx.runtime.Tensor": "tvm_tirx.runtime.Tensor_class",
+ "tvm_tirx.runtime.tensor": "tvm_tirx.runtime.tensor_function",
+ "tvm_tirx.ir.prim.Div": "tvm_tirx.ir.prim.Div_class",
+ "tvm_tirx.ir.prim.div": "tvm_tirx.ir.prim.div_function",
+ "tvm_tirx.ir.prim.FloorDiv": "tvm_tirx.ir.prim.FloorDiv_class",
+ "tvm_tirx.ir.prim.floordiv": "tvm_tirx.ir.prim.floordiv_function",
+ "tvm_tirx.ir.prim.FloorMod": "tvm_tirx.ir.prim.FloorMod_class",
+ "tvm_tirx.ir.prim.floormod": "tvm_tirx.ir.prim.floormod_function",
+ "tvm_tirx.ir.prim.Max": "tvm_tirx.ir.prim.Max_class",
+ "tvm_tirx.ir.prim.max": "tvm_tirx.ir.prim.max_function",
+ "tvm_tirx.ir.prim.Min": "tvm_tirx.ir.prim.Min_class",
+ "tvm_tirx.ir.prim.min": "tvm_tirx.ir.prim.min_function",
+ "tvm_tirx.support.utils.FileLock": "tvm_tirx.support.utils.FileLock_class",
+ "tvm_tirx.support.utils.filelock": "tvm_tirx.support.utils.filelock_function",
+}
+
+
+redirects = {
+ "reference/python/generated/tvm_tirx.tirx.Var": "tvm_tirx.ir.Var.html",
+ "reference/python/generated/tvm_tirx.runtime.Tensor": "tvm_tirx.runtime.Tensor_class.html",
+}
+
+
+def _qualify_map_type_parameters(app, doctree):
+ """Keep generic Map parameters distinct from unrelated CUDA attributes."""
+ for ref in doctree.findall(addnodes.pending_xref):
+ if (
+ ref.get("py:module") == "tvm_tirx.ir"
+ and ref.get("py:class") == "Map"
+ and ref.get("reftarget") in {"K", "V"}
+ ):
+ ref["reftarget"] = "tvm_ffi.container." + ref["reftarget"]
+
+
+def _copy_apache_config(app, exception):
+ if exception is None and app.builder.format == "html":
+ shutil.copyfile(Path(__file__).with_name("htaccess.in"), Path(app.outdir) / ".htaccess")
+
+
+def setup(app):
+ app.connect("doctree-read", _qualify_map_type_parameters)
+ app.connect("build-finished", _copy_apache_config)
diff --git a/python/tvm_tirx/backend/cuda/tile/__init__.py b/docs/htaccess.in
similarity index 90%
copy from python/tvm_tirx/backend/cuda/tile/__init__.py
copy to docs/htaccess.in
index 13a83393a9..6400d8b820 100644
--- a/python/tvm_tirx/backend/cuda/tile/__init__.py
+++ b/docs/htaccess.in
@@ -14,3 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+
+<FilesMatch "\.Var\.(html|rst)$">
+ SetHandler default-handler
+</FilesMatch>
diff --git a/docs/index.rst b/docs/index.rst
new file mode 100644
index 0000000000..4d675c39c2
--- /dev/null
+++ b/docs/index.rst
@@ -0,0 +1,28 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm-tirx
+========
+
+Table of Contents
+-----------------
+
+.. toctree::
+ :maxdepth: 1
+ :caption: Reference
+
+ reference/python/index.rst
diff --git a/docs/reference/python/backend-configuration.rst b/docs/reference/python/backend-configuration.rst
new file mode 100644
index 0000000000..d14d20dd60
--- /dev/null
+++ b/docs/reference/python/backend-configuration.rst
@@ -0,0 +1,31 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+:orphan:
+
+Backend Configuration
+=====================
+
+tvm_tirx.backend
+----------------
+
+:doc:`tvm_tirx.backend <backend>`
+
+tvm_tirx.backend.config
+-----------------------
+
+:doc:`tvm_tirx.backend.config <backend.config>`
diff --git a/docs/reference/python/backend.adreno.rst b/docs/reference/python/backend.adreno.rst
new file mode 100644
index 0000000000..7ddff70422
--- /dev/null
+++ b/docs/reference/python/backend.adreno.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.adreno
+=======================
+
+.. automodule:: tvm_tirx.backend.adreno
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.adreno
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register_backend
diff --git a/docs/reference/python/backend.config.rst b/docs/reference/python/backend.config.rst
new file mode 100644
index 0000000000..740e752f53
--- /dev/null
+++ b/docs/reference/python/backend.config.rst
@@ -0,0 +1,38 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.config
+=======================
+
+.. automodule:: tvm_tirx.backend.config
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.config
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ add_backend_config_argument
+ argparse_backend_config
+ backend_config_json
+ copy_backend_config
+ merge_backend_configs
+ parse_backend_config
+ prepare_target
diff --git a/docs/reference/python/backend.cuda.axis.rst b/docs/reference/python/backend.cuda.axis.rst
new file mode 100644
index 0000000000..cab4906b25
--- /dev/null
+++ b/docs/reference/python/backend.cuda.axis.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.axis
+==========================
+
+.. automodule:: tvm_tirx.backend.cuda.axis
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.axis
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register
diff --git a/docs/reference/python/backend.cuda.backend_config.rst b/docs/reference/python/backend.cuda.backend_config.rst
new file mode 100644
index 0000000000..db8f08e8cc
--- /dev/null
+++ b/docs/reference/python/backend.cuda.backend_config.rst
@@ -0,0 +1,35 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.backend_config
+====================================
+
+.. automodule:: tvm_tirx.backend.cuda.backend_config
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.backend_config
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ compiler_options
+ default_backend_config
+ resolve_backend_config
+ validate_backend_config
diff --git a/docs/reference/python/backend.cuda.codegen.rst b/docs/reference/python/backend.cuda.codegen.rst
new file mode 100644
index 0000000000..796a2471b8
--- /dev/null
+++ b/docs/reference/python/backend.cuda.codegen.rst
@@ -0,0 +1,43 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.codegen
+=============================
+
+.. automodule:: tvm_tirx.backend.cuda.codegen
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.codegen
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ PTXDataType
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ device_intrinsic
+ get_codegen
+ header_generator
+ register_codegen
diff --git a/docs/reference/python/backend.cuda.compiler.rst b/docs/reference/python/backend.cuda.compiler.rst
new file mode 100644
index 0000000000..feea1ad458
--- /dev/null
+++ b/docs/reference/python/backend.cuda.compiler.rst
@@ -0,0 +1,40 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.compiler
+==============================
+
+.. automodule:: tvm_tirx.backend.cuda.compiler
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.compiler
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ CompilationResult
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ compile_source
diff --git a/docs/reference/python/backend.cuda.iket.rst b/docs/reference/python/backend.cuda.iket.rst
new file mode 100644
index 0000000000..9da8611675
--- /dev/null
+++ b/docs/reference/python/backend.cuda.iket.rst
@@ -0,0 +1,44 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.iket
+==========================
+
+.. automodule:: tvm_tirx.backend.cuda.iket
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.iket
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ IketProfileError
+ IketProfileResult
+ IketProfiler
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ profile
+ run
+ validate_official_environment
diff --git a/docs/reference/python/backend.cuda.lang.rst b/docs/reference/python/backend.cuda.lang.rst
new file mode 100644
index 0000000000..b9030e4964
--- /dev/null
+++ b/docs/reference/python/backend.cuda.lang.rst
@@ -0,0 +1,41 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.lang
+==========================
+
+.. automodule:: tvm_tirx.backend.cuda.lang
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.lang
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ BaseTileScheduler
+ ClusterPersistentScheduler2D
+ FlashAttentionLPTScheduler
+ FlashAttentionLinearScheduler
+ MBarrier
+ Pipeline
+ PipelineState
+ SMEMPool
+ TCGen05Bar
+ TMABar
diff --git a/docs/reference/python/backend.cuda.launch.rst b/docs/reference/python/backend.cuda.launch.rst
new file mode 100644
index 0000000000..245bb9e1d3
--- /dev/null
+++ b/docs/reference/python/backend.cuda.launch.rst
@@ -0,0 +1,37 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.launch
+============================
+
+.. automodule:: tvm_tirx.backend.cuda.launch
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.launch
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ AccessPolicyWindow
+ KernelAttributes
+ LaunchCompletionEvent
+ LaunchConfig
+ MemSyncDomainMap
+ ProgrammaticEvent
diff --git a/docs/reference/python/backend.cuda.layout.rst b/docs/reference/python/backend.cuda.layout.rst
new file mode 100644
index 0000000000..6bc2a2eb57
--- /dev/null
+++ b/docs/reference/python/backend.cuda.layout.rst
@@ -0,0 +1,44 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.layout
+============================
+
+.. automodule:: tvm_tirx.backend.cuda.layout
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.layout
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ SwizzleMode
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ mma_atom_layout
+ mma_atom_shape
+ mma_shared_layout
+ tmem_datapath_layout
+ tmem_mma_operand_layout
diff --git a/docs/reference/python/backend.cuda.op.rst b/docs/reference/python/backend.cuda.op.rst
new file mode 100644
index 0000000000..38ffe675fa
--- /dev/null
+++ b/docs/reference/python/backend.cuda.op.rst
@@ -0,0 +1,153 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.op
+========================
+
+.. automodule:: tvm_tirx.backend.cuda.op
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.op
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ TCGen05InstrDescriptorAttrs
+ TCGen05InstrDescriptorBlockScaledAttrs
+ TensorMapEncodeTiledAttr
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ any_sync
+ atomic_add
+ atomic_cas
+ ballot_sync
+ bfloat1622float2
+ bfloat162float
+ block_dim
+ block_idx
+ bmma_sync
+ clock64
+ cluster_cta_id
+ cluster_dim
+ cluster_id
+ cluster_sync
+ cta_max
+ cta_min
+ cta_pair_id
+ cta_reduce
+ cta_sum
+ cta_sync
+ cvta_generic_to_shared
+ decl_tmem
+ elect_sync
+ fadd2_rn
+ fdividef
+ ffs_u32
+ float22bfloat162_rn
+ float22bfloat162_rn_from_float2
+ float22half2
+ float2_x
+ float2_y
+ float8tohalf8
+ float_as_uint
+ fmul2_rn
+ fp8x4_e4m3_from_float4
+ func_call
+ get_tmem_addr
+ grid_dim
+ grid_sync
+ half2float
+ half8tofloat8
+ hmax2
+ hmin2
+ iket_mark
+ iket_official_event
+ iket_range_end
+ iket_range_pop
+ iket_range_push
+ iket_range_start
+ iket_sentinel_token
+ lane_id
+ linear_thread_id
+ make_float2
+ mbarrier_wait
+ mbarrier_wait_acquire_cluster
+ mma_fill
+ mma_store
+ mov_sreg
+ nano_sleep
+ nvshmem_barrier_all
+ nvshmem_fence
+ nvshmem_getmem_nbi
+ nvshmem_getmem_nbi_block
+ nvshmem_getmem_nbi_warp
+ nvshmem_my_pe
+ nvshmem_n_pes
+ nvshmem_putmem_nbi
+ nvshmem_putmem_nbi_block
+ nvshmem_putmem_nbi_warp
+ nvshmem_putmem_signal_nbi
+ nvshmem_putmem_signal_nbi_block
+ nvshmem_putmem_signal_nbi_warp
+ nvshmem_quiet
+ nvshmem_signal_op
+ nvshmem_wait_until
+ printf
+ ptx_cp_async_legacy
+ ptx_legacy_ldmatrix
+ ptx_legacy_mma
+ reduce_add_sync_u32
+ reduce_min_sync_u32
+ runtime_instr_desc
+ sm100_2sm_leader_smem_addr
+ smem_addr_from_uint64
+ syncthreads_and
+ syncthreads_or
+ tcgen05_encode_instr_descriptor
+ tcgen05_encode_instr_descriptor_block_scaled
+ tcgen05_encode_matrix_descriptor
+ tensormap_encode_tiled
+ thread_fence
+ thread_idx
+ thread_in_warpgroup
+ thread_rank
+ timer_end
+ timer_finalize
+ timer_init
+ timer_start
+ trap_when_assert_failed
+ uint_as_float
+ wait_until
+ warp_id
+ warp_in_warpgroup
+ warp_max
+ warp_min
+ warp_reduce
+ warp_sum
+ warp_sync
+ warpgroup_id
+ warpgroup_sync
+ wgmma_encode_matrix_descriptor
+ wgmma_noop_barrier
diff --git a/docs/reference/python/backend.cuda.ptx.rst b/docs/reference/python/backend.cuda.ptx.rst
new file mode 100644
index 0000000000..8f7a8af475
--- /dev/null
+++ b/docs/reference/python/backend.cuda.ptx.rst
@@ -0,0 +1,41 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.ptx
+=========================
+
+.. automodule:: tvm_tirx.backend.cuda.ptx
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.ptx
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ PTXNamespace
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ instruction_forms
+ instruction_name
diff --git a/docs/reference/python/backend.cuda.rst b/docs/reference/python/backend.cuda.rst
new file mode 100644
index 0000000000..3c2ed8fb68
--- /dev/null
+++ b/docs/reference/python/backend.cuda.rst
@@ -0,0 +1,64 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda
+=====================
+
+.. automodule:: tvm_tirx.backend.cuda
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ BackendConfig
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ export_cuda_host
+ register_backend
+ script_namespace
+ script_namespaces
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ backend.cuda.axis
+ backend.cuda.backend_config
+ backend.cuda.codegen
+ backend.cuda.compiler
+ backend.cuda.iket
+ backend.cuda.lang
+ backend.cuda.launch
+ backend.cuda.layout
+ backend.cuda.op
+ backend.cuda.ptx
+ backend.cuda.script
+ backend.cuda.thread_scope
+ backend.cuda.tile
+ backend.cuda.transforms
diff --git a/docs/reference/python/backend.cuda.script.iket.rst b/docs/reference/python/backend.cuda.script.iket.rst
new file mode 100644
index 0000000000..313875b695
--- /dev/null
+++ b/docs/reference/python/backend.cuda.script.iket.rst
@@ -0,0 +1,40 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.script.iket
+=================================
+
+.. automodule:: tvm_tirx.backend.cuda.script
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.backend.cuda.script.iket
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ mark
+ official_event
+ range_end
+ range_pop
+ range_push
+ range_start
+ sentinel_token
diff --git a/docs/reference/python/backend.cuda.script.rst b/docs/reference/python/backend.cuda.script.rst
new file mode 100644
index 0000000000..547c1bf5ab
--- /dev/null
+++ b/docs/reference/python/backend.cuda.script.rst
@@ -0,0 +1,139 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.script
+============================
+
+.. automodule:: tvm_tirx.backend.cuda.script
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.script
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ CudaTcgen05Namespace
+ CudaWgmmaNamespace
+ IketNamespace
+ NVSHMEMGetMemNBINamespace
+ NVSHMEMNamespace
+ NVSHMEMPutMemNBINamespace
+ NVSHMEMPutMemSignalNBINamespace
+ PTXLegacyNamespace
+ PTXNamespace
+ STIRNamespace
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ any_sync
+ ballot_sync
+ bfloat1622float2
+ bfloat162float
+ block_dim
+ block_idx
+ clock64
+ cluster_cta_id
+ cluster_dim
+ cluster_id
+ cluster_sync
+ cta_pair_id
+ cta_sync
+ cvta_generic_to_shared
+ decl_tmem
+ elect_sync
+ fadd2_rn
+ fdividef
+ ffs_u32
+ float22bfloat162_rn
+ float22bfloat162_rn_from_float2
+ float22half2
+ float2_x
+ float2_y
+ float8tohalf8
+ float_as_uint
+ fmul2_rn
+ fp8x4_e4m3_from_float4
+ get_tmem_addr
+ grid_dim
+ grid_sync
+ half2float
+ half8tofloat8
+ hmax2
+ hmin2
+ iket_mark
+ iket_official_event
+ iket_range_end
+ iket_range_pop
+ iket_range_push
+ iket_range_start
+ iket_sentinel_token
+ lane_id
+ linear_thread_id
+ make_float2
+ mbarrier_wait
+ mbarrier_wait_acquire_cluster
+ mma_fill
+ mma_store
+ nano_sleep
+ printf
+ reduce_add_sync_u32
+ reduce_min_sync_u32
+ runtime_instr_desc
+ smem_addr_from_uint64
+ syncthreads_and
+ syncthreads_or
+ tcgen05_encode_instr_descriptor
+ tcgen05_encode_instr_descriptor_block_scaled
+ tcgen05_encode_matrix_descriptor
+ tensormap_encode_tiled
+ thread_fence
+ thread_idx
+ thread_in_warpgroup
+ thread_rank
+ trap_when_assert_failed
+ uint_as_float
+ warp_id
+ warp_in_warpgroup
+ warp_sync
+ warpgroup_id
+ warpgroup_sync
+ wgmma_encode_matrix_descriptor
+ wgmma_noop_barrier
+ __shfl_sync
+ __shfl_up_sync
+ __shfl_down_sync
+ __shfl_xor_sync
+ __activemask
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ backend.cuda.script.iket
+ backend.cuda.script.tcgen05
+ backend.cuda.script.tile
+ backend.cuda.script.wgmma
diff --git a/docs/reference/python/backend.cuda.script.tcgen05.rst b/docs/reference/python/backend.cuda.script.tcgen05.rst
new file mode 100644
index 0000000000..ff3c60a719
--- /dev/null
+++ b/docs/reference/python/backend.cuda.script.tcgen05.rst
@@ -0,0 +1,36 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.script.tcgen05
+====================================
+
+.. automodule:: tvm_tirx.backend.cuda.script
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.backend.cuda.script.tcgen05
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ encode_instr_descriptor
+ encode_instr_descriptor_block_scaled
+ encode_matrix_descriptor
diff --git a/docs/reference/python/backend.cuda.script.tile.rst b/docs/reference/python/backend.cuda.script.tile.rst
new file mode 100644
index 0000000000..e5d9196139
--- /dev/null
+++ b/docs/reference/python/backend.cuda.script.tile.rst
@@ -0,0 +1,35 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.script.tile
+=================================
+
+.. automodule:: tvm_tirx.backend.cuda.script
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.backend.cuda.script.tile
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ apply
+ ewise
diff --git a/docs/reference/python/backend.cuda.script.wgmma.rst b/docs/reference/python/backend.cuda.script.wgmma.rst
new file mode 100644
index 0000000000..bc14b728d5
--- /dev/null
+++ b/docs/reference/python/backend.cuda.script.wgmma.rst
@@ -0,0 +1,35 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.script.wgmma
+==================================
+
+.. automodule:: tvm_tirx.backend.cuda.script
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.backend.cuda.script.wgmma
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ encode_matrix_descriptor
+ noop_barrier
diff --git a/docs/reference/python/backend.cuda.thread_scope.rst b/docs/reference/python/backend.cuda.thread_scope.rst
new file mode 100644
index 0000000000..79aac8f377
--- /dev/null
+++ b/docs/reference/python/backend.cuda.thread_scope.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.thread_scope
+==================================
+
+.. automodule:: tvm_tirx.backend.cuda.thread_scope
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.thread_scope
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ ThreadScope
diff --git a/docs/reference/python/backend.cuda.tile.exec_context.rst b/docs/reference/python/backend.cuda.tile.exec_context.rst
new file mode 100644
index 0000000000..d2110f8a1c
--- /dev/null
+++ b/docs/reference/python/backend.cuda.tile.exec_context.rst
@@ -0,0 +1,48 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.tile.exec_context
+=======================================
+
+.. automodule:: tvm_tirx.backend.cuda.tile.exec_context
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.tile.exec_context
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ ActiveSet
+ AxisRange
+ ExecContext
+ ExecContextError
+ LaneBinding
+ Split
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ filter_modulo
+ filter_narrow
+ initial_A
+ scope_switch
diff --git a/docs/reference/python/backend.cuda.tile.rst b/docs/reference/python/backend.cuda.tile.rst
new file mode 100644
index 0000000000..de0493f396
--- /dev/null
+++ b/docs/reference/python/backend.cuda.tile.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.tile
+==========================
+
+.. automodule:: tvm_tirx.backend.cuda.tile
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.tile
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ backend.cuda.tile.exec_context
diff --git a/docs/reference/python/backend.cuda.transforms.rst b/docs/reference/python/backend.cuda.transforms.rst
new file mode 100644
index 0000000000..15085a0617
--- /dev/null
+++ b/docs/reference/python/backend.cuda.transforms.rst
@@ -0,0 +1,35 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.cuda.transforms
+================================
+
+.. automodule:: tvm_tirx.backend.cuda.transforms
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.cuda.transforms
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ BindBackendConfig
+ LowerIket
+ SpecializeDeviceHelpers
+ SpecializeEntryHelpers
diff --git a/docs/reference/python/backend.hexagon.linker.rst b/docs/reference/python/backend.hexagon.linker.rst
new file mode 100644
index 0000000000..07a75e8afb
--- /dev/null
+++ b/docs/reference/python/backend.hexagon.linker.rst
@@ -0,0 +1,34 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.hexagon.linker
+===============================
+
+.. automodule:: tvm_tirx.backend.hexagon.linker
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.hexagon.linker
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ hexagon_link
+ link_shared
+ register_linker
diff --git a/docs/reference/python/backend.hexagon.rst b/docs/reference/python/backend.hexagon.rst
new file mode 100644
index 0000000000..315fa4e3d8
--- /dev/null
+++ b/docs/reference/python/backend.hexagon.rst
@@ -0,0 +1,40 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.hexagon
+========================
+
+.. automodule:: tvm_tirx.backend.hexagon
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.hexagon
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register_backend
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ backend.hexagon.linker
diff --git a/docs/reference/python/backend.metal.op.rst b/docs/reference/python/backend.metal.op.rst
new file mode 100644
index 0000000000..76547b5bad
--- /dev/null
+++ b/docs/reference/python/backend.metal.op.rst
@@ -0,0 +1,42 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.metal.op
+=========================
+
+.. automodule:: tvm_tirx.backend.metal.op
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.metal.op
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ cooperative_tensor_fill
+ cooperative_tensor_load
+ cooperative_tensor_multiply_accumulate
+ cooperative_tensor_store
+ make_filled_simdgroup_matrix
+ simd_shuffle
+ simd_shuffle_down
+ simd_shuffle_up
+ simdgroup_load
+ simdgroup_multiply_accumulate
+ simdgroup_store
diff --git a/docs/reference/python/backend.metal.rst b/docs/reference/python/backend.metal.rst
new file mode 100644
index 0000000000..ad95a3fb60
--- /dev/null
+++ b/docs/reference/python/backend.metal.rst
@@ -0,0 +1,43 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.metal
+======================
+
+.. automodule:: tvm_tirx.backend.metal
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.metal
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register_backend
+ script_namespace
+ script_namespaces
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ backend.metal.op
+ backend.metal.script
diff --git a/docs/reference/python/backend.metal.script.rst b/docs/reference/python/backend.metal.script.rst
new file mode 100644
index 0000000000..c5fe090234
--- /dev/null
+++ b/docs/reference/python/backend.metal.script.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.metal.script
+=============================
+
+.. automodule:: tvm_tirx.backend.metal.script
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.metal.script
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ MetalNamespace
diff --git a/docs/reference/python/backend.opencl.rst b/docs/reference/python/backend.opencl.rst
new file mode 100644
index 0000000000..7d36a74297
--- /dev/null
+++ b/docs/reference/python/backend.opencl.rst
@@ -0,0 +1,43 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.opencl
+=======================
+
+.. automodule:: tvm_tirx.backend.opencl
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.opencl
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ nd_mem_alloc_with_scope
+ register_backend
+ texture2d_load
+ texture2d_store
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ backend.opencl.script
diff --git a/docs/reference/python/backend.opencl.script.rst b/docs/reference/python/backend.opencl.script.rst
new file mode 100644
index 0000000000..17234dc42c
--- /dev/null
+++ b/docs/reference/python/backend.opencl.script.rst
@@ -0,0 +1,34 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.opencl.script
+==============================
+
+.. automodule:: tvm_tirx.backend.opencl.script
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.opencl.script
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ nd_mem_alloc_with_scope
+ texture2d_load
+ texture2d_store
diff --git a/docs/reference/python/backend.rocm.rst b/docs/reference/python/backend.rocm.rst
new file mode 100644
index 0000000000..de3e01b28b
--- /dev/null
+++ b/docs/reference/python/backend.rocm.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.rocm
+=====================
+
+.. automodule:: tvm_tirx.backend.rocm
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.rocm
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register_backend
diff --git a/docs/reference/python/backend.rst b/docs/reference/python/backend.rst
new file mode 100644
index 0000000000..850cae0445
--- /dev/null
+++ b/docs/reference/python/backend.rst
@@ -0,0 +1,50 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend
+================
+
+.. automodule:: tvm_tirx.backend
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ is_loaded
+ load
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ backend.adreno
+ backend.config
+ backend.cuda
+ backend.hexagon
+ backend.metal
+ backend.opencl
+ backend.rocm
+ backend.trn
+ backend.vulkan
+ backend.webgpu
diff --git a/docs/reference/python/backend.trn.axis.rst b/docs/reference/python/backend.trn.axis.rst
new file mode 100644
index 0000000000..6c5d4ea751
--- /dev/null
+++ b/docs/reference/python/backend.trn.axis.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.trn.axis
+=========================
+
+.. automodule:: tvm_tirx.backend.trn.axis
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.trn.axis
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register
diff --git a/docs/reference/python/backend.trn.layout.rst b/docs/reference/python/backend.trn.layout.rst
new file mode 100644
index 0000000000..8475a7875d
--- /dev/null
+++ b/docs/reference/python/backend.trn.layout.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.trn.layout
+===========================
+
+.. automodule:: tvm_tirx.backend.trn.layout
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.trn.layout
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ is_trainium_layout
diff --git a/docs/reference/python/backend.trn.op.rst b/docs/reference/python/backend.trn.op.rst
new file mode 100644
index 0000000000..5468ed76f2
--- /dev/null
+++ b/docs/reference/python/backend.trn.op.rst
@@ -0,0 +1,47 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.trn.op
+=======================
+
+.. automodule:: tvm_tirx.backend.trn.op
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.trn.op
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ nki_activation
+ nki_activation_reduce
+ nki_affine_select
+ nki_identity
+ nki_load
+ nki_matmul
+ nki_memset
+ nki_reciprocal
+ nki_scalar_tensor_scalar
+ nki_scalar_tensor_tensor
+ nki_store
+ nki_tensor_copy
+ nki_tensorreduce
+ nki_tensorscalar
+ nki_tensorscalar_reduce
+ nki_tensortensor
diff --git a/docs/reference/python/backend.trn.pipeline.rst b/docs/reference/python/backend.trn.pipeline.rst
new file mode 100644
index 0000000000..09962997d1
--- /dev/null
+++ b/docs/reference/python/backend.trn.pipeline.rst
@@ -0,0 +1,33 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.trn.pipeline
+=============================
+
+.. automodule:: tvm_tirx.backend.trn.pipeline
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.trn.pipeline
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ finalize_device_passes_trn
+ trn_pipeline
diff --git a/docs/reference/python/backend.trn.rst b/docs/reference/python/backend.trn.rst
new file mode 100644
index 0000000000..95b764869b
--- /dev/null
+++ b/docs/reference/python/backend.trn.rst
@@ -0,0 +1,48 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.trn
+====================
+
+.. automodule:: tvm_tirx.backend.trn
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.trn
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register_backend
+ script_namespace
+ script_namespaces
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ backend.trn.axis
+ backend.trn.layout
+ backend.trn.op
+ backend.trn.pipeline
+ backend.trn.script
+ backend.trn.thread_scope
+ backend.trn.transform
diff --git a/docs/reference/python/backend.trn.script.rst b/docs/reference/python/backend.trn.script.rst
new file mode 100644
index 0000000000..fe810e988e
--- /dev/null
+++ b/docs/reference/python/backend.trn.script.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.trn.script
+===========================
+
+.. automodule:: tvm_tirx.backend.trn.script
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.trn.script
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ NKINamespace
diff --git a/docs/reference/python/backend.trn.thread_scope.rst b/docs/reference/python/backend.trn.thread_scope.rst
new file mode 100644
index 0000000000..a295cf4ee1
--- /dev/null
+++ b/docs/reference/python/backend.trn.thread_scope.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.trn.thread_scope
+=================================
+
+.. automodule:: tvm_tirx.backend.trn.thread_scope
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.trn.thread_scope
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ ThreadScope
diff --git a/docs/reference/python/backend.trn.transform.rst b/docs/reference/python/backend.trn.transform.rst
new file mode 100644
index 0000000000..b056d54835
--- /dev/null
+++ b/docs/reference/python/backend.trn.transform.rst
@@ -0,0 +1,42 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.trn.transform
+==============================
+
+.. automodule:: tvm_tirx.backend.trn.transform
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.trn.transform
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ TrnNaiveAllocator
+ TrnPrivateTensorAlloc
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ LowerTIRx
+ LowerTrainiumLayout
diff --git a/docs/reference/python/backend.vulkan.rst b/docs/reference/python/backend.vulkan.rst
new file mode 100644
index 0000000000..b5a5709bc5
--- /dev/null
+++ b/docs/reference/python/backend.vulkan.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.vulkan
+=======================
+
+.. automodule:: tvm_tirx.backend.vulkan
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.vulkan
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register_backend
diff --git a/docs/reference/python/backend.webgpu.rst b/docs/reference/python/backend.webgpu.rst
new file mode 100644
index 0000000000..4a6b681cde
--- /dev/null
+++ b/docs/reference/python/backend.webgpu.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.backend.webgpu
+=======================
+
+.. automodule:: tvm_tirx.backend.webgpu
+ :no-members:
+
+.. currentmodule:: tvm_tirx.backend.webgpu
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register_backend
diff --git a/docs/reference/python/codegen.llvm.rst b/docs/reference/python/codegen.llvm.rst
new file mode 100644
index 0000000000..f5593daad6
--- /dev/null
+++ b/docs/reference/python/codegen.llvm.rst
@@ -0,0 +1,43 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.codegen.llvm
+=====================
+
+.. automodule:: tvm_tirx.codegen.llvm
+ :no-members:
+
+.. currentmodule:: tvm_tirx.codegen.llvm
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ cpu_has_features
+ get_cpu_archlist
+ get_cpu_features
+ get_intrinsic_name
+ get_system_cpu
+ get_system_triple
+ get_system_x86_vendor
+ get_targets
+ get_vector_width
+ is_valid_cpu
+ lookup_intrinsic_id
+ version_major
diff --git a/docs/reference/python/codegen.rst b/docs/reference/python/codegen.rst
new file mode 100644
index 0000000000..7d9c7c6fa8
--- /dev/null
+++ b/docs/reference/python/codegen.rst
@@ -0,0 +1,50 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.codegen
+================
+
+.. automodule:: tvm_tirx.codegen
+ :no-members:
+
+.. currentmodule:: tvm_tirx.codegen
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ Executable
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ build_module
+ load_static_library
+ target_has_features
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ codegen.llvm
diff --git a/docs/reference/python/config.rst b/docs/reference/python/config.rst
new file mode 100644
index 0000000000..119c459bc9
--- /dev/null
+++ b/docs/reference/python/config.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.config
+===============
+
+.. automodule:: tvm_tirx.config
+ :no-members:
+
+.. currentmodule:: tvm_tirx.config
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ configuration
diff --git a/docs/reference/python/cuda-script-namespaces.rst b/docs/reference/python/cuda-script-namespaces.rst
new file mode 100644
index 0000000000..c1c2a1a97b
--- /dev/null
+++ b/docs/reference/python/cuda-script-namespaces.rst
@@ -0,0 +1,71 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+:orphan:
+
+CUDA Script Namespaces
+======================
+
+tvm_tirx.backend.cuda.script.iket
+---------------------------------
+
+:doc:`tvm_tirx.backend.cuda.script.iket <backend.cuda.script.iket>`
+
+tvm_tirx.backend.cuda.script.tcgen05
+------------------------------------
+
+:doc:`tvm_tirx.backend.cuda.script.tcgen05 <backend.cuda.script.tcgen05>`
+
+tvm_tirx.backend.cuda.script.tile
+---------------------------------
+
+:doc:`tvm_tirx.backend.cuda.script.tile <backend.cuda.script.tile>`
+
+tvm_tirx.backend.cuda.script.wgmma
+----------------------------------
+
+:doc:`tvm_tirx.backend.cuda.script.wgmma <backend.cuda.script.wgmma>`
+
+tvm_tirx.tirx.script.nvshmem
+----------------------------
+
+:doc:`tvm_tirx.tirx.script.nvshmem <tirx.script.nvshmem>`
+
+tvm_tirx.tirx.script.nvshmem.getmem_nbi
+---------------------------------------
+
+:doc:`tvm_tirx.tirx.script.nvshmem.getmem_nbi <tirx.script.nvshmem.getmem_nbi>`
+
+tvm_tirx.tirx.script.nvshmem.putmem_nbi
+---------------------------------------
+
+:doc:`tvm_tirx.tirx.script.nvshmem.putmem_nbi <tirx.script.nvshmem.putmem_nbi>`
+
+tvm_tirx.tirx.script.nvshmem.putmem_signal_nbi
+----------------------------------------------
+
+:doc:`tvm_tirx.tirx.script.nvshmem.putmem_signal_nbi <tirx.script.nvshmem.putmem_signal_nbi>`
+
+tvm_tirx.tirx.script.ptx
+------------------------
+
+:doc:`tvm_tirx.tirx.script.ptx <tirx.script.ptx>`
+
+tvm_tirx.tirx.script.ptx_legacy
+-------------------------------
+
+:doc:`tvm_tirx.tirx.script.ptx_legacy <tirx.script.ptx_legacy>`
diff --git a/docs/reference/python/cuda.rst b/docs/reference/python/cuda.rst
new file mode 100644
index 0000000000..b601c21462
--- /dev/null
+++ b/docs/reference/python/cuda.rst
@@ -0,0 +1,96 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+:orphan:
+
+CUDA
+====
+
+tvm_tirx.backend.cuda
+---------------------
+
+:doc:`tvm_tirx.backend.cuda <backend.cuda>`
+
+tvm_tirx.backend.cuda.axis
+--------------------------
+
+:doc:`tvm_tirx.backend.cuda.axis <backend.cuda.axis>`
+
+tvm_tirx.backend.cuda.layout
+----------------------------
+
+:doc:`tvm_tirx.backend.cuda.layout <backend.cuda.layout>`
+
+tvm_tirx.backend.cuda.thread_scope
+----------------------------------
+
+:doc:`tvm_tirx.backend.cuda.thread_scope <backend.cuda.thread_scope>`
+
+tvm_tirx.backend.cuda.compiler
+------------------------------
+
+:doc:`tvm_tirx.backend.cuda.compiler <backend.cuda.compiler>`
+
+tvm_tirx.backend.cuda.iket
+--------------------------
+
+:doc:`tvm_tirx.backend.cuda.iket <backend.cuda.iket>`
+
+tvm_tirx.backend.cuda.codegen
+-----------------------------
+
+:doc:`tvm_tirx.backend.cuda.codegen <backend.cuda.codegen>`
+
+tvm_tirx.backend.cuda.lang
+--------------------------
+
+:doc:`tvm_tirx.backend.cuda.lang <backend.cuda.lang>`
+
+tvm_tirx.backend.cuda.launch
+----------------------------
+
+:doc:`tvm_tirx.backend.cuda.launch <backend.cuda.launch>`
+
+tvm_tirx.backend.cuda.op
+------------------------
+
+:doc:`tvm_tirx.backend.cuda.op <backend.cuda.op>`
+
+tvm_tirx.backend.cuda.ptx
+-------------------------
+
+:doc:`tvm_tirx.backend.cuda.ptx <backend.cuda.ptx>`
+
+tvm_tirx.backend.cuda.script
+----------------------------
+
+:doc:`tvm_tirx.backend.cuda.script <backend.cuda.script>`
+
+tvm_tirx.backend.cuda.tile.exec_context
+---------------------------------------
+
+:doc:`tvm_tirx.backend.cuda.tile.exec_context <backend.cuda.tile.exec_context>`
+
+tvm_tirx.backend.cuda.transforms
+--------------------------------
+
+:doc:`tvm_tirx.backend.cuda.transforms <backend.cuda.transforms>`
+
+tvm_tirx.backend.cuda.backend_config
+------------------------------------
+
+:doc:`tvm_tirx.backend.cuda.backend_config <backend.cuda.backend_config>`
diff --git a/docs/reference/python/index.rst b/docs/reference/python/index.rst
new file mode 100644
index 0000000000..eb2d5f708a
--- /dev/null
+++ b/docs/reference/python/index.rst
@@ -0,0 +1,108 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx
+========
+
+.. automodule:: tvm_tirx
+ :no-members:
+
+.. currentmodule:: tvm_tirx
+
+Classes
+-------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``DataType``
+ - :obj:`tvm_tirx.runtime.DataType`
+ * - ``DataTypeCode``
+ - :obj:`tvm_tirx.runtime.DataTypeCode`
+ * - ``IRModule``
+ - :obj:`tvm_tirx.ir.IRModule`
+ * - ``Object``
+ - :obj:`tvm_tirx.runtime.Object`
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ get_global_func
+ hexagon
+ register_global_func
+ register_object
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``cpu``
+ - :obj:`tvm_tirx.runtime.cpu`
+ * - ``cuda``
+ - :obj:`tvm_tirx.runtime.cuda`
+ * - ``device``
+ - :obj:`tvm_tirx.runtime.device`
+ * - ``device_from_target``
+ - :obj:`tvm_tirx.target.device_from_target`
+ * - ``ext_dev``
+ - :obj:`tvm_tirx.runtime.ext_dev`
+ * - ``metal``
+ - :obj:`tvm_tirx.runtime.metal`
+ * - ``opencl``
+ - :obj:`tvm_tirx.runtime.opencl`
+ * - ``rocm``
+ - :obj:`tvm_tirx.runtime.rocm`
+ * - ``vpi``
+ - :obj:`tvm_tirx.runtime.vpi`
+ * - ``vulkan``
+ - :obj:`tvm_tirx.runtime.vulkan`
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 2
+
+ runtime
+ ir
+ ir.transform
+ script
+ sym
+ target
+ tirx
+ tirx.transform
+ codegen
+ backend
+ support
+ testing
+
+Additional namespaces
+---------------------
+
+.. toctree::
+ :maxdepth: 1
+
+ config
+ libinfo
diff --git a/docs/reference/python/ir.base.rst b/docs/reference/python/ir.base.rst
new file mode 100644
index 0000000000..95f3f2756f
--- /dev/null
+++ b/docs/reference/python/ir.base.rst
@@ -0,0 +1,62 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.ir.base
+================
+
+.. automodule:: tvm_tirx.ir.base
+ :no-members:
+
+.. currentmodule:: tvm_tirx.ir.base
+
+Classes
+-------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``EnvFunc``
+ - :obj:`tvm_tirx.ir.EnvFunc`
+ * - ``Node``
+ - :obj:`tvm_tirx.ir.Node`
+ * - ``Scriptable``
+ - :obj:`tvm_tirx.ir.Scriptable`
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register_dialect_script_method
+ register_script_printer
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``assert_structural_equal``
+ - :obj:`tvm_tirx.ir.assert_structural_equal`
+ * - ``load_json``
+ - :obj:`tvm_tirx.ir.load_json`
+ * - ``save_json``
+ - :obj:`tvm_tirx.ir.save_json`
diff --git a/docs/reference/python/ir.json_compact.rst b/docs/reference/python/ir.json_compact.rst
new file mode 100644
index 0000000000..b73fb2abf2
--- /dev/null
+++ b/docs/reference/python/ir.json_compact.rst
@@ -0,0 +1,34 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.ir.json_compact
+========================
+
+.. automodule:: tvm_tirx.ir.json_compact
+ :no-members:
+
+.. currentmodule:: tvm_tirx.ir.json_compact
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ create_updater
+ get_version
+ upgrade_json
diff --git a/docs/reference/python/ir.prim.rst b/docs/reference/python/ir.prim.rst
new file mode 100644
index 0000000000..d4768112a2
--- /dev/null
+++ b/docs/reference/python/ir.prim.rst
@@ -0,0 +1,159 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.ir.prim
+================
+
+.. automodule:: tvm_tirx.ir.prim
+ :no-members:
+
+.. currentmodule:: tvm_tirx.ir.prim
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ Add
+ And
+ BinaryOpExpr
+ BitwiseAnd
+ BitwiseNot
+ BitwiseOr
+ BitwiseXor
+ Broadcast
+ Cast
+ CmpExpr
+ Div
+ EQ
+ FloorDiv
+ FloorMod
+ GE
+ GT
+ LE
+ LShift
+ LT
+ Let
+ LogicalExpr
+ Max
+ Min
+ Mod
+ Mul
+ NE
+ Not
+ Or
+ RShift
+ Ramp
+ Select
+ Shuffle
+ Sub
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``Expr``
+ - :obj:`tvm_tirx.ir.Expr`
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ abs
+ acos
+ acosh
+ all
+ any
+ asin
+ asinh
+ assume
+ atan
+ atan2
+ atanh
+ bitwise_and
+ bitwise_not
+ bitwise_or
+ bitwise_xor
+ ceil
+ ceildiv
+ clz
+ convert
+ copysign
+ cos
+ cosh
+ div
+ erf
+ exp
+ exp10
+ exp2
+ expr_deep_equal
+ floor
+ floordiv
+ floormod
+ fma
+ fmod
+ hypot
+ if_then_else
+ indexdiv
+ indexmod
+ infinity
+ isfinite
+ isinf
+ isnan
+ ldexp
+ likely
+ log
+ log10
+ log1p
+ log2
+ max
+ max_value
+ min
+ min_value
+ nearbyint
+ nextafter
+ popcount
+ pow
+ power
+ round
+ rsqrt
+ shift_left
+ shift_right
+ sigmoid
+ sin
+ sinh
+ sqrt
+ tan
+ tanh
+ trunc
+ truncdiv
+ truncmod
+ vscale
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``const``
+ - :obj:`tvm_tirx.ir.const`
diff --git a/docs/reference/python/ir.rst b/docs/reference/python/ir.rst
new file mode 100644
index 0000000000..76e944dfb8
--- /dev/null
+++ b/docs/reference/python/ir.rst
@@ -0,0 +1,265 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.ir
+===========
+
+.. automodule:: tvm_tirx.ir
+ :no-members:
+
+.. currentmodule:: tvm_tirx.ir
+
+Common IR infrastructure
+------------------------
+
+.. autosummary::
+ :toctree: generated/
+
+ Array
+ Attrs
+ CallEffectKind
+ CallSiteLoc
+ CallingConv
+ DictAttrs
+ EnvFunc
+ ExprOperand
+ ForKind
+ GlobalInfo
+ IRModule
+ Location
+ Map
+ Node
+ Range
+ Scriptable
+ SourceLoc
+ SourceName
+ UnknownLoc
+
+Type
+----
+
+.. autosummary::
+ :toctree: generated/
+
+ AnyType
+ FuncType
+ MissingType
+ OpaqueType
+ PrimType
+ PtrType
+ StringType
+ TensorRegionType
+ TupleType
+ Type
+
+Expr
+----
+
+.. autosummary::
+ :toctree: generated/
+
+ BaseFunc
+ Call
+ Constant
+ DataTypeImm
+ Expr
+ ExprWithOp
+ FloatImm
+ GenericConst
+ GlobalVar
+ IntImm
+ LambdaExpr
+ Op
+ OpaqueExpr
+ StagingExpr
+ StringImm
+ TensorLoad
+ TensorRegion
+ Tuple
+ TupleGetItem
+ Var
+
+Stmt
+----
+
+.. autosummary::
+ :toctree: generated/
+
+ AssertStmt
+ Bind
+ Break
+ Continue
+ Evaluate
+ For
+ If
+ RegionStmt
+ Return
+ SeqStmt
+ Stmt
+ TensorStore
+ While
+
+Operator functions (tvm_tirx.ir.prim)
+-------------------------------------
+
+.. currentmodule:: tvm_tirx.ir.prim
+
+.. autosummary::
+
+ abs
+ acos
+ acosh
+ all
+ any
+ asin
+ asinh
+ assume
+ atan
+ atan2
+ atanh
+ bitwise_and
+ bitwise_not
+ bitwise_or
+ bitwise_xor
+ ceil
+ ceildiv
+ clz
+ copysign
+ cos
+ cosh
+ div
+ erf
+ exp
+ exp10
+ exp2
+ floor
+ floordiv
+ floormod
+ fma
+ fmod
+ hypot
+ if_then_else
+ indexdiv
+ indexmod
+ isfinite
+ isinf
+ isnan
+ ldexp
+ likely
+ log
+ log10
+ log1p
+ log2
+ max
+ min
+ nearbyint
+ nextafter
+ popcount
+ pow
+ power
+ round
+ rsqrt
+ shift_left
+ shift_right
+ sigmoid
+ sin
+ sinh
+ sqrt
+ tan
+ tanh
+ trunc
+ truncdiv
+ truncmod
+ vscale
+
+.. currentmodule:: tvm_tirx.ir
+
+IR helpers
+----------
+
+.. autosummary::
+ :toctree: generated/
+
+ assert_structural_equal
+ const
+ is_prim_expr
+ is_prim_var
+ load_json
+ make_node
+ register_op_attr
+ reinfer_type
+ save_json
+ stmt_list
+ stmt_seq
+
+Constants
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ UNKNOWN_LOC
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ ir.prim
+ ir.base
+ ir.json_compact
+ ir.unique_name_supply
+
+Namespace links
+---------------
+
+.. raw:: html
+
+ <span id="tvm-tirx-ir-base"></span>
+
+:doc:`tvm_tirx.ir.base <ir.base>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-ir-prim"></span>
+
+:doc:`tvm_tirx.ir.prim <ir.prim>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-ir-transform"></span>
+
+:doc:`tvm_tirx.ir.transform <ir.transform>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-ir-transform-instrument"></span>
+
+:doc:`tvm_tirx.ir.transform.instrument <ir.transform.instrument>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-ir-unique-name-supply"></span>
+
+:doc:`tvm_tirx.ir.unique_name_supply <ir.unique_name_supply>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-ir-json-compact"></span>
+
+:doc:`tvm_tirx.ir.json_compact <ir.json_compact>`
diff --git a/docs/reference/python/ir.transform.instrument.rst b/docs/reference/python/ir.transform.instrument.rst
new file mode 100644
index 0000000000..de1175e493
--- /dev/null
+++ b/docs/reference/python/ir.transform.instrument.rst
@@ -0,0 +1,36 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.ir.transform.instrument
+================================
+
+.. automodule:: tvm_tirx.ir.transform.instrument
+ :no-members:
+
+.. currentmodule:: tvm_tirx.ir.transform.instrument
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ DumpIR
+ PassPrintingInstrument
+ PassTimingInstrument
+ PrintAfterAll
+ PrintBeforeAll
diff --git a/docs/reference/python/ir.transform.rst b/docs/reference/python/ir.transform.rst
new file mode 100644
index 0000000000..b738293cfc
--- /dev/null
+++ b/docs/reference/python/ir.transform.rst
@@ -0,0 +1,55 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.ir.transform
+=====================
+
+.. automodule:: tvm_tirx.ir.transform
+ :no-members:
+
+.. currentmodule:: tvm_tirx.ir.transform
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ ModulePass
+ Pass
+ PassContext
+ PassInfo
+ PassInstrument
+ Sequential
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ PrintIR
+ module_pass
+ pass_instrument
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ ir.transform.instrument
diff --git a/docs/reference/python/ir.unique_name_supply.rst b/docs/reference/python/ir.unique_name_supply.rst
new file mode 100644
index 0000000000..806e14e389
--- /dev/null
+++ b/docs/reference/python/ir.unique_name_supply.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.ir.unique_name_supply
+==============================
+
+.. automodule:: tvm_tirx.ir.unique_name_supply
+ :no-members:
+
+.. currentmodule:: tvm_tirx.ir.unique_name_supply
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ UniqueNameSupply
diff --git a/docs/reference/python/libinfo.rst b/docs/reference/python/libinfo.rst
new file mode 100644
index 0000000000..0c66ed447c
--- /dev/null
+++ b/docs/reference/python/libinfo.rst
@@ -0,0 +1,35 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.libinfo
+================
+
+.. automodule:: tvm_tirx.libinfo
+ :no-members:
+
+.. currentmodule:: tvm_tirx.libinfo
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ configuration
+ find_include_path
+ find_libtvm_runtime
+ package_lib_paths
diff --git a/docs/reference/python/other-backends.rst b/docs/reference/python/other-backends.rst
new file mode 100644
index 0000000000..65691f356a
--- /dev/null
+++ b/docs/reference/python/other-backends.rst
@@ -0,0 +1,116 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+:orphan:
+
+Other Backends
+==============
+
+tvm_tirx.backend.adreno
+-----------------------
+
+:doc:`tvm_tirx.backend.adreno <backend.adreno>`
+
+tvm_tirx.backend.hexagon
+------------------------
+
+:doc:`tvm_tirx.backend.hexagon <backend.hexagon>`
+
+tvm_tirx.backend.hexagon.linker
+-------------------------------
+
+:doc:`tvm_tirx.backend.hexagon.linker <backend.hexagon.linker>`
+
+tvm_tirx.backend.metal
+----------------------
+
+:doc:`tvm_tirx.backend.metal <backend.metal>`
+
+tvm_tirx.backend.metal.op
+-------------------------
+
+:doc:`tvm_tirx.backend.metal.op <backend.metal.op>`
+
+tvm_tirx.backend.metal.script
+-----------------------------
+
+:doc:`tvm_tirx.backend.metal.script <backend.metal.script>`
+
+tvm_tirx.backend.opencl
+-----------------------
+
+:doc:`tvm_tirx.backend.opencl <backend.opencl>`
+
+tvm_tirx.backend.opencl.script
+------------------------------
+
+:doc:`tvm_tirx.backend.opencl.script <backend.opencl.script>`
+
+tvm_tirx.backend.rocm
+---------------------
+
+:doc:`tvm_tirx.backend.rocm <backend.rocm>`
+
+tvm_tirx.backend.trn
+--------------------
+
+:doc:`tvm_tirx.backend.trn <backend.trn>`
+
+tvm_tirx.backend.trn.axis
+-------------------------
+
+:doc:`tvm_tirx.backend.trn.axis <backend.trn.axis>`
+
+tvm_tirx.backend.trn.layout
+---------------------------
+
+:doc:`tvm_tirx.backend.trn.layout <backend.trn.layout>`
+
+tvm_tirx.backend.trn.thread_scope
+---------------------------------
+
+:doc:`tvm_tirx.backend.trn.thread_scope <backend.trn.thread_scope>`
+
+tvm_tirx.backend.trn.op
+-----------------------
+
+:doc:`tvm_tirx.backend.trn.op <backend.trn.op>`
+
+tvm_tirx.backend.trn.pipeline
+-----------------------------
+
+:doc:`tvm_tirx.backend.trn.pipeline <backend.trn.pipeline>`
+
+tvm_tirx.backend.trn.script
+---------------------------
+
+:doc:`tvm_tirx.backend.trn.script <backend.trn.script>`
+
+tvm_tirx.backend.trn.transform
+------------------------------
+
+:doc:`tvm_tirx.backend.trn.transform <backend.trn.transform>`
+
+tvm_tirx.backend.vulkan
+-----------------------
+
+:doc:`tvm_tirx.backend.vulkan <backend.vulkan>`
+
+tvm_tirx.backend.webgpu
+-----------------------
+
+:doc:`tvm_tirx.backend.webgpu <backend.webgpu>`
diff --git a/docs/reference/python/runtime-and-top-level-utilities.rst b/docs/reference/python/runtime-and-top-level-utilities.rst
new file mode 100644
index 0000000000..4e1d13279d
--- /dev/null
+++ b/docs/reference/python/runtime-and-top-level-utilities.rst
@@ -0,0 +1,46 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+:orphan:
+
+Runtime and Top-Level Utilities
+===============================
+
+tvm_tirx
+--------
+
+:doc:`tvm_tirx <index>`
+
+tvm_tirx.runtime
+----------------
+
+:doc:`tvm_tirx.runtime <runtime>`
+
+tvm_tirx.runtime.memory_scope
+-----------------------------
+
+:doc:`tvm_tirx.runtime.memory_scope <runtime.memory_scope>`
+
+tvm_tirx.config
+---------------
+
+:doc:`tvm_tirx.config <config>`
+
+tvm_tirx.libinfo
+----------------
+
+:doc:`tvm_tirx.libinfo <libinfo>`
diff --git a/docs/reference/python/runtime.memory_scope.rst b/docs/reference/python/runtime.memory_scope.rst
new file mode 100644
index 0000000000..7a788f2b61
--- /dev/null
+++ b/docs/reference/python/runtime.memory_scope.rst
@@ -0,0 +1,36 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.runtime.memory_scope
+=============================
+
+.. automodule:: tvm_tirx.runtime.memory_scope
+ :no-members:
+
+.. currentmodule:: tvm_tirx.runtime.memory_scope
+
+Classes
+-------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``MemoryScope``
+ - :obj:`tvm_tirx.runtime.MemoryScope`
diff --git a/docs/reference/python/runtime.rst b/docs/reference/python/runtime.rst
new file mode 100644
index 0000000000..671defe5ff
--- /dev/null
+++ b/docs/reference/python/runtime.rst
@@ -0,0 +1,71 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.runtime
+================
+
+.. automodule:: tvm_tirx.runtime
+ :no-members:
+
+.. currentmodule:: tvm_tirx.runtime
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ DataType
+ DataTypeCode
+ Device
+ MemoryScope
+ Module
+ Object
+ ShapeTuple
+ Tensor
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ convert
+ cpu
+ cuda
+ device
+ empty
+ enabled
+ ext_dev
+ from_dlpack
+ load_module
+ metal
+ num_threads
+ opencl
+ rocm
+ system_lib
+ tensor
+ vpi
+ vulkan
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ runtime.memory_scope
diff --git a/docs/reference/python/script-and-printer.rst b/docs/reference/python/script-and-printer.rst
new file mode 100644
index 0000000000..6b617863f2
--- /dev/null
+++ b/docs/reference/python/script-and-printer.rst
@@ -0,0 +1,91 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+:orphan:
+
+Script and Printer
+==================
+
+tvm_tirx.script
+---------------
+
+:doc:`tvm_tirx.script <script>`
+
+tvm_tirx.script.parser
+----------------------
+
+:doc:`tvm_tirx.script.parser <script.parser>`
+
+tvm_tirx.script.parser.protocol_registry
+----------------------------------------
+
+:doc:`tvm_tirx.script.parser.protocol_registry <script.parser.protocol_registry>`
+
+tvm_tirx.script.ir_builder
+--------------------------
+
+:doc:`tvm_tirx.script.ir_builder <script.ir_builder>`
+
+tvm_tirx.script.ir_builder.frame
+--------------------------------
+
+:doc:`tvm_tirx.script.ir_builder.frame <script.ir_builder.frame>`
+
+tvm_tirx.script.ir_builder.ir
+-----------------------------
+
+:doc:`tvm_tirx.script.ir_builder.ir <script.ir_builder.ir>`
+
+tvm_tirx.script.ir_builder.stmt
+-------------------------------
+
+:doc:`tvm_tirx.script.ir_builder.stmt <script.ir_builder.stmt>`
+
+tvm_tirx.script.ir_builder.tracing
+----------------------------------
+
+:doc:`tvm_tirx.script.ir_builder.tracing <script.ir_builder.tracing>`
+
+tvm_tirx.script.printer
+-----------------------
+
+:doc:`tvm_tirx.script.printer <script.printer>`
+
+tvm_tirx.script.printer.doc
+---------------------------
+
+:doc:`tvm_tirx.script.printer.doc <script.printer.doc>`
+
+tvm_tirx.tirx.script
+--------------------
+
+:doc:`tvm_tirx.tirx.script <tirx.script>`
+
+tvm_tirx.tirx.script.jit
+------------------------
+
+:doc:`tvm_tirx.tirx.script.jit <tirx.script.jit>`
+
+tvm_tirx.tirx.script.ir_builder.external_kernel
+-----------------------------------------------
+
+:doc:`tvm_tirx.tirx.script.ir_builder.external_kernel <tirx.script.ir_builder.external_kernel>`
+
+tvm_tirx.tirx.script.ir_builder.triton
+--------------------------------------
+
+:doc:`tvm_tirx.tirx.script.ir_builder.triton <tirx.script.ir_builder.triton>`
diff --git a/docs/reference/python/script.ir_builder.frame.rst b/docs/reference/python/script.ir_builder.frame.rst
new file mode 100644
index 0000000000..7ca7d0ff5d
--- /dev/null
+++ b/docs/reference/python/script.ir_builder.frame.rst
@@ -0,0 +1,48 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.script.ir_builder.frame
+================================
+
+.. automodule:: tvm_tirx.script.ir_builder.frame
+ :no-members:
+
+.. currentmodule:: tvm_tirx.script.ir_builder.frame
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ AssertFrame
+ ElseFrame
+ ForFrame
+ IfFrame
+ RegionFrame
+ StmtFrame
+ ThenFrame
+ WhileFrame
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``IRModuleFrame``
+ - :obj:`tvm_tirx.script.ir_builder.IRModuleFrame`
diff --git a/docs/reference/python/script.ir_builder.ir.rst b/docs/reference/python/script.ir_builder.ir.rst
new file mode 100644
index 0000000000..1c4261d796
--- /dev/null
+++ b/docs/reference/python/script.ir_builder.ir.rst
@@ -0,0 +1,52 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.script.ir_builder.ir
+=============================
+
+.. automodule:: tvm_tirx.script.ir_builder.ir
+ :no-members:
+
+.. currentmodule:: tvm_tirx.script.ir_builder.ir
+
+Functions
+---------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``Lambda``
+ - :obj:`tvm_tirx.script.ir_builder.Lambda`
+ * - ``constexpr``
+ - :obj:`tvm_tirx.script.ir_builder.constexpr`
+ * - ``dtype``
+ - :obj:`tvm_tirx.script.ir_builder.dtype`
+ * - ``dynamic``
+ - :obj:`tvm_tirx.script.ir_builder.dynamic`
+ * - ``meta_var``
+ - :obj:`tvm_tirx.script.ir_builder.meta_var`
+ * - ``module_attrs``
+ - :obj:`tvm_tirx.script.ir_builder.module_attrs`
+ * - ``module_get_attr``
+ - :obj:`tvm_tirx.script.ir_builder.module_get_attr`
+ * - ``module_global_infos``
+ - :obj:`tvm_tirx.script.ir_builder.module_global_infos`
+ * - ``module_set_attr``
+ - :obj:`tvm_tirx.script.ir_builder.module_set_attr`
diff --git a/docs/reference/python/script.ir_builder.rst b/docs/reference/python/script.ir_builder.rst
new file mode 100644
index 0000000000..0770ea2678
--- /dev/null
+++ b/docs/reference/python/script.ir_builder.rst
@@ -0,0 +1,129 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.script.ir_builder
+==========================
+
+.. automodule:: tvm_tirx.script.ir_builder
+ :no-members:
+
+.. currentmodule:: tvm_tirx.script.ir_builder
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ AlreadyEmitted
+ IRBuilder
+ IRModuleFrame
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``Any``
+ - :obj:`tvm_tirx.ir.AnyType`
+ * - ``Call``
+ - :obj:`tvm_tirx.ir.Call`
+ * - ``DataTypeImm``
+ - :obj:`tvm_tirx.ir.DataTypeImm`
+ * - ``Func``
+ - :obj:`tvm_tirx.ir.FuncType`
+ * - ``FuncType``
+ - :obj:`tvm_tirx.ir.FuncType`
+ * - ``GenericConst``
+ - :obj:`tvm_tirx.ir.GenericConst`
+ * - ``Missing``
+ - :obj:`tvm_tirx.ir.MissingType`
+ * - ``MissingType``
+ - :obj:`tvm_tirx.ir.MissingType`
+ * - ``Op``
+ - :obj:`tvm_tirx.ir.Op`
+ * - ``Opaque``
+ - :obj:`tvm_tirx.ir.OpaqueType`
+ * - ``Prim``
+ - :obj:`tvm_tirx.ir.PrimType`
+ * - ``PrimType``
+ - :obj:`tvm_tirx.ir.PrimType`
+ * - ``Ptr``
+ - :obj:`tvm_tirx.ir.PtrType`
+ * - ``Range``
+ - :obj:`tvm_tirx.ir.Range`
+ * - ``String``
+ - :obj:`tvm_tirx.ir.StringType`
+ * - ``StringImm``
+ - :obj:`tvm_tirx.ir.StringImm`
+ * - ``StringType``
+ - :obj:`tvm_tirx.ir.StringType`
+ * - ``TensorRegion``
+ - :obj:`tvm_tirx.ir.TensorRegion`
+ * - ``TensorRegionType``
+ - :obj:`tvm_tirx.ir.TensorRegionType`
+ * - ``Tuple``
+ - :obj:`tvm_tirx.ir.Tuple`
+ * - ``Type``
+ - :obj:`tvm_tirx.ir.Type`
+ * - ``Var``
+ - :obj:`tvm_tirx.ir.Var`
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ Lambda
+ at_
+ check_well_formed_
+ constexpr
+ decl_function
+ dtype
+ dynamic
+ ir_module
+ meta_var
+ module_attrs
+ module_get_attr
+ module_global_infos
+ module_member_
+ module_set_attr
+ resolve_global_info_
+ resolve_global_info_args
+ with_at_group_
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``make_node``
+ - :obj:`tvm_tirx.ir.make_node`
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ script.ir_builder.frame
+ script.ir_builder.ir
+ script.ir_builder.stmt
+ script.ir_builder.tracing
diff --git a/docs/reference/python/script.ir_builder.stmt.rst b/docs/reference/python/script.ir_builder.stmt.rst
new file mode 100644
index 0000000000..c613e91659
--- /dev/null
+++ b/docs/reference/python/script.ir_builder.stmt.rst
@@ -0,0 +1,67 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.script.ir_builder.stmt
+===============================
+
+.. automodule:: tvm_tirx.script.ir_builder.stmt
+ :no-members:
+
+.. currentmodule:: tvm_tirx.script.ir_builder.stmt
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ bind
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``add_to_parent``
+ - :obj:`tvm_tirx.tirx.script.add_to_parent`
+ * - ``assert_``
+ - :obj:`tvm_tirx.tirx.script.assert_`
+ * - ``break_``
+ - :obj:`tvm_tirx.tirx.script.break_`
+ * - ``continue_``
+ - :obj:`tvm_tirx.tirx.script.continue_`
+ * - ``else_``
+ - :obj:`tvm_tirx.tirx.script.else_`
+ * - ``evaluate``
+ - :obj:`tvm_tirx.tirx.script.evaluate`
+ * - ``frame_scope``
+ - :obj:`tvm_tirx.tirx.script.frame_scope`
+ * - ``grid``
+ - :obj:`tvm_tirx.tirx.script.grid`
+ * - ``if_``
+ - :obj:`tvm_tirx.tirx.script.if_`
+ * - ``region``
+ - :obj:`tvm_tirx.tirx.script.region`
+ * - ``return_``
+ - :obj:`tvm_tirx.tirx.script.return_`
+ * - ``then_``
+ - :obj:`tvm_tirx.tirx.script.then_`
+ * - ``unpack_``
+ - :obj:`tvm_tirx.tirx.script.unpack_`
+ * - ``while_``
+ - :obj:`tvm_tirx.tirx.script.while_`
diff --git a/docs/reference/python/script.ir_builder.tracing.rst b/docs/reference/python/script.ir_builder.tracing.rst
new file mode 100644
index 0000000000..2fd0b04f7a
--- /dev/null
+++ b/docs/reference/python/script.ir_builder.tracing.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.script.ir_builder.tracing
+==================================
+
+.. automodule:: tvm_tirx.script.ir_builder.tracing
+ :no-members:
+
+.. currentmodule:: tvm_tirx.script.ir_builder.tracing
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ LineTraceScope
diff --git a/docs/reference/python/script.parser.protocol_registry.rst b/docs/reference/python/script.parser.protocol_registry.rst
new file mode 100644
index 0000000000..5adcd94836
--- /dev/null
+++ b/docs/reference/python/script.parser.protocol_registry.rst
@@ -0,0 +1,33 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.script.parser.protocol_registry
+========================================
+
+.. automodule:: tvm_tirx.script.parser.protocol_registry
+ :no-members:
+
+.. currentmodule:: tvm_tirx.script.parser.protocol_registry
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register_mutable_decl
+ register_scalar_annotation
diff --git a/docs/reference/python/script.parser.rst b/docs/reference/python/script.parser.rst
new file mode 100644
index 0000000000..ab2dd4c51b
--- /dev/null
+++ b/docs/reference/python/script.parser.rst
@@ -0,0 +1,55 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.script.parser
+======================
+
+.. automodule:: tvm_tirx.script.parser
+ :no-members:
+
+.. currentmodule:: tvm_tirx.script.parser
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ from_source
+ ir_module
+ make_decorator
+ make_macro_decorator
+ pyfunc
+ register_namespace
+ register_namespace_initializer
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``parse``
+ - :obj:`tvm_tirx.script.parser.from_source`
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ script.parser.protocol_registry
diff --git a/docs/reference/python/script.printer.doc.rst b/docs/reference/python/script.printer.doc.rst
new file mode 100644
index 0000000000..34a8bb7e74
--- /dev/null
+++ b/docs/reference/python/script.printer.doc.rst
@@ -0,0 +1,59 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.script.printer.doc
+===========================
+
+.. automodule:: tvm_tirx.script.printer.doc
+ :no-members:
+
+.. currentmodule:: tvm_tirx.script.printer.doc
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ AssertDoc
+ AssignDoc
+ AttrAccessDoc
+ CallDoc
+ ClassDoc
+ CommentDoc
+ DictDoc
+ Doc
+ DocStringDoc
+ ExprDoc
+ ExprStmtDoc
+ ForDoc
+ FunctionDoc
+ IdDoc
+ IfDoc
+ IndexDoc
+ LambdaDoc
+ ListDoc
+ LiteralDoc
+ OperationDoc
+ OperationKind
+ ReturnDoc
+ ScopeDoc
+ SliceDoc
+ StmtBlockDoc
+ StmtDoc
+ TupleDoc
+ WhileDoc
diff --git a/docs/reference/python/script.printer.rst b/docs/reference/python/script.printer.rst
new file mode 100644
index 0000000000..a7a2acdbe8
--- /dev/null
+++ b/docs/reference/python/script.printer.rst
@@ -0,0 +1,40 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.script.printer
+=======================
+
+.. automodule:: tvm_tirx.script.printer
+ :no-members:
+
+.. currentmodule:: tvm_tirx.script.printer
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ PrinterConfig
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ script.printer.doc
diff --git a/docs/reference/python/script.rst b/docs/reference/python/script.rst
new file mode 100644
index 0000000000..fc8baf82eb
--- /dev/null
+++ b/docs/reference/python/script.rst
@@ -0,0 +1,43 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.script
+===============
+
+.. automodule:: tvm_tirx.script
+ :no-members:
+
+.. currentmodule:: tvm_tirx.script
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ register_dialect
+ register_module_validator
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ script.parser
+ script.ir_builder
+ script.printer
diff --git a/docs/reference/python/support.cc.rst b/docs/reference/python/support.cc.rst
new file mode 100644
index 0000000000..3606706385
--- /dev/null
+++ b/docs/reference/python/support.cc.rst
@@ -0,0 +1,38 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.support.cc
+===================
+
+.. automodule:: tvm_tirx.support.cc
+ :no-members:
+
+.. currentmodule:: tvm_tirx.support.cc
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ create_executable
+ create_shared
+ create_staticlib
+ cross_compiler
+ get_cc
+ get_global_symbol_section_map
+ get_target_by_dump_machine
diff --git a/docs/reference/python/support.clang.rst b/docs/reference/python/support.clang.rst
new file mode 100644
index 0000000000..26e712c3b3
--- /dev/null
+++ b/docs/reference/python/support.clang.rst
@@ -0,0 +1,33 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.support.clang
+======================
+
+.. automodule:: tvm_tirx.support.clang
+ :no-members:
+
+.. currentmodule:: tvm_tirx.support.clang
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ create_llvm
+ find_clang
diff --git a/docs/reference/python/support.ndk.rst b/docs/reference/python/support.ndk.rst
new file mode 100644
index 0000000000..72a1ee85bc
--- /dev/null
+++ b/docs/reference/python/support.ndk.rst
@@ -0,0 +1,34 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.support.ndk
+====================
+
+.. automodule:: tvm_tirx.support.ndk
+ :no-members:
+
+.. currentmodule:: tvm_tirx.support.ndk
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ create_shared
+ create_staticlib
+ get_global_symbol_section_map
diff --git a/docs/reference/python/support.nvcc.rst b/docs/reference/python/support.nvcc.rst
new file mode 100644
index 0000000000..46e88c0e03
--- /dev/null
+++ b/docs/reference/python/support.nvcc.rst
@@ -0,0 +1,47 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.support.nvcc
+=====================
+
+.. automodule:: tvm_tirx.support.nvcc
+ :no-members:
+
+.. currentmodule:: tvm_tirx.support.nvcc
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ callback_libdevice_path
+ compile_cuda
+ find_cuda_path
+ find_libdevice_path
+ find_nvshmem_paths
+ get_cuda_version
+ get_target_compute_version
+ have_bf16
+ have_cudagraph
+ have_fp16
+ have_fp4
+ have_fp8
+ have_int8
+ have_tensorcore
+ parse_compute_version
+ tvm_callback_cuda_compile
diff --git a/docs/reference/python/support.popen_pool.rst b/docs/reference/python/support.popen_pool.rst
new file mode 100644
index 0000000000..49a7bdf323
--- /dev/null
+++ b/docs/reference/python/support.popen_pool.rst
@@ -0,0 +1,43 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.support.popen_pool
+===========================
+
+.. automodule:: tvm_tirx.support.popen_pool
+ :no-members:
+
+.. currentmodule:: tvm_tirx.support.popen_pool
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ MapResult
+ PopenPoolExecutor
+ PopenWorker
+ StatusKind
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ kill_child_processes
diff --git a/docs/reference/python/support.rocm.rst b/docs/reference/python/support.rocm.rst
new file mode 100644
index 0000000000..e31d2eda67
--- /dev/null
+++ b/docs/reference/python/support.rocm.rst
@@ -0,0 +1,39 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.support.rocm
+=====================
+
+.. automodule:: tvm_tirx.support.rocm
+ :no-members:
+
+.. currentmodule:: tvm_tirx.support.rocm
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ callback_rocm_bitcode_path
+ callback_rocm_link
+ find_lld
+ find_rocm_path
+ get_rocm_arch
+ have_matrixcore
+ parse_compute_version
+ rocm_link
diff --git a/docs/reference/python/support.rst b/docs/reference/python/support.rst
new file mode 100644
index 0000000000..4bb5bf64ac
--- /dev/null
+++ b/docs/reference/python/support.rst
@@ -0,0 +1,106 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.support
+================
+
+.. automodule:: tvm_tirx.support
+ :no-members:
+
+.. currentmodule:: tvm_tirx.support
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ describe
+ libinfo
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ support.cc
+ support.clang
+ support.ndk
+ support.nvcc
+ support.popen_pool
+ support.rocm
+ support.tar
+ support.utils
+ support.xcode
+
+Namespace links
+---------------
+
+.. raw:: html
+
+ <span id="tvm-tirx-support-cc"></span>
+
+:doc:`tvm_tirx.support.cc <support.cc>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-support-clang"></span>
+
+:doc:`tvm_tirx.support.clang <support.clang>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-support-ndk"></span>
+
+:doc:`tvm_tirx.support.ndk <support.ndk>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-support-nvcc"></span>
+
+:doc:`tvm_tirx.support.nvcc <support.nvcc>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-support-popen-pool"></span>
+
+:doc:`tvm_tirx.support.popen_pool <support.popen_pool>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-support-rocm"></span>
+
+:doc:`tvm_tirx.support.rocm <support.rocm>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-support-tar"></span>
+
+:doc:`tvm_tirx.support.tar <support.tar>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-support-utils"></span>
+
+:doc:`tvm_tirx.support.utils <support.utils>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-support-xcode"></span>
+
+:doc:`tvm_tirx.support.xcode <support.xcode>`
diff --git a/docs/reference/python/support.tar.rst b/docs/reference/python/support.tar.rst
new file mode 100644
index 0000000000..077179b8f9
--- /dev/null
+++ b/docs/reference/python/support.tar.rst
@@ -0,0 +1,34 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.support.tar
+====================
+
+.. automodule:: tvm_tirx.support.tar
+ :no-members:
+
+.. currentmodule:: tvm_tirx.support.tar
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ normalize_file_list_by_unpacking_tars
+ tar
+ untar
diff --git a/docs/reference/python/support.utils.rst b/docs/reference/python/support.utils.rst
new file mode 100644
index 0000000000..90a8530fc1
--- /dev/null
+++ b/docs/reference/python/support.utils.rst
@@ -0,0 +1,45 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.support.utils
+======================
+
+.. automodule:: tvm_tirx.support.utils
+ :no-members:
+
+.. currentmodule:: tvm_tirx.support.utils
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ DirectoryCreatedPastAtExit
+ FileLock
+ TempDirectory
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ filelock
+ is_source_path
+ tempdir
+ which
diff --git a/docs/reference/python/support.xcode.rst b/docs/reference/python/support.xcode.rst
new file mode 100644
index 0000000000..0112f86f0e
--- /dev/null
+++ b/docs/reference/python/support.xcode.rst
@@ -0,0 +1,35 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.support.xcode
+======================
+
+.. automodule:: tvm_tirx.support.xcode
+ :no-members:
+
+.. currentmodule:: tvm_tirx.support.xcode
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ compile_coreml
+ compile_metal
+ create_dylib
+ xcrun
diff --git a/docs/reference/python/sym.analyzer.rst b/docs/reference/python/sym.analyzer.rst
new file mode 100644
index 0000000000..00ae523e24
--- /dev/null
+++ b/docs/reference/python/sym.analyzer.rst
@@ -0,0 +1,61 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.sym.analyzer
+=====================
+
+.. automodule:: tvm_tirx.sym.analyzer
+ :no-members:
+
+.. currentmodule:: tvm_tirx.sym.analyzer
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ ConstraintScope
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``Analyzer``
+ - :obj:`tvm_tirx.sym.Analyzer`
+ * - ``CompareResult``
+ - :obj:`tvm_tirx.sym.CompareResult`
+ * - ``ConstIntBound``
+ - :obj:`tvm_tirx.sym.ConstIntBound`
+ * - ``ModularSet``
+ - :obj:`tvm_tirx.sym.ModularSet`
+ * - ``ProofStrength``
+ - :obj:`tvm_tirx.sym.ProofStrength`
+
+Functions
+---------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``allow_uint_as_index``
+ - :obj:`tvm_tirx.sym.allow_uint_as_index`
diff --git a/docs/reference/python/sym.int_set.rst b/docs/reference/python/sym.int_set.rst
new file mode 100644
index 0000000000..5f40af1572
--- /dev/null
+++ b/docs/reference/python/sym.int_set.rst
@@ -0,0 +1,61 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.sym.int_set
+====================
+
+.. automodule:: tvm_tirx.sym.int_set
+ :no-members:
+
+.. currentmodule:: tvm_tirx.sym.int_set
+
+Classes
+-------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``IntSet``
+ - :obj:`tvm_tirx.sym.IntSet`
+ * - ``IntervalSet``
+ - :obj:`tvm_tirx.sym.IntervalSet`
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ neg_inf
+ pos_inf
+ union_lower_bound
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``estimate_region_lower_bound``
+ - :obj:`tvm_tirx.sym.estimate_region_lower_bound`
+ * - ``estimate_region_strict_bound``
+ - :obj:`tvm_tirx.sym.estimate_region_strict_bound`
+ * - ``estimate_region_upper_bound``
+ - :obj:`tvm_tirx.sym.estimate_region_upper_bound`
diff --git a/docs/reference/python/sym.iter_affine_map.rst b/docs/reference/python/sym.iter_affine_map.rst
new file mode 100644
index 0000000000..b56d5f10f8
--- /dev/null
+++ b/docs/reference/python/sym.iter_affine_map.rst
@@ -0,0 +1,70 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.sym.iter_affine_map
+============================
+
+.. automodule:: tvm_tirx.sym.iter_affine_map
+ :no-members:
+
+.. currentmodule:: tvm_tirx.sym.iter_affine_map
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ IterMapLevel
+ IterMapResult
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``IterMapExpr``
+ - :obj:`tvm_tirx.sym.IterMapExpr`
+ * - ``IterMark``
+ - :obj:`tvm_tirx.sym.IterMark`
+ * - ``IterSplitExpr``
+ - :obj:`tvm_tirx.sym.IterSplitExpr`
+ * - ``IterSumExpr``
+ - :obj:`tvm_tirx.sym.IterSumExpr`
+
+Functions
+---------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``detect_iter_map``
+ - :obj:`tvm_tirx.sym.detect_iter_map`
+ * - ``inverse_affine_iter_map``
+ - :obj:`tvm_tirx.sym.inverse_affine_iter_map`
+ * - ``iter_map_simplify``
+ - :obj:`tvm_tirx.sym.iter_map_simplify`
+ * - ``normalize_iter_map_to_expr``
+ - :obj:`tvm_tirx.sym.normalize_iter_map_to_expr`
+ * - ``normalize_to_iter_sum``
+ - :obj:`tvm_tirx.sym.normalize_to_iter_sum`
+ * - ``subspace_divide``
+ - :obj:`tvm_tirx.sym.subspace_divide`
diff --git a/docs/reference/python/sym.pattern.rst b/docs/reference/python/sym.pattern.rst
new file mode 100644
index 0000000000..c70bc17468
--- /dev/null
+++ b/docs/reference/python/sym.pattern.rst
@@ -0,0 +1,38 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.sym.pattern
+====================
+
+.. automodule:: tvm_tirx.sym.pattern
+ :no-members:
+
+.. currentmodule:: tvm_tirx.sym.pattern
+
+Functions
+---------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``detect_clip_bound``
+ - :obj:`tvm_tirx.sym.detect_clip_bound`
+ * - ``detect_linear_equation``
+ - :obj:`tvm_tirx.sym.detect_linear_equation`
diff --git a/docs/reference/python/sym.rst b/docs/reference/python/sym.rst
new file mode 100644
index 0000000000..bb0bd34e94
--- /dev/null
+++ b/docs/reference/python/sym.rst
@@ -0,0 +1,74 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.sym
+============
+
+.. automodule:: tvm_tirx.sym
+ :no-members:
+
+.. currentmodule:: tvm_tirx.sym
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ Analyzer
+ CompareResult
+ ConstIntBound
+ IntSet
+ IntervalSet
+ IterMapExpr
+ IterMark
+ IterSplitExpr
+ IterSumExpr
+ ModularSet
+ ProofStrength
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ allow_uint_as_index
+ deduce_bound
+ detect_clip_bound
+ detect_iter_map
+ detect_linear_equation
+ estimate_region_lower_bound
+ estimate_region_strict_bound
+ estimate_region_upper_bound
+ inverse_affine_iter_map
+ iter_map_simplify
+ normalize_iter_map_to_expr
+ normalize_to_iter_sum
+ subspace_divide
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ sym.analyzer
+ sym.int_set
+ sym.iter_affine_map
+ sym.pattern
+ sym.utils
diff --git a/docs/reference/python/sym.utils.rst b/docs/reference/python/sym.utils.rst
new file mode 100644
index 0000000000..93b4d4b280
--- /dev/null
+++ b/docs/reference/python/sym.utils.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.sym.utils
+==================
+
+.. automodule:: tvm_tirx.sym.utils
+ :no-members:
+
+.. currentmodule:: tvm_tirx.sym.utils
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ get_const_int
diff --git a/docs/reference/python/symbolic-analysis.rst b/docs/reference/python/symbolic-analysis.rst
new file mode 100644
index 0000000000..3c49cfb627
--- /dev/null
+++ b/docs/reference/python/symbolic-analysis.rst
@@ -0,0 +1,51 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+:orphan:
+
+Symbolic Analysis
+=================
+
+tvm_tirx.sym
+------------
+
+:doc:`tvm_tirx.sym <sym>`
+
+tvm_tirx.sym.analyzer
+---------------------
+
+:doc:`tvm_tirx.sym.analyzer <sym.analyzer>`
+
+tvm_tirx.sym.int_set
+--------------------
+
+:doc:`tvm_tirx.sym.int_set <sym.int_set>`
+
+tvm_tirx.sym.iter_affine_map
+----------------------------
+
+:doc:`tvm_tirx.sym.iter_affine_map <sym.iter_affine_map>`
+
+tvm_tirx.sym.pattern
+--------------------
+
+:doc:`tvm_tirx.sym.pattern <sym.pattern>`
+
+tvm_tirx.sym.utils
+------------------
+
+:doc:`tvm_tirx.sym.utils <sym.utils>`
diff --git a/docs/reference/python/target-and-code-generation.rst b/docs/reference/python/target-and-code-generation.rst
new file mode 100644
index 0000000000..f542105f19
--- /dev/null
+++ b/docs/reference/python/target-and-code-generation.rst
@@ -0,0 +1,51 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+:orphan:
+
+Target and Code Generation
+==========================
+
+tvm_tirx.target
+---------------
+
+:doc:`tvm_tirx.target <target>`
+
+tvm_tirx.target.target
+----------------------
+
+:doc:`tvm_tirx.target.target <target.target>`
+
+tvm_tirx.target.tag
+-------------------
+
+:doc:`tvm_tirx.target.tag <target.tag>`
+
+tvm_tirx.target.detect_target
+-----------------------------
+
+:doc:`tvm_tirx.target.detect_target <target.detect_target>`
+
+tvm_tirx.codegen
+----------------
+
+:doc:`tvm_tirx.codegen <codegen>`
+
+tvm_tirx.codegen.llvm
+---------------------
+
+:doc:`tvm_tirx.codegen.llvm <codegen.llvm>`
diff --git a/docs/reference/python/target.detect_target.rst b/docs/reference/python/target.detect_target.rst
new file mode 100644
index 0000000000..954c5683ac
--- /dev/null
+++ b/docs/reference/python/target.detect_target.rst
@@ -0,0 +1,33 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.target.detect_target
+=============================
+
+.. automodule:: tvm_tirx.target.detect_target
+ :no-members:
+
+.. currentmodule:: tvm_tirx.target.detect_target
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ detect_target_from_device
+ register_device_target_detector
diff --git a/docs/reference/python/target.rst b/docs/reference/python/target.rst
new file mode 100644
index 0000000000..07e7eaa8dc
--- /dev/null
+++ b/docs/reference/python/target.rst
@@ -0,0 +1,53 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.target
+===============
+
+.. automodule:: tvm_tirx.target
+ :no-members:
+
+.. currentmodule:: tvm_tirx.target
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ Target
+ TargetKind
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ device_from_target
+ list_tags
+ register_tag
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ target.detect_target
+ target.tag
+ target.target
diff --git a/docs/reference/python/target.tag.rst b/docs/reference/python/target.tag.rst
new file mode 100644
index 0000000000..55aec45209
--- /dev/null
+++ b/docs/reference/python/target.tag.rst
@@ -0,0 +1,38 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.target.tag
+===================
+
+.. automodule:: tvm_tirx.target.tag
+ :no-members:
+
+.. currentmodule:: tvm_tirx.target.tag
+
+Functions
+---------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``list_tags``
+ - :obj:`tvm_tirx.target.list_tags`
+ * - ``register_tag``
+ - :obj:`tvm_tirx.target.register_tag`
diff --git a/docs/reference/python/target.target.rst b/docs/reference/python/target.target.rst
new file mode 100644
index 0000000000..4719352001
--- /dev/null
+++ b/docs/reference/python/target.target.rst
@@ -0,0 +1,55 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.target.target
+======================
+
+.. automodule:: tvm_tirx.target.target
+ :no-members:
+
+.. currentmodule:: tvm_tirx.target.target
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ TargetFeatures
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``Target``
+ - :obj:`tvm_tirx.target.Target`
+ * - ``TargetKind``
+ - :obj:`tvm_tirx.target.TargetKind`
+
+Functions
+---------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``device_from_target``
+ - :obj:`tvm_tirx.target.device_from_target`
diff --git a/docs/reference/python/testing.env.rst b/docs/reference/python/testing.env.rst
new file mode 100644
index 0000000000..85c40e0e7b
--- /dev/null
+++ b/docs/reference/python/testing.env.rst
@@ -0,0 +1,59 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.testing.env
+====================
+
+.. automodule:: tvm_tirx.testing.env
+ :no-members:
+
+.. currentmodule:: tvm_tirx.testing.env
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ build_flag_enabled
+ cuda_arch
+ has_adreno_opencl
+ has_cpu_feature
+ has_cublas
+ has_cuda
+ has_cuda_arch
+ has_cuda_compute
+ has_cudagraph
+ has_cudnn
+ has_gpu
+ has_hexagon
+ has_hexagon_toolchain
+ has_hipblas
+ has_llvm
+ has_llvm_min_version
+ has_matrixcore
+ has_metal
+ has_multi_gpu
+ has_nccl
+ has_nvcc_version
+ has_nvptx
+ has_nvshmem
+ has_opencl
+ has_rocm
+ has_vulkan
+ has_x86_avx512
+ has_x86_vnni
diff --git a/docs/reference/python/testing.locking.rst b/docs/reference/python/testing.locking.rst
new file mode 100644
index 0000000000..9b732782b2
--- /dev/null
+++ b/docs/reference/python/testing.locking.rst
@@ -0,0 +1,36 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.testing.locking
+========================
+
+.. automodule:: tvm_tirx.testing.locking
+ :no-members:
+
+.. currentmodule:: tvm_tirx.testing.locking
+
+Functions
+---------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``run_with_gpu_lock``
+ - :obj:`tvm_tirx.testing.run_with_gpu_lock`
diff --git a/docs/reference/python/testing.rst b/docs/reference/python/testing.rst
new file mode 100644
index 0000000000..5de74b93b6
--- /dev/null
+++ b/docs/reference/python/testing.rst
@@ -0,0 +1,74 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.testing
+================
+
+.. automodule:: tvm_tirx.testing
+ :no-members:
+
+.. currentmodule:: tvm_tirx.testing
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ assert_allclose
+ device_enabled
+ echo
+ generate_random_array
+ identity_after
+ main
+ np_dtype_from_str
+ object_use_count
+ parameter
+ run_with_gpu_lock
+ terminate_self
+ test_raise_error
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ testing.env
+ testing.locking
+ testing.utils
+
+Namespace links
+---------------
+
+.. raw:: html
+
+ <span id="tvm-tirx-testing-env"></span>
+
+:doc:`tvm_tirx.testing.env <testing.env>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-testing-locking"></span>
+
+:doc:`tvm_tirx.testing.locking <testing.locking>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-testing-utils"></span>
+
+:doc:`tvm_tirx.testing.utils <testing.utils>`
diff --git a/docs/reference/python/testing.utils.rst b/docs/reference/python/testing.utils.rst
new file mode 100644
index 0000000000..3daf3f3d0b
--- /dev/null
+++ b/docs/reference/python/testing.utils.rst
@@ -0,0 +1,50 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.testing.utils
+======================
+
+.. automodule:: tvm_tirx.testing.utils
+ :no-members:
+
+.. currentmodule:: tvm_tirx.testing.utils
+
+Functions
+---------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``assert_allclose``
+ - :obj:`tvm_tirx.testing.assert_allclose`
+ * - ``device_enabled``
+ - :obj:`tvm_tirx.testing.device_enabled`
+ * - ``generate_random_array``
+ - :obj:`tvm_tirx.testing.generate_random_array`
+ * - ``identity_after``
+ - :obj:`tvm_tirx.testing.identity_after`
+ * - ``main``
+ - :obj:`tvm_tirx.testing.main`
+ * - ``np_dtype_from_str``
+ - :obj:`tvm_tirx.testing.np_dtype_from_str`
+ * - ``parameter``
+ - :obj:`tvm_tirx.testing.parameter`
+ * - ``terminate_self``
+ - :obj:`tvm_tirx.testing.terminate_self`
diff --git a/docs/reference/python/tirx.analysis.rst b/docs/reference/python/tirx.analysis.rst
new file mode 100644
index 0000000000..0ad5062524
--- /dev/null
+++ b/docs/reference/python/tirx.analysis.rst
@@ -0,0 +1,34 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.analysis
+======================
+
+.. automodule:: tvm_tirx.tirx.analysis
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.analysis
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ undefined_vars
+ verify_memory
+ verify_well_formed
diff --git a/docs/reference/python/tirx.bench.rst b/docs/reference/python/tirx.bench.rst
new file mode 100644
index 0000000000..a8c77fe40a
--- /dev/null
+++ b/docs/reference/python/tirx.bench.rst
@@ -0,0 +1,46 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.bench
+===================
+
+.. automodule:: tvm_tirx.tirx.bench
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.bench
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ CudaProfiler
+ DistributedBenchContext
+ EventType
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ bench
+ decode_tag
+ export_to_perfetto_trace
+ is_running_under_pytest
+ setup
diff --git a/docs/reference/python/tirx.compilation_pipeline.rst b/docs/reference/python/tirx.compilation_pipeline.rst
new file mode 100644
index 0000000000..5f8d58c549
--- /dev/null
+++ b/docs/reference/python/tirx.compilation_pipeline.rst
@@ -0,0 +1,51 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.compilation_pipeline
+==================================
+
+.. automodule:: tvm_tirx.tirx.compilation_pipeline
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.compilation_pipeline
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ default_tir_pipeline
+ finalize_device_passes
+ finalize_device_passes_tirx
+ finalize_host_passes
+ finalize_tir_pipeline
+ register_default_tir_pipeline_selector
+ tirx_pipeline
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``get_default_tir_pipeline``
+ - :obj:`tvm_tirx.tirx.get_default_tir_pipeline`
+ * - ``get_tir_pipeline``
+ - :obj:`tvm_tirx.tirx.get_tir_pipeline`
+ * - ``register_tir_pipeline``
+ - :obj:`tvm_tirx.tirx.register_tir_pipeline`
diff --git a/docs/reference/python/tirx.layout.rst b/docs/reference/python/tirx.layout.rst
new file mode 100644
index 0000000000..c67787aeae
--- /dev/null
+++ b/docs/reference/python/tirx.layout.rst
@@ -0,0 +1,46 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.layout
+====================
+
+.. automodule:: tvm_tirx.tirx.layout
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.layout
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ Axis
+ Iter
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``ComposeLayout``
+ - :obj:`tvm_tirx.tirx.ComposeLayout`
+ * - ``Layout``
+ - :obj:`tvm_tirx.tirx.Layout`
+ * - ``TileLayout``
+ - :obj:`tvm_tirx.tirx.TileLayout`
diff --git a/docs/reference/python/tirx.op.rst b/docs/reference/python/tirx.op.rst
new file mode 100644
index 0000000000..31e93d4a18
--- /dev/null
+++ b/docs/reference/python/tirx.op.rst
@@ -0,0 +1,151 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.op
+================
+
+.. automodule:: tvm_tirx.tirx.op
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.op
+
+Classes
+-------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``CallFFIKernelAttr``
+ - :obj:`tvm_tirx.tirx.CallFFIKernelAttr`
+ * - ``TensorLoad``
+ - :obj:`tvm_tirx.ir.TensorLoad`
+ * - ``TensorMapType``
+ - :obj:`tvm_tirx.tirx.TensorMapType`
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ gpu_active_thread_selector
+ gpu_storage_sync
+ gpu_thread_filter
+ gpu_thread_invariant
+ gpu_thread_return
+ gpu_warp_activemask
+ gpu_warp_shuffle
+ gpu_warp_shuffle_down
+ gpu_warp_shuffle_up
+ gpu_warp_shuffle_xor
+ kernel_replace_point
+ masked_load
+ masked_store
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``abi_field_get``
+ - :obj:`tvm_tirx.tirx.abi_field_get`
+ * - ``abi_field_set``
+ - :obj:`tvm_tirx.tirx.abi_field_set`
+ * - ``address_of``
+ - :obj:`tvm_tirx.tirx.address_of`
+ * - ``alloc_workspace``
+ - :obj:`tvm_tirx.tirx.alloc_workspace`
+ * - ``assume_aligned``
+ - :obj:`tvm_tirx.tirx.assume_aligned`
+ * - ``call_cpacked``
+ - :obj:`tvm_tirx.tirx.call_cpacked`
+ * - ``call_cpacked_lowered``
+ - :obj:`tvm_tirx.tirx.call_cpacked_lowered`
+ * - ``call_extern``
+ - :obj:`tvm_tirx.tirx.call_extern`
+ * - ``call_ffi_kernel``
+ - :obj:`tvm_tirx.tirx.call_ffi_kernel`
+ * - ``call_intrin``
+ - :obj:`tvm_tirx.tirx.call_intrin`
+ * - ``call_llvm_intrin``
+ - :obj:`tvm_tirx.tirx.call_llvm_intrin`
+ * - ``call_llvm_pure_intrin``
+ - :obj:`tvm_tirx.tirx.call_llvm_pure_intrin`
+ * - ``call_packed``
+ - :obj:`tvm_tirx.tirx.call_packed`
+ * - ``call_packed_lowered``
+ - :obj:`tvm_tirx.tirx.call_packed_lowered`
+ * - ``call_pure_extern``
+ - :obj:`tvm_tirx.tirx.call_pure_extern`
+ * - ``cpu_parallel_barrier``
+ - :obj:`tvm_tirx.tirx.cpu_parallel_barrier`
+ * - ``free_workspace``
+ - :obj:`tvm_tirx.tirx.free_workspace`
+ * - ``get_active_lane_mask``
+ - :obj:`tvm_tirx.tirx.get_active_lane_mask`
+ * - ``get_vscale_expr``
+ - :obj:`tvm_tirx.tirx.get_vscale_expr`
+ * - ``gpu_dp4a``
+ - :obj:`tvm_tirx.tirx.gpu_dp4a`
+ * - ``gpu_fill_fragment``
+ - :obj:`tvm_tirx.tirx.gpu_fill_fragment`
+ * - ``gpu_load_matrix_sync``
+ - :obj:`tvm_tirx.tirx.gpu_load_matrix_sync`
+ * - ``gpu_mma_sync``
+ - :obj:`tvm_tirx.tirx.gpu_mma_sync`
+ * - ``gpu_store_matrix_sync``
+ - :obj:`tvm_tirx.tirx.gpu_store_matrix_sync`
+ * - ``gpu_thread_allreduce``
+ - :obj:`tvm_tirx.tirx.gpu_thread_allreduce`
+ * - ``handle_add_byte_offset``
+ - :obj:`tvm_tirx.tirx.handle_add_byte_offset`
+ * - ``ignore_loop_partition``
+ - :obj:`tvm_tirx.tirx.ignore_loop_partition`
+ * - ``is_tensor_var``
+ - :obj:`tvm_tirx.tirx.is_tensor_var`
+ * - ``isnullptr``
+ - :obj:`tvm_tirx.tirx.isnullptr`
+ * - ``logaddexp``
+ - :obj:`tvm_tirx.tirx.logaddexp`
+ * - ``ptr_byte_offset``
+ - :obj:`tvm_tirx.tirx.ptr_byte_offset`
+ * - ``register_intrin_lowering``
+ - :obj:`tvm_tirx.tirx.register_intrin_lowering`
+ * - ``reinterpret``
+ - :obj:`tvm_tirx.tirx.reinterpret`
+ * - ``stack_alloca``
+ - :obj:`tvm_tirx.tirx.stack_alloca`
+ * - ``stack_make_dltensor``
+ - :obj:`tvm_tirx.tirx.stack_make_dltensor`
+ * - ``stack_make_shape``
+ - :obj:`tvm_tirx.tirx.stack_make_shape`
+ * - ``tensor_data_ptr``
+ - :obj:`tvm_tirx.tirx.tensor_data_ptr`
+ * - ``throw_last_error``
+ - :obj:`tvm_tirx.tirx.throw_last_error`
+ * - ``undef``
+ - :obj:`tvm_tirx.tirx.undef`
+ * - ``vector_combine``
+ - :obj:`tvm_tirx.tirx.vector_combine`
+ * - ``vector_high``
+ - :obj:`tvm_tirx.tirx.vector_high`
+ * - ``vector_low``
+ - :obj:`tvm_tirx.tirx.vector_low`
diff --git a/docs/reference/python/tirx.rst b/docs/reference/python/tirx.rst
new file mode 100644
index 0000000000..5e2f91d10e
--- /dev/null
+++ b/docs/reference/python/tirx.rst
@@ -0,0 +1,379 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx
+=============
+
+.. automodule:: tvm_tirx.tirx
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ CallFFIKernelAttr
+ ComposeLayout
+ Function
+ IndexMap
+ Layout
+ TensorMapType
+ TensorType
+ ThreadScope
+ TileLayout
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``Add``
+ - :obj:`tvm_tirx.ir.prim.Add`
+ * - ``And``
+ - :obj:`tvm_tirx.ir.prim.And`
+ * - ``BitwiseAnd``
+ - :obj:`tvm_tirx.ir.prim.BitwiseAnd`
+ * - ``BitwiseNot``
+ - :obj:`tvm_tirx.ir.prim.BitwiseNot`
+ * - ``BitwiseOr``
+ - :obj:`tvm_tirx.ir.prim.BitwiseOr`
+ * - ``BitwiseXor``
+ - :obj:`tvm_tirx.ir.prim.BitwiseXor`
+ * - ``Cast``
+ - :obj:`tvm_tirx.ir.prim.Cast`
+ * - ``Div``
+ - :obj:`tvm_tirx.ir.prim.Div`
+ * - ``EQ``
+ - :obj:`tvm_tirx.ir.prim.EQ`
+ * - ``FloorDiv``
+ - :obj:`tvm_tirx.ir.prim.FloorDiv`
+ * - ``FloorMod``
+ - :obj:`tvm_tirx.ir.prim.FloorMod`
+ * - ``GE``
+ - :obj:`tvm_tirx.ir.prim.GE`
+ * - ``GT``
+ - :obj:`tvm_tirx.ir.prim.GT`
+ * - ``LE``
+ - :obj:`tvm_tirx.ir.prim.LE`
+ * - ``LShift``
+ - :obj:`tvm_tirx.ir.prim.LShift`
+ * - ``LT``
+ - :obj:`tvm_tirx.ir.prim.LT`
+ * - ``Let``
+ - :obj:`tvm_tirx.ir.prim.Let`
+ * - ``Max``
+ - :obj:`tvm_tirx.ir.prim.Max`
+ * - ``Min``
+ - :obj:`tvm_tirx.ir.prim.Min`
+ * - ``Mod``
+ - :obj:`tvm_tirx.ir.prim.Mod`
+ * - ``Mul``
+ - :obj:`tvm_tirx.ir.prim.Mul`
+ * - ``NE``
+ - :obj:`tvm_tirx.ir.prim.NE`
+ * - ``Not``
+ - :obj:`tvm_tirx.ir.prim.Not`
+ * - ``Or``
+ - :obj:`tvm_tirx.ir.prim.Or`
+ * - ``RShift``
+ - :obj:`tvm_tirx.ir.prim.RShift`
+ * - ``Select``
+ - :obj:`tvm_tirx.ir.prim.Select`
+ * - ``Sub``
+ - :obj:`tvm_tirx.ir.prim.Sub`
+ * - ``Var``
+ - :obj:`tvm_tirx.ir.Var`
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ TensorLoad
+ abi_field_get
+ abi_field_set
+ address_of
+ alloc_workspace
+ assume_aligned
+ call_cpacked
+ call_cpacked_lowered
+ call_extern
+ call_ffi_kernel
+ call_intrin
+ call_llvm_intrin
+ call_llvm_pure_intrin
+ call_packed
+ call_packed_lowered
+ call_pure_extern
+ compile
+ cpu_parallel_barrier
+ decl_tensor
+ free_workspace
+ get_active_lane_mask
+ get_default_tir_pipeline
+ get_tir_pipeline
+ get_vscale_expr
+ gpu_dp4a
+ gpu_fill_fragment
+ gpu_load_matrix_sync
+ gpu_mma_sync
+ gpu_store_matrix_sync
+ gpu_thread_allreduce
+ handle_add_byte_offset
+ ignore_loop_partition
+ is_tensor_var
+ isnullptr
+ logaddexp
+ ptr_byte_offset
+ register_intrin_lowering
+ register_tir_pipeline
+ reinterpret
+ renew_def
+ stack_alloca
+ stack_make_dltensor
+ stack_make_shape
+ tensor_data_ptr
+ throw_last_error
+ undef
+ vector_combine
+ vector_high
+ vector_low
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``abs``
+ - :obj:`tvm_tirx.ir.prim.abs`
+ * - ``acos``
+ - :obj:`tvm_tirx.ir.prim.acos`
+ * - ``acosh``
+ - :obj:`tvm_tirx.ir.prim.acosh`
+ * - ``all``
+ - :obj:`tvm_tirx.ir.prim.all`
+ * - ``any``
+ - :obj:`tvm_tirx.ir.prim.any`
+ * - ``asin``
+ - :obj:`tvm_tirx.ir.prim.asin`
+ * - ``asinh``
+ - :obj:`tvm_tirx.ir.prim.asinh`
+ * - ``assume``
+ - :obj:`tvm_tirx.ir.prim.assume`
+ * - ``atan``
+ - :obj:`tvm_tirx.ir.prim.atan`
+ * - ``atan2``
+ - :obj:`tvm_tirx.ir.prim.atan2`
+ * - ``atanh``
+ - :obj:`tvm_tirx.ir.prim.atanh`
+ * - ``bitwise_and``
+ - :obj:`tvm_tirx.ir.prim.bitwise_and`
+ * - ``bitwise_not``
+ - :obj:`tvm_tirx.ir.prim.bitwise_not`
+ * - ``bitwise_or``
+ - :obj:`tvm_tirx.ir.prim.bitwise_or`
+ * - ``bitwise_xor``
+ - :obj:`tvm_tirx.ir.prim.bitwise_xor`
+ * - ``ceil``
+ - :obj:`tvm_tirx.ir.prim.ceil`
+ * - ``ceildiv``
+ - :obj:`tvm_tirx.ir.prim.ceildiv`
+ * - ``clz``
+ - :obj:`tvm_tirx.ir.prim.clz`
+ * - ``convert``
+ - :obj:`tvm_tirx.ir.prim.convert`
+ * - ``copysign``
+ - :obj:`tvm_tirx.ir.prim.copysign`
+ * - ``cos``
+ - :obj:`tvm_tirx.ir.prim.cos`
+ * - ``cosh``
+ - :obj:`tvm_tirx.ir.prim.cosh`
+ * - ``div``
+ - :obj:`tvm_tirx.ir.prim.div`
+ * - ``erf``
+ - :obj:`tvm_tirx.ir.prim.erf`
+ * - ``exp``
+ - :obj:`tvm_tirx.ir.prim.exp`
+ * - ``exp10``
+ - :obj:`tvm_tirx.ir.prim.exp10`
+ * - ``exp2``
+ - :obj:`tvm_tirx.ir.prim.exp2`
+ * - ``floor``
+ - :obj:`tvm_tirx.ir.prim.floor`
+ * - ``floordiv``
+ - :obj:`tvm_tirx.ir.prim.floordiv`
+ * - ``floormod``
+ - :obj:`tvm_tirx.ir.prim.floormod`
+ * - ``fmod``
+ - :obj:`tvm_tirx.ir.prim.fmod`
+ * - ``hypot``
+ - :obj:`tvm_tirx.ir.prim.hypot`
+ * - ``if_then_else``
+ - :obj:`tvm_tirx.ir.prim.if_then_else`
+ * - ``indexdiv``
+ - :obj:`tvm_tirx.ir.prim.indexdiv`
+ * - ``indexmod``
+ - :obj:`tvm_tirx.ir.prim.indexmod`
+ * - ``infinity``
+ - :obj:`tvm_tirx.ir.prim.infinity`
+ * - ``isfinite``
+ - :obj:`tvm_tirx.ir.prim.isfinite`
+ * - ``isinf``
+ - :obj:`tvm_tirx.ir.prim.isinf`
+ * - ``isnan``
+ - :obj:`tvm_tirx.ir.prim.isnan`
+ * - ``ldexp``
+ - :obj:`tvm_tirx.ir.prim.ldexp`
+ * - ``likely``
+ - :obj:`tvm_tirx.ir.prim.likely`
+ * - ``log``
+ - :obj:`tvm_tirx.ir.prim.log`
+ * - ``log10``
+ - :obj:`tvm_tirx.ir.prim.log10`
+ * - ``log1p``
+ - :obj:`tvm_tirx.ir.prim.log1p`
+ * - ``log2``
+ - :obj:`tvm_tirx.ir.prim.log2`
+ * - ``max``
+ - :obj:`tvm_tirx.ir.prim.max`
+ * - ``max_value``
+ - :obj:`tvm_tirx.ir.prim.max_value`
+ * - ``min``
+ - :obj:`tvm_tirx.ir.prim.min`
+ * - ``min_value``
+ - :obj:`tvm_tirx.ir.prim.min_value`
+ * - ``nearbyint``
+ - :obj:`tvm_tirx.ir.prim.nearbyint`
+ * - ``nextafter``
+ - :obj:`tvm_tirx.ir.prim.nextafter`
+ * - ``popcount``
+ - :obj:`tvm_tirx.ir.prim.popcount`
+ * - ``pow``
+ - :obj:`tvm_tirx.ir.prim.pow`
+ * - ``power``
+ - :obj:`tvm_tirx.ir.prim.power`
+ * - ``round``
+ - :obj:`tvm_tirx.ir.prim.round`
+ * - ``rsqrt``
+ - :obj:`tvm_tirx.ir.prim.rsqrt`
+ * - ``shift_left``
+ - :obj:`tvm_tirx.ir.prim.shift_left`
+ * - ``shift_right``
+ - :obj:`tvm_tirx.ir.prim.shift_right`
+ * - ``sigmoid``
+ - :obj:`tvm_tirx.ir.prim.sigmoid`
+ * - ``sin``
+ - :obj:`tvm_tirx.ir.prim.sin`
+ * - ``sinh``
+ - :obj:`tvm_tirx.ir.prim.sinh`
+ * - ``sqrt``
+ - :obj:`tvm_tirx.ir.prim.sqrt`
+ * - ``tan``
+ - :obj:`tvm_tirx.ir.prim.tan`
+ * - ``tanh``
+ - :obj:`tvm_tirx.ir.prim.tanh`
+ * - ``trunc``
+ - :obj:`tvm_tirx.ir.prim.trunc`
+ * - ``truncdiv``
+ - :obj:`tvm_tirx.ir.prim.truncdiv`
+ * - ``truncmod``
+ - :obj:`tvm_tirx.ir.prim.truncmod`
+ * - ``vscale``
+ - :obj:`tvm_tirx.ir.prim.vscale`
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ tirx.analysis
+ tirx.tile
+ tirx.script
+ tirx.bench
+ tirx.compilation_pipeline
+ tirx.layout
+ tirx.op
+
+Namespace links
+---------------
+
+.. raw:: html
+
+ <span id="tvm-tirx-tirx-op"></span>
+
+:doc:`tvm_tirx.tirx.op <tirx.op>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-tirx-analysis"></span>
+
+:doc:`tvm_tirx.tirx.analysis <tirx.analysis>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-tirx-transform"></span>
+
+:doc:`tvm_tirx.tirx.transform <tirx.transform>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-tirx-layout"></span>
+
+:doc:`tvm_tirx.tirx.layout <tirx.layout>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-tirx-compilation-pipeline"></span>
+
+:doc:`tvm_tirx.tirx.compilation_pipeline <tirx.compilation_pipeline>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-tirx-tile"></span>
+
+:doc:`tvm_tirx.tirx.tile <tirx.tile>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-tirx-tile-dispatch"></span>
+
+:doc:`tvm_tirx.tirx.tile.dispatch <tirx.tile.dispatch>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-tirx-tile-instruction"></span>
+
+:doc:`tvm_tirx.tirx.tile.instruction <tirx.tile.instruction>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-tirx-tile-views"></span>
+
+:doc:`tvm_tirx.tirx.tile.views <tirx.tile.views>`
+
+.. raw:: html
+
+ <span id="tvm-tirx-tirx-bench"></span>
+
+:doc:`tvm_tirx.tirx.bench <tirx.bench>`
diff --git a/docs/reference/python/tirx.script.ir_builder.external_kernel.rst b/docs/reference/python/tirx.script.ir_builder.external_kernel.rst
new file mode 100644
index 0000000000..385a99fa0c
--- /dev/null
+++ b/docs/reference/python/tirx.script.ir_builder.external_kernel.rst
@@ -0,0 +1,41 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script.ir_builder.external_kernel
+===============================================
+
+.. automodule:: tvm_tirx.tirx.script.ir_builder.external_kernel
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.script.ir_builder.external_kernel
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ BaseKernel
+ SourceKernel
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ call_kernel
diff --git a/docs/reference/python/tirx.script.ir_builder.rst b/docs/reference/python/tirx.script.ir_builder.rst
new file mode 100644
index 0000000000..d882200c40
--- /dev/null
+++ b/docs/reference/python/tirx.script.ir_builder.rst
@@ -0,0 +1,33 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script.ir_builder
+===============================
+
+.. automodule:: tvm_tirx.tirx.script.ir_builder
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.script.ir_builder
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ tirx.script.ir_builder.external_kernel
+ tirx.script.ir_builder.triton
diff --git a/docs/reference/python/tirx.script.ir_builder.triton.rst b/docs/reference/python/tirx.script.ir_builder.triton.rst
new file mode 100644
index 0000000000..8bb5ddf9fd
--- /dev/null
+++ b/docs/reference/python/tirx.script.ir_builder.triton.rst
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script.ir_builder.triton
+======================================
+
+.. automodule:: tvm_tirx.tirx.script.ir_builder.triton
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.script.ir_builder.triton
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ TritonKernel
diff --git a/docs/reference/python/tirx.script.jit.rst b/docs/reference/python/tirx.script.jit.rst
new file mode 100644
index 0000000000..51709b19f5
--- /dev/null
+++ b/docs/reference/python/tirx.script.jit.rst
@@ -0,0 +1,42 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script.jit
+========================
+
+.. automodule:: tvm_tirx.tirx.script.jit
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.tirx.script.jit
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ TIRJit
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``OptionalAnnotation``
+ - :obj:`tvm_tirx.tirx.script.Optional`
diff --git a/docs/reference/python/tirx.script.nvshmem.getmem_nbi.rst b/docs/reference/python/tirx.script.nvshmem.getmem_nbi.rst
new file mode 100644
index 0000000000..bcf945f97a
--- /dev/null
+++ b/docs/reference/python/tirx.script.nvshmem.getmem_nbi.rst
@@ -0,0 +1,35 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script.nvshmem.getmem_nbi
+=======================================
+
+.. automodule:: tvm_tirx.tirx.script
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.tirx.script.nvshmem.getmem_nbi
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ block
+ warp
diff --git a/docs/reference/python/tirx.script.nvshmem.putmem_nbi.rst b/docs/reference/python/tirx.script.nvshmem.putmem_nbi.rst
new file mode 100644
index 0000000000..9d0203ff4b
--- /dev/null
+++ b/docs/reference/python/tirx.script.nvshmem.putmem_nbi.rst
@@ -0,0 +1,35 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script.nvshmem.putmem_nbi
+=======================================
+
+.. automodule:: tvm_tirx.tirx.script
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.tirx.script.nvshmem.putmem_nbi
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ block
+ warp
diff --git a/docs/reference/python/tirx.script.nvshmem.putmem_signal_nbi.rst b/docs/reference/python/tirx.script.nvshmem.putmem_signal_nbi.rst
new file mode 100644
index 0000000000..9c6218e6f0
--- /dev/null
+++ b/docs/reference/python/tirx.script.nvshmem.putmem_signal_nbi.rst
@@ -0,0 +1,35 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script.nvshmem.putmem_signal_nbi
+==============================================
+
+.. automodule:: tvm_tirx.tirx.script
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.tirx.script.nvshmem.putmem_signal_nbi
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ block
+ warp
diff --git a/docs/reference/python/tirx.script.nvshmem.rst b/docs/reference/python/tirx.script.nvshmem.rst
new file mode 100644
index 0000000000..3bf05417a0
--- /dev/null
+++ b/docs/reference/python/tirx.script.nvshmem.rst
@@ -0,0 +1,53 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script.nvshmem
+============================
+
+.. automodule:: tvm_tirx.tirx.script
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.tirx.script.nvshmem
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ barrier_all
+ fence
+ getmem_nbi
+ my_pe
+ n_pes
+ putmem_nbi
+ putmem_signal_nbi
+ quiet
+ signal_op
+ wait_until
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ tirx.script.nvshmem.getmem_nbi
+ tirx.script.nvshmem.putmem_nbi
+ tirx.script.nvshmem.putmem_signal_nbi
diff --git a/docs/reference/python/tirx.script.ptx.rst b/docs/reference/python/tirx.script.ptx.rst
new file mode 100644
index 0000000000..77ed54166f
--- /dev/null
+++ b/docs/reference/python/tirx.script.ptx.rst
@@ -0,0 +1,136 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script.ptx
+========================
+
+.. automodule:: tvm_tirx.tirx.script
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.tirx.script.ptx
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ abs
+ activemask
+ add
+ addr
+ and
+ applypriority
+ atom
+ bar
+ barrier
+ bfe
+ bfi
+ bfind
+ bmsk
+ brev
+ clmad
+ clusterlaunchcontrol
+ clz
+ cnot
+ copysign
+ cos
+ cp
+ createpolicy
+ cvt
+ cvt_pack
+ cvta
+ discard
+ div
+ dp2a
+ dp4a
+ elect_sync
+ ex2
+ fabric
+ fence
+ fma
+ fns
+ getctarank
+ griddepcontrol
+ isspacep
+ ld
+ ldmatrix
+ ldu
+ lg2
+ lop3
+ mad
+ mad24
+ mapa
+ match
+ max
+ mbarrier
+ min
+ mma
+ mov
+ movmatrix
+ mul
+ mul24
+ multimem_cp
+ multimem_ld_reduce
+ multimem_red
+ multimem_red_async
+ multimem_st
+ multimem_st_async
+ neg
+ not
+ or
+ popc
+ pred
+ prefetch
+ prefetchu
+ prmt
+ rcp
+ red
+ red_async
+ redux_sync
+ rem
+ rsqrt
+ sad
+ selp
+ set
+ setmaxnreg
+ setp
+ shf
+ shfl_sync
+ shl
+ shr
+ sin
+ slct
+ spcompress
+ spdecompress
+ sqrt
+ st
+ st_async
+ st_bulk
+ stmatrix
+ sub
+ szext
+ tanh
+ tcgen05
+ tensormap_cp_fenceproxy
+ tensormap_replace
+ testp
+ vote_sync
+ wgmma
+ xor
diff --git a/docs/reference/python/tirx.script.ptx_legacy.rst b/docs/reference/python/tirx.script.ptx_legacy.rst
new file mode 100644
index 0000000000..edb23c358f
--- /dev/null
+++ b/docs/reference/python/tirx.script.ptx_legacy.rst
@@ -0,0 +1,35 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script.ptx_legacy
+===============================
+
+.. automodule:: tvm_tirx.tirx.script
+ :no-members:
+ :no-index:
+
+.. currentmodule:: tvm_tirx.tirx.script.ptx_legacy
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+ :template: autosummary/callable.rst
+
+ ldmatrix
+ mma
diff --git a/docs/reference/python/tirx.script.rst b/docs/reference/python/tirx.script.rst
new file mode 100644
index 0000000000..fa629b2cf3
--- /dev/null
+++ b/docs/reference/python/tirx.script.rst
@@ -0,0 +1,629 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.script
+====================
+
+.. automodule:: tvm_tirx.tirx.script
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.script
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ LetAnnotation
+ Optional
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``Add``
+ - :obj:`tvm_tirx.ir.prim.Add`
+ * - ``AlreadyEmitted``
+ - :obj:`tvm_tirx.script.ir_builder.AlreadyEmitted`
+ * - ``And``
+ - :obj:`tvm_tirx.ir.prim.And`
+ * - ``Any``
+ - :obj:`tvm_tirx.ir.AnyType`
+ * - ``Axis``
+ - :obj:`tvm_tirx.tirx.layout.Axis`
+ * - ``BitwiseAnd``
+ - :obj:`tvm_tirx.ir.prim.BitwiseAnd`
+ * - ``BitwiseNot``
+ - :obj:`tvm_tirx.ir.prim.BitwiseNot`
+ * - ``BitwiseOr``
+ - :obj:`tvm_tirx.ir.prim.BitwiseOr`
+ * - ``BitwiseXor``
+ - :obj:`tvm_tirx.ir.prim.BitwiseXor`
+ * - ``Broadcast``
+ - :obj:`tvm_tirx.ir.prim.Broadcast`
+ * - ``Call``
+ - :obj:`tvm_tirx.ir.Call`
+ * - ``CallEffectKind``
+ - :obj:`tvm_tirx.ir.CallEffectKind`
+ * - ``CallFFIKernelAttr``
+ - :obj:`tvm_tirx.tirx.CallFFIKernelAttr`
+ * - ``Cast``
+ - :obj:`tvm_tirx.ir.prim.Cast`
+ * - ``ComposeLayout``
+ - :obj:`tvm_tirx.tirx.ComposeLayout`
+ * - ``DataTypeImm``
+ - :obj:`tvm_tirx.ir.DataTypeImm`
+ * - ``Div``
+ - :obj:`tvm_tirx.ir.prim.Div`
+ * - ``EQ``
+ - :obj:`tvm_tirx.ir.prim.EQ`
+ * - ``FloatImm``
+ - :obj:`tvm_tirx.ir.FloatImm`
+ * - ``FloorDiv``
+ - :obj:`tvm_tirx.ir.prim.FloorDiv`
+ * - ``FloorMod``
+ - :obj:`tvm_tirx.ir.prim.FloorMod`
+ * - ``Func``
+ - :obj:`tvm_tirx.ir.FuncType`
+ * - ``FuncType``
+ - :obj:`tvm_tirx.ir.FuncType`
+ * - ``GE``
+ - :obj:`tvm_tirx.ir.prim.GE`
+ * - ``GT``
+ - :obj:`tvm_tirx.ir.prim.GT`
+ * - ``GenericConst``
+ - :obj:`tvm_tirx.ir.GenericConst`
+ * - ``IRBuilder``
+ - :obj:`tvm_tirx.script.ir_builder.IRBuilder`
+ * - ``IRModuleFrame``
+ - :obj:`tvm_tirx.script.ir_builder.IRModuleFrame`
+ * - ``IntImm``
+ - :obj:`tvm_tirx.ir.IntImm`
+ * - ``Iter``
+ - :obj:`tvm_tirx.tirx.layout.Iter`
+ * - ``LE``
+ - :obj:`tvm_tirx.ir.prim.LE`
+ * - ``LShift``
+ - :obj:`tvm_tirx.ir.prim.LShift`
+ * - ``LT``
+ - :obj:`tvm_tirx.ir.prim.LT`
+ * - ``Layout``
+ - :obj:`tvm_tirx.tirx.Layout`
+ * - ``Max``
+ - :obj:`tvm_tirx.ir.prim.Max`
+ * - ``MemoryScope``
+ - :obj:`tvm_tirx.runtime.MemoryScope`
+ * - ``Min``
+ - :obj:`tvm_tirx.ir.prim.Min`
+ * - ``Missing``
+ - :obj:`tvm_tirx.ir.MissingType`
+ * - ``MissingType``
+ - :obj:`tvm_tirx.ir.MissingType`
+ * - ``Mod``
+ - :obj:`tvm_tirx.ir.prim.Mod`
+ * - ``Mul``
+ - :obj:`tvm_tirx.ir.prim.Mul`
+ * - ``NE``
+ - :obj:`tvm_tirx.ir.prim.NE`
+ * - ``Not``
+ - :obj:`tvm_tirx.ir.prim.Not`
+ * - ``Op``
+ - :obj:`tvm_tirx.ir.Op`
+ * - ``Opaque``
+ - :obj:`tvm_tirx.ir.OpaqueType`
+ * - ``Or``
+ - :obj:`tvm_tirx.ir.prim.Or`
+ * - ``Prim``
+ - :obj:`tvm_tirx.ir.PrimType`
+ * - ``PrimType``
+ - :obj:`tvm_tirx.ir.PrimType`
+ * - ``Ptr``
+ - :obj:`tvm_tirx.ir.PtrType`
+ * - ``RShift``
+ - :obj:`tvm_tirx.ir.prim.RShift`
+ * - ``Ramp``
+ - :obj:`tvm_tirx.ir.prim.Ramp`
+ * - ``Range``
+ - :obj:`tvm_tirx.ir.Range`
+ * - ``Select``
+ - :obj:`tvm_tirx.ir.prim.Select`
+ * - ``Shuffle``
+ - :obj:`tvm_tirx.ir.prim.Shuffle`
+ * - ``String``
+ - :obj:`tvm_tirx.ir.StringType`
+ * - ``StringImm``
+ - :obj:`tvm_tirx.ir.StringImm`
+ * - ``StringType``
+ - :obj:`tvm_tirx.ir.StringType`
+ * - ``Sub``
+ - :obj:`tvm_tirx.ir.prim.Sub`
+ * - ``Tensor``
+ - :obj:`tvm_tirx.tirx.TensorType`
+ * - ``TensorMap``
+ - :obj:`tvm_tirx.tirx.TensorMapType`
+ * - ``TensorRegion``
+ - :obj:`tvm_tirx.ir.TensorRegion`
+ * - ``TensorRegionType``
+ - :obj:`tvm_tirx.ir.TensorRegionType`
+ * - ``ThreadScope``
+ - :obj:`tvm_tirx.tirx.ThreadScope`
+ * - ``TileLayout``
+ - :obj:`tvm_tirx.tirx.TileLayout`
+ * - ``Type``
+ - :obj:`tvm_tirx.ir.Type`
+ * - ``Var``
+ - :obj:`tvm_tirx.ir.Var`
+ * - ``broadcast``
+ - :obj:`tvm_tirx.ir.prim.Broadcast`
+ * - ``ramp``
+ - :obj:`tvm_tirx.ir.prim.Ramp`
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ Let
+ Tuple
+ abi_field_get
+ abi_field_set
+ abs
+ acos
+ acosh
+ add_to_parent
+ address_of
+ alloc_local
+ alloc_scalar
+ alloc_shared
+ alloc_tensor
+ alloc_workspace
+ and_
+ arg_
+ asin
+ asinh
+ assert_
+ assign
+ assume
+ assume_aligned
+ atan
+ atan2
+ atanh
+ atomic_add
+ bf16
+ bind
+ bind_
+ bitwise_and
+ bitwise_not
+ bitwise_or
+ bitwise_xor
+ bool
+ break_
+ call_cpacked
+ call_cpacked_lowered
+ call_extern
+ call_ffi_kernel
+ call_global_var_
+ call_intrin
+ call_kernel
+ call_llvm_intrin
+ call_llvm_pure_intrin
+ call_packed
+ call_packed_lowered
+ call_pure_extern
+ call_spirv_pure_glsl450
+ cast
+ ceil
+ ceildiv
+ check_well_formed_
+ clz
+ compute_scope
+ continue_
+ copysign
+ cos
+ cosh
+ cpu_parallel_barrier
+ decl_mutable_cell_
+ decl_scalar
+ decl_tensor
+ device_context
+ device_entry
+ device_scope
+ else_
+ emit
+ eq_
+ erf
+ evaluate
+ exp
+ exp10
+ exp2
+ f16
+ f32
+ f64
+ fabs
+ float16x16
+ float16x2
+ float16x32
+ float16x4
+ float16x64
+ float16x8
+ float32x16
+ float32x2
+ float32x32
+ float32x4
+ float32x64
+ float32x8
+ float4_e2m1fn
+ float4_e2m1fnx16
+ float4_e2m1fnx2
+ float4_e2m1fnx32
+ float4_e2m1fnx4
+ float4_e2m1fnx64
+ float4_e2m1fnx8
+ float64x16
+ float64x2
+ float64x32
+ float64x4
+ float64x64
+ float64x8
+ float6_e2m3fn
+ float6_e2m3fnx16
+ float6_e2m3fnx2
+ float6_e2m3fnx32
+ float6_e2m3fnx4
+ float6_e2m3fnx64
+ float6_e2m3fnx8
+ float6_e3m2fn
+ float6_e3m2fnx16
+ float6_e3m2fnx2
+ float6_e3m2fnx32
+ float6_e3m2fnx4
+ float6_e3m2fnx64
+ float6_e3m2fnx8
+ float8_e3m4
+ float8_e3m4x16
+ float8_e3m4x2
+ float8_e3m4x32
+ float8_e3m4x4
+ float8_e3m4x64
+ float8_e3m4x8
+ float8_e4m3
+ float8_e4m3b11fnuz
+ float8_e4m3b11fnuzx16
+ float8_e4m3b11fnuzx2
+ float8_e4m3b11fnuzx32
+ float8_e4m3b11fnuzx4
+ float8_e4m3b11fnuzx64
+ float8_e4m3b11fnuzx8
+ float8_e4m3fn
+ float8_e4m3fnuz
+ float8_e4m3fnuzx16
+ float8_e4m3fnuzx2
+ float8_e4m3fnuzx32
+ float8_e4m3fnuzx4
+ float8_e4m3fnuzx64
+ float8_e4m3fnuzx8
+ float8_e4m3fnx16
+ float8_e4m3fnx2
+ float8_e4m3fnx32
+ float8_e4m3fnx4
+ float8_e4m3fnx64
+ float8_e4m3fnx8
+ float8_e4m3x16
+ float8_e4m3x2
+ float8_e4m3x32
+ float8_e4m3x4
+ float8_e4m3x64
+ float8_e4m3x8
+ float8_e5m2
+ float8_e5m2fnuz
+ float8_e5m2fnuzx16
+ float8_e5m2fnuzx2
+ float8_e5m2fnuzx32
+ float8_e5m2fnuzx4
+ float8_e5m2fnuzx64
+ float8_e5m2fnuzx8
+ float8_e5m2x16
+ float8_e5m2x2
+ float8_e5m2x32
+ float8_e5m2x4
+ float8_e5m2x64
+ float8_e5m2x8
+ float8_e8m0fnu
+ float8_e8m0fnux16
+ float8_e8m0fnux2
+ float8_e8m0fnux32
+ float8_e8m0fnux4
+ float8_e8m0fnux64
+ float8_e8m0fnux8
+ floor
+ floordiv
+ floormod
+ fma
+ fmod
+ for_
+ frame_scope
+ free_workspace
+ func_attr
+ func_name_
+ func_ret
+ function
+ function_
+ ge_
+ get_active_lane_mask
+ gpu_active_thread_selector
+ gpu_dp4a
+ gpu_fill_fragment
+ gpu_load_matrix_sync
+ gpu_mma_sync
+ gpu_storage_sync
+ gpu_store_matrix_sync
+ gpu_thread_allreduce
+ gpu_thread_filter
+ gpu_thread_invariant
+ gpu_thread_return
+ gpu_warp_activemask
+ gpu_warp_shuffle
+ gpu_warp_shuffle_down
+ gpu_warp_shuffle_up
+ gpu_warp_shuffle_xor
+ grid
+ gt_
+ handle
+ handle_add_byte_offset
+ hypot
+ i16
+ i32
+ i64
+ i8
+ if_
+ if_then_else
+ if_then_else_
+ ignore_loop_partition
+ index_map
+ infinity
+ inline
+ int16x16
+ int16x2
+ int16x32
+ int16x4
+ int16x64
+ int16x8
+ int32x16
+ int32x2
+ int32x32
+ int32x4
+ int32x64
+ int32x8
+ int64x16
+ int64x2
+ int64x32
+ int64x4
+ int64x64
+ int64x8
+ int8x16
+ int8x2
+ int8x32
+ int8x4
+ int8x64
+ int8x8
+ isfinite
+ isinf
+ isnan
+ isnullptr
+ jit
+ kernel_replace_point
+ launch_thread
+ ldexp
+ le_
+ likely
+ local_scalar
+ log
+ log10
+ log1p
+ log2
+ logical_and
+ logical_not
+ logical_or
+ lt_
+ macro
+ masked_load
+ masked_store
+ max
+ max_value
+ meta_class
+ min
+ min_value
+ ne_
+ nearbyint
+ nextafter
+ not_
+ or_
+ parallel
+ parallel_launch
+ popcount
+ pow
+ prefetch
+ ptr
+ ptr_byte_offset
+ range_
+ region
+ register_script_namespace
+ reinterpret
+ resolve_global_info_
+ return_
+ round
+ rsqrt
+ select
+ serial
+ set_mutable_cell_
+ setattr_
+ setitem_
+ shared_scalar
+ shift_left
+ shift_right
+ sigmoid
+ sin
+ sinh
+ sqrt
+ stack_alloca
+ stack_make_dltensor
+ stack_make_shape
+ static_assert
+ static_handle
+ tan
+ tanh
+ target
+ tensor_data_ptr
+ tensor_indices
+ tensor_store
+ then_
+ throw_last_error
+ tmem
+ trunc
+ truncdiv
+ truncmod
+ u16
+ u32
+ u64
+ u8
+ uint16x16
+ uint16x2
+ uint16x32
+ uint16x4
+ uint16x64
+ uint16x8
+ uint32x16
+ uint32x2
+ uint32x32
+ uint32x4
+ uint32x64
+ uint32x8
+ uint64x16
+ uint64x2
+ uint64x32
+ uint64x4
+ uint64x64
+ uint64x8
+ uint8x16
+ uint8x2
+ uint8x32
+ uint8x4
+ uint8x64
+ uint8x8
+ undef
+ unpack_
+ unroll
+ vector_combine
+ vector_high
+ vector_low
+ vectorized
+ void
+ vscale
+ while_
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``Lambda``
+ - :obj:`tvm_tirx.script.ir_builder.Lambda`
+ * - ``TensorLoad``
+ - :obj:`tvm_tirx.tirx.TensorLoad`
+ * - ``at_``
+ - :obj:`tvm_tirx.script.ir_builder.at_`
+ * - ``bfloat16``
+ - :obj:`tvm_tirx.tirx.script.bf16`
+ * - ``boolean``
+ - :obj:`tvm_tirx.tirx.script.bool`
+ * - ``constexpr``
+ - :obj:`tvm_tirx.script.ir_builder.constexpr`
+ * - ``decl_function``
+ - :obj:`tvm_tirx.script.ir_builder.decl_function`
+ * - ``dtype``
+ - :obj:`tvm_tirx.script.ir_builder.dtype`
+ * - ``dynamic``
+ - :obj:`tvm_tirx.script.ir_builder.dynamic`
+ * - ``emit_``
+ - :obj:`tvm_tirx.tirx.script.emit`
+ * - ``float16``
+ - :obj:`tvm_tirx.tirx.script.f16`
+ * - ``float32``
+ - :obj:`tvm_tirx.tirx.script.f32`
+ * - ``float64``
+ - :obj:`tvm_tirx.tirx.script.f64`
+ * - ``func_ret_type_``
+ - :obj:`tvm_tirx.tirx.script.func_ret`
+ * - ``int16``
+ - :obj:`tvm_tirx.tirx.script.i16`
+ * - ``int32``
+ - :obj:`tvm_tirx.tirx.script.i32`
+ * - ``int64``
+ - :obj:`tvm_tirx.tirx.script.i64`
+ * - ``int8``
+ - :obj:`tvm_tirx.tirx.script.i8`
+ * - ``ir_module``
+ - :obj:`tvm_tirx.script.parser.ir_module`
+ * - ``llvm_lookup_intrinsic_id``
+ - :obj:`tvm_tirx.codegen.llvm.lookup_intrinsic_id`
+ * - ``make_node``
+ - :obj:`tvm_tirx.ir.make_node`
+ * - ``meta_var``
+ - :obj:`tvm_tirx.script.ir_builder.meta_var`
+ * - ``module_attrs``
+ - :obj:`tvm_tirx.script.ir_builder.module_attrs`
+ * - ``module_get_attr``
+ - :obj:`tvm_tirx.script.ir_builder.module_get_attr`
+ * - ``module_global_infos``
+ - :obj:`tvm_tirx.script.ir_builder.module_global_infos`
+ * - ``module_member_``
+ - :obj:`tvm_tirx.script.ir_builder.module_member_`
+ * - ``module_set_attr``
+ - :obj:`tvm_tirx.script.ir_builder.module_set_attr`
+ * - ``pyfunc``
+ - :obj:`tvm_tirx.script.parser.pyfunc`
+ * - ``resolve_global_info_args``
+ - :obj:`tvm_tirx.script.ir_builder.resolve_global_info_args`
+ * - ``smem``
+ - :obj:`tvm_tirx.tirx.script.alloc_shared`
+ * - ``uint16``
+ - :obj:`tvm_tirx.tirx.script.u16`
+ * - ``uint32``
+ - :obj:`tvm_tirx.tirx.script.u32`
+ * - ``uint64``
+ - :obj:`tvm_tirx.tirx.script.u64`
+ * - ``uint8``
+ - :obj:`tvm_tirx.tirx.script.u8`
+ * - ``with_at_group_``
+ - :obj:`tvm_tirx.script.ir_builder.with_at_group_`
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ tirx.script.ir_builder
+ tirx.script.jit
+ tirx.script.nvshmem
+ tirx.script.ptx
+ tirx.script.ptx_legacy
diff --git a/docs/reference/python/tirx.tile.dispatch.rst b/docs/reference/python/tirx.tile.dispatch.rst
new file mode 100644
index 0000000000..56af0e7a76
--- /dev/null
+++ b/docs/reference/python/tirx.tile.dispatch.rst
@@ -0,0 +1,58 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.tile.dispatch
+===========================
+
+.. automodule:: tvm_tirx.tirx.tile.dispatch
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.tile.dispatch
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ DispatchFail
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``DispatchContext``
+ - :obj:`tvm_tirx.tirx.tile.DispatchContext`
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ run_dispatch
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``fail``
+ - :obj:`tvm_tirx.tirx.tile.fail`
diff --git a/docs/reference/python/tirx.tile.instruction.rst b/docs/reference/python/tirx.tile.instruction.rst
new file mode 100644
index 0000000000..1a55fd5ed0
--- /dev/null
+++ b/docs/reference/python/tirx.tile.instruction.rst
@@ -0,0 +1,48 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.tile.instruction
+==============================
+
+.. automodule:: tvm_tirx.tirx.tile.instruction
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.tile.instruction
+
+Classes
+-------
+
+.. list-table::
+ :header-rows: 1
+ :widths: 35 65
+
+ * - Alias
+ - Canonical API
+ * - ``Instruction``
+ - :obj:`tvm_tirx.tirx.tile.Instruction`
+ * - ``Operand``
+ - :obj:`tvm_tirx.tirx.tile.Operand`
+ * - ``TensorCall``
+ - :obj:`tvm_tirx.tirx.tile.TensorCall`
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ namespace
diff --git a/docs/reference/python/tirx.tile.rst b/docs/reference/python/tirx.tile.rst
new file mode 100644
index 0000000000..7e948c9750
--- /dev/null
+++ b/docs/reference/python/tirx.tile.rst
@@ -0,0 +1,53 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.tile
+==================
+
+.. automodule:: tvm_tirx.tirx.tile
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.tile
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ DispatchContext
+ Instruction
+ Operand
+ TensorCall
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ fail
+
+Namespaces
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ tirx.tile.dispatch
+ tirx.tile.instruction
+ tirx.tile.views
diff --git a/docs/reference/python/tirx.tile.views.rst b/docs/reference/python/tirx.tile.views.rst
new file mode 100644
index 0000000000..753dfea867
--- /dev/null
+++ b/docs/reference/python/tirx.tile.views.rst
@@ -0,0 +1,69 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.tile.views
+========================
+
+.. automodule:: tvm_tirx.tirx.tile.views
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.tile.views
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ Add
+ BinaryChain
+ BinaryOp
+ BinaryReduce
+ Cast
+ Copy
+ CopyAsync
+ Exp
+ Exp2
+ Exp2WithScaleBias
+ ExpWithScaleBias
+ FDiv
+ FMA
+ Fill
+ Gemm
+ GemmAsync
+ Log2
+ Log2WithScaleBias
+ Max
+ Maximum
+ Memset
+ Min
+ Minimum
+ Mul
+ Reciprocal
+ ReduceNegate
+ ReduceOp
+ Select
+ SiLU
+ Sqrt
+ SqrtWithScaleBias
+ Sub
+ Sum
+ UnaryOp
+ UnaryOpWithScaleBias
+ UnaryReduce
+ UnaryReduceWithScaleBias
+ Zero
diff --git a/docs/reference/python/tirx.transform.rst b/docs/reference/python/tirx.transform.rst
new file mode 100644
index 0000000000..ed12e000d2
--- /dev/null
+++ b/docs/reference/python/tirx.transform.rst
@@ -0,0 +1,73 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+.. http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+tvm_tirx.tirx.transform
+=======================
+
+.. automodule:: tvm_tirx.tirx.transform
+ :no-members:
+
+.. currentmodule:: tvm_tirx.tirx.transform
+
+Classes
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ FunctionPass
+ RemoveNoOpConfig
+ UnrollLoopConfig
+
+Functions
+---------
+
+.. autosummary::
+ :toctree: generated/
+
+ AnnotateEntryFunc
+ Apply
+ BF16ComputeLegalize
+ BF16StorageLegalize
+ BindTarget
+ CommonSubexprElim
+ ConvertSSA
+ DecorateDeviceScope
+ FP8ComputeLegalize
+ FP8StorageLegalize
+ Filter
+ FlattenTensor
+ ForceNarrowIndexToInt32
+ HoistIf
+ LowerIntrin
+ LowerTIRx
+ LowerTVMBuiltin
+ LowerThreadAllreduce
+ MakePackedAPI
+ NarrowDataType
+ PointerValueTypeRewrite
+ RemoveNoOp
+ RenormalizeSplitPattern
+ SkipAssert
+ SplitHostDevice
+ StmtSimplify
+ StorageRewrite
+ TileDispatch
+ UnrollLoop
+ VectorizeLoop
+ VerifyMemory
+ function_pass
diff --git a/python/tvm_tirx/backend/cuda/tile/__init__.py b/docs/requirements.txt
similarity index 92%
copy from python/tvm_tirx/backend/cuda/tile/__init__.py
copy to docs/requirements.txt
index 13a83393a9..1555dac5a6 100644
--- a/python/tvm_tirx/backend/cuda/tile/__init__.py
+++ b/docs/requirements.txt
@@ -14,3 +14,8 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+
+sphinx>=7
+sphinx-book-theme
+sphinx-reredirects
+triton>=3.3
diff --git a/python/tvm_tirx/__init__.py b/python/tvm_tirx/__init__.py
index 8244906d9c..fcfa1fc703 100644
--- a/python/tvm_tirx/__init__.py
+++ b/python/tvm_tirx/__init__.py
@@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
# pylint: disable=redefined-builtin, wildcard-import
-"""TVM: Open Deep Learning Compiler Stack."""
+"""Tensor-level intermediate representations, compilation, and runtime execution."""
import sys
import os
diff --git a/python/tvm_tirx/backend/cuda/lang/tile_scheduler.py b/python/tvm_tirx/backend/cuda/lang/tile_scheduler.py
index dc83f44393..24eba47b80 100644
--- a/python/tvm_tirx/backend/cuda/lang/tile_scheduler.py
+++ b/python/tvm_tirx/backend/cuda/lang/tile_scheduler.py
@@ -54,32 +54,35 @@ class BaseTileScheduler:
class ClusterPersistentScheduler2D(BaseTileScheduler):
- """
- Tile scheduler for cluster-based persistent kernels.
+ """Tile scheduler for cluster-based persistent kernels.
Distributes a 2D tile grid across persistent clusters using group-major ordering
for L2 cache locality. Each cluster starts at its cluster_id and strides by
num_clusters to process tiles.
Tile Ordering (group-major for L2 locality):
+
- Tiles are grouped into "L2 groups" of `l2_group_size` rows
- Within a group, tiles are visited in column-major order within the group
- Groups are processed in row-major order
- Example with 4x4 tiles, l2_group_size=2:
+ Example with 4x4 tiles, l2_group_size=2::
+
Group 0 (rows 0-1): 0 2 4 6
1 3 5 7
Group 1 (rows 2-3): 8 10 12 14
9 11 13 15
Serpentine Mode (serpentine=True):
+
- Uses CUTLASS-style 2D block swizzle with serpentine traversal
- Grid is divided into swizzle_size x swizzle_size blocks
- Within each block, tiles are visited in row-major order
- Blocks are traversed in serpentine order (even block-rows forward, odd backward)
- This provides better L2 locality by reusing both A and B tiles
- Example with 4x4 tiles, swizzle_size=2, serpentine=True:
+ Example with 4x4 tiles, swizzle_size=2, serpentine=True::
+
Block layout:
Block(0,0) Block(0,1)
Block(1,0) Block(1,1)
@@ -127,77 +130,83 @@ class ClusterPersistentScheduler2D(BaseTileScheduler):
Usage
-----
- ```python
- scheduler = ClusterPersistentScheduler2D(
- "sched", num_m_tiles=M_TILES, num_n_tiles=N_TILES,
- num_clusters=NUM_CLUSTERS, l2_group_size=8
- )
- scheduler.init(cluster_id) # cluster_id = cta_idx // CLUSTER_SIZE
-
- while scheduler.valid():
- m = T.meta_var(scheduler.m_idx) # current M tile
- n = T.meta_var(scheduler.n_idx) # current N tile
- # ... process tile (m, n) ...
- scheduler.next_tile()
- ```
+
+ .. code-block:: python
+
+ scheduler = ClusterPersistentScheduler2D(
+ "sched", num_m_tiles=M_TILES, num_n_tiles=N_TILES,
+ num_clusters=NUM_CLUSTERS, l2_group_size=8
+ )
+ scheduler.init(cluster_id) # cluster_id = cta_idx // CLUSTER_SIZE
+
+ while scheduler.valid():
+ m = T.meta_var(scheduler.m_idx) # current M tile
+ n = T.meta_var(scheduler.n_idx) # current N tile
+ # ... process tile (m, n) ...
+ scheduler.next_tile()
+
Examples
--------
Example 1: Basic persistent kernel
- ```
- num_m_tiles=4, num_n_tiles=4, num_clusters=3, l2_group_size=2
- cluster_m=1, cluster_n=1 (default, no tile subdivision)
-
- Group-major tile numbering (l2_group_size=2):
- n=0 n=1 n=2 n=3
- m=0 0 2 4 6 ┐ L2 group 0
- m=1 1 3 5 7 ┘
- m=2 8 10 12 14 ┐ L2 group 1
- m=3 9 11 13 15 ┘
-
- Work distribution (cluster starts at cluster_id, strides by num_clusters=3):
- cluster 0: work_idx 0,3,6,9,12,15 -> tiles 0,3,6,9,12,15
- cluster 1: work_idx 1,4,7,10,13 -> tiles 1,4,7,10,13
- cluster 2: work_idx 2,5,8,11,14 -> tiles 2,5,8,11,14
-
- Tile grid (which cluster handles each tile):
- n=0 n=1 n=2 n=3
- m=0 C0 C2 C1 C0 ┐ L2 group 0
- m=1 C1 C0 C2 C1 ┘
- m=2 C2 C1 C0 C2 ┐ L2 group 1
- m=3 C0 C2 C1 C0 ┘
-
- Tile sequence per cluster (in execution order):
- cluster 0: (0,0)->(1,1)->(0,3)->(2,0)->(2,3)->(3,3)
- cluster 1: (1,0)->(0,2)->(1,3)->(2,1)->(3,2)
- cluster 2: (0,1)->(1,2)->(2,0)->(3,1)->(2,3)
- ```
+
+ .. code-block:: text
+
+ num_m_tiles=4, num_n_tiles=4, num_clusters=3, l2_group_size=2
+ cluster_m=1, cluster_n=1 (default, no tile subdivision)
+
+ Group-major tile numbering (l2_group_size=2):
+ n=0 n=1 n=2 n=3
+ m=0 0 2 4 6 ┐ L2 group 0
+ m=1 1 3 5 7 ┘
+ m=2 8 10 12 14 ┐ L2 group 1
+ m=3 9 11 13 15 ┘
+
+ Work distribution (cluster starts at cluster_id, strides by num_clusters=3):
+ cluster 0: work_idx 0,3,6,9,12,15 -> tiles 0,3,6,9,12,15
+ cluster 1: work_idx 1,4,7,10,13 -> tiles 1,4,7,10,13
+ cluster 2: work_idx 2,5,8,11,14 -> tiles 2,5,8,11,14
+
+ Tile grid (which cluster handles each tile):
+ n=0 n=1 n=2 n=3
+ m=0 C0 C2 C1 C0 ┐ L2 group 0
+ m=1 C1 C0 C2 C1 ┘
+ m=2 C2 C1 C0 C2 ┐ L2 group 1
+ m=3 C0 C2 C1 C0 ┘
+
+ Tile sequence per cluster (in execution order):
+ cluster 0: (0,0)->(1,1)->(0,3)->(2,0)->(2,3)->(3,3)
+ cluster 1: (1,0)->(0,2)->(1,3)->(2,1)->(3,2)
+ cluster 2: (0,1)->(1,2)->(2,0)->(3,1)->(2,3)
+
Example 2: 2SM GEMM (typical B200 config)
- ```
- M=1024, N=512, CTA_M=128, MMA_N=128, CLUSTER_M=2, CLUSTER_N=1
- => M_TILES=8, N_TILES=4
- => CLUSTER_M_TILES=4, CLUSTER_N_TILES=4 (scheduler at cluster granularity)
-
- Scheduler params:
- num_m_tiles=4, num_n_tiles=4, num_clusters=74, l2_group_size=8
- cluster_m=1, cluster_n=1
-
- Key: Scheduler outputs CLUSTER-level tiles.
- All CTAs in same cluster get SAME (m_idx, n_idx) from scheduler.
- CTAs differentiate via cluster_rank (computed OUTSIDE scheduler):
- cluster_rank = cta_idx % CLUSTER_SIZE
- cb_m = cluster_rank % CLUSTER_M # 0 or 1 for 2SM
- cb_n = cluster_rank // CLUSTER_M # 0 for 2SM
-
- Final CTA tile:
- cta_m = m_idx * CLUSTER_M + cb_m
- cta_n = n_idx * CLUSTER_N + cb_n
-
- Example: cluster 5 gets scheduler tile (1,2)
- CTA rank=0 (cb_m=0): actual tile (2,2)
- CTA rank=1 (cb_m=1): actual tile (3,2)
- ```
+
+ .. code-block:: text
+
+ M=1024, N=512, CTA_M=128, MMA_N=128, CLUSTER_M=2, CLUSTER_N=1
+ => M_TILES=8, N_TILES=4
+ => CLUSTER_M_TILES=4, CLUSTER_N_TILES=4 (scheduler at cluster granularity)
+
+ Scheduler params:
+ num_m_tiles=4, num_n_tiles=4, num_clusters=74, l2_group_size=8
+ cluster_m=1, cluster_n=1
+
+ Key: Scheduler outputs CLUSTER-level tiles.
+ All CTAs in same cluster get SAME (m_idx, n_idx) from scheduler.
+ CTAs differentiate via cluster_rank (computed OUTSIDE scheduler):
+ cluster_rank = cta_idx % CLUSTER_SIZE
+ cb_m = cluster_rank % CLUSTER_M # 0 or 1 for 2SM
+ cb_n = cluster_rank // CLUSTER_M # 0 for 2SM
+
+ Final CTA tile:
+ cta_m = m_idx * CLUSTER_M + cb_m
+ cta_n = n_idx * CLUSTER_N + cb_n
+
+ Example: cluster 5 gets scheduler tile (1,2)
+ CTA rank=0 (cb_m=0): actual tile (2,2)
+ CTA rank=1 (cb_m=1): actual tile (3,2)
+
"""
def __init__(
@@ -469,7 +478,8 @@ class FlashAttentionLinearScheduler(BaseTileScheduler):
"""Linear 3D scheduler for flash attention (batch, head, m_block).
Used for non-causal attention with simple linear decomposition.
- Maps linear_idx -> (batch_idx, head_idx, m_block_idx) using:
+ Maps linear_idx -> (batch_idx, head_idx, m_block_idx) using::
+
batch = linear_idx // (num_heads * num_m_blocks)
head = (linear_idx % (num_heads * num_m_blocks)) // num_m_blocks
m_block = linear_idx % num_m_blocks
diff --git a/python/tvm_tirx/backend/cuda/ptx/__init__.py b/python/tvm_tirx/backend/cuda/ptx/__init__.py
index f757a93b57..e74889aec8 100644
--- a/python/tvm_tirx/backend/cuda/ptx/__init__.py
+++ b/python/tvm_tirx/backend/cuda/ptx/__init__.py
@@ -17,7 +17,7 @@
"""Table-driven PTX dialect (``T.ptx``).
One table (:mod:`.table`), one generic engine (:mod:`.engine`), thin
-generators (:mod:`.gen_helpers``/``gen_stubs`, :mod:`.gen_coverage`). Importing this package
+generators (``gen_helpers``, ``gen_stubs``, and ``gen_coverage``). Importing this package
registers every table entry as a TVM Op with a generic codegen; the
``T.ptx`` namespace itself is installed by the CUDA backend's
``register_backend()`` via ``script_namespaces()``.
diff --git a/python/tvm_tirx/backend/cuda/tile/__init__.py b/python/tvm_tirx/backend/cuda/tile/__init__.py
index 13a83393a9..f6b32f0a44 100644
--- a/python/tvm_tirx/backend/cuda/tile/__init__.py
+++ b/python/tvm_tirx/backend/cuda/tile/__init__.py
@@ -14,3 +14,4 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+"""CUDA tile lowering and execution-context support."""
diff --git a/python/tvm_tirx/codegen/__init__.py b/python/tvm_tirx/codegen/__init__.py
index 5396028ac1..177a52e279 100644
--- a/python/tvm_tirx/codegen/__init__.py
+++ b/python/tvm_tirx/codegen/__init__.py
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""Code generation related functions."""
+"""Compile IR modules into executable runtime modules and query target features."""
from tvm_ffi import Array, get_global_func
diff --git a/python/tvm_tirx/ir/__init__.py b/python/tvm_tirx/ir/__init__.py
index a577eeeb6b..bbb4fed120 100644
--- a/python/tvm_tirx/ir/__init__.py
+++ b/python/tvm_tirx/ir/__init__.py
@@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
# pylint: disable=unused-import
-"""Common data structures across all IR variants."""
+"""Shared IR types, expressions, statements, source locations, and modules."""
from ._constant import const
from .attrs import Attrs, DictAttrs, make_node
diff --git a/python/tvm_tirx/ir/base.py b/python/tvm_tirx/ir/base.py
index b0d2706f16..3600f4cec2 100644
--- a/python/tvm_tirx/ir/base.py
+++ b/python/tvm_tirx/ir/base.py
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""Common base structures."""
+"""Base IR objects, serialization, structural comparison, and script printing."""
import tvm_ffi
from tvm_ffi import register_object
diff --git a/python/tvm_tirx/ir/transform/__init__.py b/python/tvm_tirx/ir/transform/__init__.py
index 037ec85cfc..548e29256b 100644
--- a/python/tvm_tirx/ir/transform/__init__.py
+++ b/python/tvm_tirx/ir/transform/__init__.py
@@ -16,7 +16,7 @@
# under the License.
# isort: skip_file
# pylint: disable=unused-import
-"""Utilities for IR transformations."""
+"""IR passes, pass contexts, sequential pipelines, and pass instrumentation."""
from .core import (
ModulePass,
diff --git a/python/tvm_tirx/runtime/__init__.py b/python/tvm_tirx/runtime/__init__.py
index aa8f098b9d..e2c4120143 100644
--- a/python/tvm_tirx/runtime/__init__.py
+++ b/python/tvm_tirx/runtime/__init__.py
@@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""TVM runtime namespace."""
+"""Runtime tensors, devices, executable modules, and thread information."""
from tvm_ffi import convert, Object, Module, load_module, system_lib
from tvm_ffi._dtype import dtype as DataType, DataTypeCode
diff --git a/python/tvm_tirx/script/ir_builder/frame.py b/python/tvm_tirx/script/ir_builder/frame.py
index f338bf3ae0..2b3c8c4925 100644
--- a/python/tvm_tirx/script/ir_builder/frame.py
+++ b/python/tvm_tirx/script/ir_builder/frame.py
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""Package tvm_tirx.script.ir_builder.frame"""
+"""Context-managed frames for constructing IR with the shared builder stack."""
from collections.abc import Sequence
diff --git a/python/tvm_tirx/script/ir_builder/ir.py b/python/tvm_tirx/script/ir_builder/ir.py
index 1153a8d85b..d58a672709 100644
--- a/python/tvm_tirx/script/ir_builder/ir.py
+++ b/python/tvm_tirx/script/ir_builder/ir.py
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""Package tvm_tirx.script.ir_builder.ir"""
+"""Construct shared IR values and lambdas, and access module attributes."""
from typing import NoReturn, TypeVar
diff --git a/python/tvm_tirx/sym/analyzer.py b/python/tvm_tirx/sym/analyzer.py
index 2925d4f25d..52b8b0bc56 100644
--- a/python/tvm_tirx/sym/analyzer.py
+++ b/python/tvm_tirx/sym/analyzer.py
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
# pylint: disable=invalid-name
-"""Arithmetic data structure and utility"""
+"""Analyze and simplify symbolic expressions using bounds, modular sets, and constraints."""
import enum
from contextlib import contextmanager
diff --git a/python/tvm_tirx/sym/int_set.py b/python/tvm_tirx/sym/int_set.py
index 67d28c4c43..f4b4c1fe46 100644
--- a/python/tvm_tirx/sym/int_set.py
+++ b/python/tvm_tirx/sym/int_set.py
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""Integer set."""
+"""Represent integer sets and evaluate symbolic expression ranges."""
import tvm_ffi
diff --git a/python/tvm_tirx/sym/pattern.py b/python/tvm_tirx/sym/pattern.py
index ebd1a9b7e3..5bec413cf9 100644
--- a/python/tvm_tirx/sym/pattern.py
+++ b/python/tvm_tirx/sym/pattern.py
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""Detect common patterns."""
+"""Detect bounds, affine forms, and other patterns in symbolic expressions."""
from . import _ffi_api
diff --git a/python/tvm_tirx/target/detect_target.py b/python/tvm_tirx/target/detect_target.py
index 4d32ec8d36..13552d4e95 100644
--- a/python/tvm_tirx/target/detect_target.py
+++ b/python/tvm_tirx/target/detect_target.py
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""Detect target."""
+"""Detect compilation targets from available runtime devices and system capabilities."""
from collections.abc import Callable
diff --git a/python/tvm_tirx/testing/__init__.py b/python/tvm_tirx/testing/__init__.py
index 11936b2e6d..aba927029a 100644
--- a/python/tvm_tirx/testing/__init__.py
+++ b/python/tvm_tirx/testing/__init__.py
@@ -17,7 +17,7 @@
# under the License.
# pylint: disable=redefined-builtin, wildcard-import
-"""Utility Python functions for TVM testing"""
+"""Testing helpers for numerical comparisons, target selection, and compiler validation."""
from ._ffi_api import (
echo,
diff --git a/python/tvm_tirx/tirx/__init__.py b/python/tvm_tirx/tirx/__init__.py
index cbbde24567..4c6dba1e4e 100644
--- a/python/tvm_tirx/tirx/__init__.py
+++ b/python/tvm_tirx/tirx/__init__.py
@@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
# pylint: disable=unused-import, redefined-builtin
-"""Namespace for Tensor-level IR"""
+"""Tensor-level IR nodes, layouts, operators, analysis, and compilation."""
import tvm_tirx.script
diff --git a/python/tvm_tirx/tirx/analysis/__init__.py b/python/tvm_tirx/tirx/analysis/__init__.py
index c142485c53..c750c3c750 100644
--- a/python/tvm_tirx/tirx/analysis/__init__.py
+++ b/python/tvm_tirx/tirx/analysis/__init__.py
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""Namespace of all TIR analysis utils."""
+"""Analyze tensor-level IR, including memory access, control flow, and well-formedness."""
# pylint: disable=wildcard-import, invalid-name
from .analysis import *
diff --git a/python/tvm_tirx/tirx/bench.py b/python/tvm_tirx/tirx/bench.py
index 4e0cafa25c..b1deaf8912 100644
--- a/python/tvm_tirx/tirx/bench.py
+++ b/python/tvm_tirx/tirx/bench.py
@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.
+"""Benchmark and profile GPU launch callables, including distributed execution."""
+
import argparse
import gc
import inspect
diff --git a/python/tvm_tirx/tirx/layout.py b/python/tvm_tirx/tirx/layout.py
index 3a20a07e6f..3f9119a6e9 100644
--- a/python/tvm_tirx/tirx/layout.py
+++ b/python/tvm_tirx/tirx/layout.py
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
# pylint: disable=super-init-not-called
-"""Definition of layout."""
+"""Represent tensor layouts, iteration axes, and mappings between logical and physical storage."""
from collections.abc import Sequence
from typing import Union
diff --git a/python/tvm_tirx/tirx/script/ir_builder/triton.py b/python/tvm_tirx/tirx/script/ir_builder/triton.py
index 33ae1d87f4..603c9575c8 100644
--- a/python/tvm_tirx/tirx/script/ir_builder/triton.py
+++ b/python/tvm_tirx/tirx/script/ir_builder/triton.py
@@ -42,9 +42,10 @@ class TritonKernel(BaseKernel):
This class bridges the Triton kernel with TVM runtime. The compilation includes the following
steps:
- - Deduce the kernel signature and generate the Triton kernel
- - Embed the compiled kernel into the current IRModule as an external module
- - Generate a call to the Triton kernel following its calling convention via call_packed.
+
+ - Deduce the kernel signature and generate the Triton kernel
+ - Embed the compiled kernel into the current IRModule as an external module
+ - Generate a call to the Triton kernel following its calling convention via call_packed.
"""
def __init__(self, func):
diff --git a/python/tvm_tirx/tirx/tile/__init__.py b/python/tvm_tirx/tirx/tile/__init__.py
index 2e633dd764..b37e0da11d 100644
--- a/python/tvm_tirx/tirx/tile/__init__.py
+++ b/python/tvm_tirx/tirx/tile/__init__.py
@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.
+"""Tensor instruction contracts and dispatch contexts for lowering tile operations."""
+
from .dispatch import DispatchContext, fail
from .instruction import Instruction, Operand, TensorCall
diff --git a/python/tvm_tirx/tirx/tile/views.py b/python/tvm_tirx/tirx/tile/views.py
index b8f2ff4b91..64ecfa8077 100644
--- a/python/tvm_tirx/tirx/tile/views.py
+++ b/python/tvm_tirx/tirx/tile/views.py
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-"""Implementation of TIR operator."""
+"""Typed views of tensor instruction operands during tile lowering."""
from tvm_tirx.tirx import Expr
from tvm_tirx.tirx.tile.instruction import TensorCall
diff --git a/python/tvm_tirx/tirx/transform/__init__.py b/python/tvm_tirx/tirx/transform/__init__.py
index 498be623a7..978f26a5f4 100644
--- a/python/tvm_tirx/tirx/transform/__init__.py
+++ b/python/tvm_tirx/tirx/transform/__init__.py
@@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""Namespace of all TIR transformations"""
+"""Transformation passes for lowering and optimizing tensor-level IR."""
# pylint: disable=wildcard-import, invalid-name
from .function_pass import function_pass, FunctionPass